This commit is contained in:
AdisakKanthawilang 2024-07-16 12:52:50 +07:00
parent 2c5423e4ff
commit b859a81995

View file

@ -290,14 +290,14 @@ export class KpiUserEvaluationController extends Controller {
evaluatorId: item.evaluatorId,
commanderId: item.commanderId,
commanderHighId: item.commanderHighId,
root: item.org?item.org:null,
rootId: item.orgId?item.orgId:null,
position: item.position?item.position:null,
root: item.org ? item.org : null,
rootId: item.orgId ? item.orgId : null,
position: item.position ? item.position : null,
// posTypeId: item.posTypeId,
posTypeName: item.posTypeName?item.posTypeName:null,
posTypeName: item.posTypeName ? item.posTypeName : null,
// posLevelId: item.posLevelId,
posLevelName: item.posLevelName?item.posLevelName:null,
organization: organization?organization:null,
posLevelName: item.posLevelName ? item.posLevelName : null,
organization: organization ? organization : null,
};
});
return new HttpSuccess({ data: mapData, total });
@ -1385,7 +1385,7 @@ export class KpiUserEvaluationController extends Controller {
Promise.all(
kpiUserEvaluations.map(async (kpiUserEvaluation) => {
kpiUserEvaluation.evaluationStatus = "KP7";
await new CallAPI()
new CallAPI()
.PostData(request, "/org/profile/assessments", {
date: new Date(),
name: kpiUserEvaluation.evaluationResults,
@ -1398,7 +1398,7 @@ export class KpiUserEvaluationController extends Controller {
profileId: kpiUserEvaluation.profileId,
})
.then(async (x) => {});
await new CallAPI()
new CallAPI()
.PostData(request, "/placement/noti/profile", {
subject: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} ระดับผลการประเมินการปฏิบัติราชการระดับบุคคลของคุณอยู่ในเกณฑ์ ${kpiUserEvaluation.summaryPoint}`,
body: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} ระดับผลการประเมินการปฏิบัติราชการระดับบุคคลของคุณอยู่ในเกณฑ์ ${kpiUserEvaluation.summaryPoint}`,