Task #2208 กรณีขอแก้ไขข้อมูลทะเบียนประวัติ และ IDP และคนขออยู่ในสำนักปลัดกรุงเทพมหานคร
All checks were successful
Build & Deploy on Dev / build (push) Successful in 59s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 59s
This commit is contained in:
parent
757da877f6
commit
ae3a634595
3 changed files with 66 additions and 11 deletions
|
|
@ -145,12 +145,22 @@ export class WorkflowController extends Controller {
|
|||
metaStates.find((metaState) => metaState.id === metaStateOp.metaStateId)?.order ===
|
||||
state.order,
|
||||
);
|
||||
// Task #2207 กรณีคนขอโอนอยู่ในสำนักปลัดกรุงเทพมหานคร
|
||||
if (body.isDeputy && metaStateOp.operator == "PersonnelOfficer" && correspondingState?.order == 1) {
|
||||
return;
|
||||
}
|
||||
else if (body.isDeputy && metaStateOp.operator == "Officer" && [1, 2].includes(correspondingState?.order as number)) {
|
||||
metaStateOp.operator = "PersonnelOfficer"
|
||||
if (body.isDeputy) {
|
||||
// Task #2207 กรณีคนขอโอนอยู่ในสำนักปลัดกรุงเทพมหานคร
|
||||
if (body.sysName == "SYS_TRANSFER_REQ") {
|
||||
if (metaStateOp.operator == "PersonnelOfficer" && correspondingState?.order == 1) {
|
||||
return;
|
||||
}
|
||||
else if (metaStateOp.operator == "Officer" && [1, 2].includes(correspondingState?.order as number)) {
|
||||
metaStateOp.operator = "PersonnelOfficer"
|
||||
}
|
||||
}
|
||||
// Task #2208 กรณีขอแก้ไขข้อมูลทะเบียนประวัติ และ IDP และคนขออยู่ในสำนักปลัดกรุงเทพมหานคร
|
||||
if (metaStateOp.operator == "Officer" &&
|
||||
(["REGISTRY_PROFILE", "REGISTRY_PROFILE_EMP", "REGISTRY_IDP"].includes(body.sysName))
|
||||
) {
|
||||
metaStateOp.operator = "PersonnelOfficer"
|
||||
}
|
||||
}
|
||||
if (correspondingState) {
|
||||
const stateOperator = new StateOperator();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue