From 96646eb1e163616a015669b1f84385410b952b87 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 28 May 2024 15:01:15 +0700 Subject: [PATCH] add field search-personal --- src/controllers/ProfileController.ts | 6 +++++- src/controllers/ProfileEmployeeController.ts | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index e73c38ae..3daa36aa 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -2025,7 +2025,11 @@ export class ProfileController extends Controller { child3ShortName: child3Holder?.orgChild3ShortName ?? null, child4: child4Holder?.orgChild4Name ?? null, child4Id: child4Holder?.id ?? null, - // posMasterNo: posMasterNo, + posMasterNo: posMasterNo ?? null, + posTypeId: item.posTypeId, + posTypeName: item.posType?.posTypeName, + posLevelId: item.posLevelId, + posLevelName: item.posLevel?.posLevelName, }; }), ); diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index dbee92c5..33370f04 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -1303,6 +1303,9 @@ export class ProfileEmployeeController extends Controller { const child4Holder = item.current_holders?.find( (x) => x.orgRevisionId == findRevision.id, )?.orgChild4; + const posMasterNo = item.current_holders?.find( + (x) => x.orgRevisionId == findRevision.id, + )?.posMasterNo; return { id: item.id, @@ -1337,6 +1340,11 @@ export class ProfileEmployeeController extends Controller { child4: child4Holder?.orgChild4Name ?? null, child4Id: child4Holder?.id ?? null, child4ShortName: child4Holder?.orgChild4ShortName ?? null, + posMasterNo: posMasterNo ?? null, + posTypeId: item.posTypeId, + posTypeName: item.posType?.posTypeName, + posLevelId: item.posLevelId, + posLevelName: item.posLevel?.posLevelName, }; }), );