no message
This commit is contained in:
parent
338213145a
commit
f3f3d8ac52
1 changed files with 23 additions and 0 deletions
|
|
@ -1544,6 +1544,7 @@ export class KpiUserEvaluationController extends Controller {
|
||||||
await new permission().PermissionCreate(request, "SYS_RESULT");
|
await new permission().PermissionCreate(request, "SYS_RESULT");
|
||||||
const kpiUserEvaluations = await this.kpiUserEvalutionRepository.find({
|
const kpiUserEvaluations = await this.kpiUserEvalutionRepository.find({
|
||||||
where: { id: In(requestBody.id) },
|
where: { id: In(requestBody.id) },
|
||||||
|
relations: ["kpiUserDevelopments", "kpiUserDevelopments.developmentProjects"],
|
||||||
});
|
});
|
||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
|
@ -1562,6 +1563,28 @@ export class KpiUserEvaluationController extends Controller {
|
||||||
profileId: kpiUserEvaluation.profileId,
|
profileId: kpiUserEvaluation.profileId,
|
||||||
})
|
})
|
||||||
.then(async (x) => {});
|
.then(async (x) => {});
|
||||||
|
|
||||||
|
kpiUserEvaluation.kpiUserDevelopments.map(async (kpiUserDevelopment) => {
|
||||||
|
new CallAPI()
|
||||||
|
.PostData(request, "/org/profile/development", {
|
||||||
|
profileId: kpiUserEvaluation.profileId,
|
||||||
|
name: kpiUserDevelopment.name,
|
||||||
|
target: kpiUserDevelopment.target,
|
||||||
|
achievement10: kpiUserDevelopment.achievement10,
|
||||||
|
achievement5: kpiUserDevelopment.achievement5,
|
||||||
|
achievement0: kpiUserDevelopment.achievement0,
|
||||||
|
developmentProjects: kpiUserDevelopment.developmentProjects.map((x) => x.name),
|
||||||
|
reasonDevelopment70: kpiUserDevelopment.reasonDevelopment70,
|
||||||
|
reasonDevelopment20: kpiUserDevelopment.reasonDevelopment20,
|
||||||
|
reasonDevelopment10: kpiUserDevelopment.reasonDevelopment10,
|
||||||
|
isDevelopment70: kpiUserDevelopment.isDevelopment70,
|
||||||
|
isDevelopment20: kpiUserDevelopment.isDevelopment20,
|
||||||
|
isDevelopment10: kpiUserDevelopment.isDevelopment70,
|
||||||
|
summary: kpiUserDevelopment.summary,
|
||||||
|
point: kpiUserDevelopment.point,
|
||||||
|
})
|
||||||
|
.then(async (x) => {});
|
||||||
|
});
|
||||||
new CallAPI()
|
new CallAPI()
|
||||||
.PostData(request, "/placement/noti/profile", {
|
.PostData(request, "/placement/noti/profile", {
|
||||||
subject: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} ระดับผลการประเมินการปฏิบัติราชการระดับบุคคลของคุณอยู่ในเกณฑ์ ${kpiUserEvaluation.summaryPoint}`,
|
subject: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} ระดับผลการประเมินการปฏิบัติราชการระดับบุคคลของคุณอยู่ในเกณฑ์ ${kpiUserEvaluation.summaryPoint}`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue