update noti
This commit is contained in:
parent
9fc6e5a419
commit
87a32f3a6a
1 changed files with 28 additions and 8 deletions
|
|
@ -1142,10 +1142,15 @@ export class KpiUserEvaluationController extends Controller {
|
|||
kpiUserEvaluation.actorNameReject = _null;
|
||||
} else if (requestBody.status.trim().toUpperCase() == "EVALUATING_EVALUATOR") {
|
||||
await new CallAPI()
|
||||
.PostData(request, "/placement/noti/profile", {
|
||||
.PostData(request, "/placement/noti/profiles", {
|
||||
subject: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} สรุปการประเมินผลการปฏิบัติราชการระดับบุคคล`,
|
||||
body: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} สรุปการประเมินผลการปฏิบัติราชการระดับบุคคล`,
|
||||
receiverUserId: kpiUserEvaluation.evaluatorId,
|
||||
receiverUserIds: [
|
||||
{
|
||||
receiverUserId: kpiUserEvaluation.evaluatorId,
|
||||
notiLink: `${process.env.USER_NOTI_URL}/KPI-evaluator/${kpiUserEvaluation.id}`,
|
||||
},
|
||||
],
|
||||
payload: "",
|
||||
isSendMail: true,
|
||||
isSendInbox: true,
|
||||
|
|
@ -1191,10 +1196,15 @@ export class KpiUserEvaluationController extends Controller {
|
|||
);
|
||||
}
|
||||
await new CallAPI()
|
||||
.PostData(request, "/placement/noti/profile", {
|
||||
.PostData(request, "/placement/noti/profiles", {
|
||||
subject: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} ไม่อนุมัติเนื่องจาก: ${requestBody.reason}`,
|
||||
body: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} ไม่อนุมัติเนื่องจาก: ${requestBody.reason}`,
|
||||
receiverUserId: kpiUserEvaluation.profileId,
|
||||
receiverUserIds: [
|
||||
{
|
||||
receiverUserId: kpiUserEvaluation.profileId,
|
||||
notiLink: `${process.env.USER_NOTI_URL}/KPI-evaluator/${kpiUserEvaluation.id}`,
|
||||
},
|
||||
],
|
||||
payload: "",
|
||||
isSendMail: true,
|
||||
isSendInbox: true,
|
||||
|
|
@ -1577,10 +1587,15 @@ export class KpiUserEvaluationController extends Controller {
|
|||
item.evaluationStatus = "APPROVE";
|
||||
} else {
|
||||
await new CallAPI()
|
||||
.PostData(request, "/placement/noti/profile", {
|
||||
.PostData(request, "/placement/noti/profiles", {
|
||||
subject: `${item.prefix}${item.firstName} ${item.lastName} ผู้ประเมินอนุมัติข้อตกลง`,
|
||||
body: `${item.prefix}${item.firstName} ${item.lastName} ผู้ประเมินอนุมัติข้อตกลง`,
|
||||
receiverUserId: item.commanderId,
|
||||
receiverUserIds: [
|
||||
{
|
||||
receiverUserId: item.commanderId,
|
||||
notiLink: `${process.env.USER_NOTI_URL}/KPI-evaluator/${item.id}`,
|
||||
},
|
||||
],
|
||||
payload: "",
|
||||
isSendMail: true,
|
||||
isSendInbox: true,
|
||||
|
|
@ -1597,10 +1612,15 @@ export class KpiUserEvaluationController extends Controller {
|
|||
item.evaluationStatus = "APPROVE";
|
||||
} else {
|
||||
await new CallAPI()
|
||||
.PostData(request, "/placement/noti/profile", {
|
||||
.PostData(request, "/placement/noti/profiles", {
|
||||
subject: `${item.prefix}${item.firstName} ${item.lastName} ผู้บังคับบัญชาเหนือขึ้นไปอนุมัติข้อตกลง`,
|
||||
body: `${item.prefix}${item.firstName} ${item.lastName} ผู้บังคับบัญชาเหนือขึ้นไปอนุมัติข้อตกลง`,
|
||||
receiverUserId: item.commanderHighId,
|
||||
receiverUserIds: [
|
||||
{
|
||||
receiverUserId: item.commanderHighId,
|
||||
notiLink: `${process.env.USER_NOTI_URL}/KPI-evaluator/${item.id}`,
|
||||
},
|
||||
],
|
||||
payload: "",
|
||||
isSendMail: true,
|
||||
isSendInbox: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue