From 99e93b59cd1e3a8908e698b89081f07da2fd4189 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 6 Jun 2024 17:57:47 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=9F?= =?UTF-8?q?=E0=B8=B4=E0=B8=A5=E0=B8=94=E0=B9=8C=E0=B8=AB=E0=B8=99=E0=B9=88?= =?UTF-8?q?=E0=B8=A7=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=9A=E0=B8=A3?= =?UTF-8?q?=E0=B8=A3=E0=B8=88=E0=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileEmployeeController.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 53d34899..17eb7f97 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -803,11 +803,11 @@ export class ProfileEmployeeController extends Controller { createdAt: _data.createdAt, dateRetireLaw: _data.dateRetireLaw, draftOrganizationOrganization: - _data.rootTemp? _data.rootTemp : - _data.child1Temp? _data.child1Temp : - _data.child2Temp? _data.child2Temp : - _data.child3Temp? _data.child3Temp : - _data.child4Temp? _data.child4Temp : null, + _data.nodeTemp == "0" ? _data.rootTemp : + _data.nodeTemp == "1" ? _data.child1Temp : + _data.nodeTemp == "2" ? _data.child2Temp : + _data.nodeTemp == "3" ? _data.child3Temp : + _data.nodeTemp == "4" ? _data.child4Temp : null, draftPositionEmployee: _data.positionTemp, draftOrgEmployeeStatus: _data.statusTemp };