diff --git a/src/controllers/KpiUserEvaluationController.ts b/src/controllers/KpiUserEvaluationController.ts index 4121349..c67ee44 100644 --- a/src/controllers/KpiUserEvaluationController.ts +++ b/src/controllers/KpiUserEvaluationController.ts @@ -290,14 +290,14 @@ export class KpiUserEvaluationController extends Controller { evaluatorId: item.evaluatorId, commanderId: item.commanderId, commanderHighId: item.commanderHighId, - root: item.org, - rootId: item.orgId, - position: item.position, + root: item.org?item.org:null, + rootId: item.orgId?item.orgId:null, + position: item.position?item.position:null, // posTypeId: item.posTypeId, - posTypeName: item.posTypeName, + posTypeName: item.posTypeName?item.posTypeName:null, // posLevelId: item.posLevelId, - posLevelName: item.posLevelName, - organization: organization, + posLevelName: item.posLevelName?item.posLevelName:null, + organization: organization?organization:null, }; }); return new HttpSuccess({ data: mapData, total });