From 212360a764a45415695f151f828433df75215a4b Mon Sep 17 00:00:00 2001 From: adisak Date: Thu, 2 Apr 2026 15:01:38 +0700 Subject: [PATCH] #2387 update --- src/controllers/ProfileGovernmentController.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/controllers/ProfileGovernmentController.ts b/src/controllers/ProfileGovernmentController.ts index b3238672..8caaff28 100644 --- a/src/controllers/ProfileGovernmentController.ts +++ b/src/controllers/ProfileGovernmentController.ts @@ -110,19 +110,20 @@ export class ProfileGovernmentHistoryController extends Controller { orgShortName = posMaster.orgChild4?.orgChild4ShortName; } } + //posMaster?.isSit แก้ไขชั่วคราว const data = { org: org, //สังกัด - positionField: position == null ? null : position.positionField, //สายงาน + positionField: position == null || posMaster?.isSit ? null : position.positionField, //สายงาน position: record.position, //ตำแหน่ง posLevel: record.posLevel == null ? null : record.posLevel.posLevelName, //ระดับ posMasterNo: posMaster == null ? null : `${orgShortName} ${posMaster.posMasterNo}`, //เลขที่ตำแหน่ง posType: record.posType == null ? null : record.posType.posTypeName, //ประเภท posExecutive: - position == null || position.posExecutive == null + position == null || position.posExecutive == null || posMaster?.isSit ? null : position.posExecutive.posExecutiveName, //ตำแหน่งทางการบริหาร - positionArea: position == null ? null : position.positionArea, //ด้าน/สาขา - positionExecutiveField: position == null ? null : position.positionExecutiveField, //ด้านทางการบริหาร + positionArea: position == null || posMaster?.isSit ? null : position.positionArea, //ด้าน/สาขา + positionExecutiveField: position == null || posMaster?.isSit ? null : position.positionExecutiveField, //ด้านทางการบริหาร dateLeave: record.birthDate == null ? null : calculateRetireDate(record.birthDate), dateRetireLaw: record.dateRetireLaw ?? null, // govAge: record.dateStart == null ? null : calculateAge(record.dateStart),