From 342c7dde679979c95c2389bdeb3cce22af045a1c Mon Sep 17 00:00:00 2001 From: Adisak Date: Thu, 2 Oct 2025 15:18:48 +0700 Subject: [PATCH] =?UTF-8?q?comment=20=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=A3=E0=B9=8C=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B9=88=E0=B8=87=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88?= =?UTF-8?q?=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=AB=E0=B8=A5=E0=B8=B1=E0=B8=87?= =?UTF-8?q?=E0=B8=A5=E0=B8=9A=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=88=E0=B8=B2?= =?UTF-8?q?=E0=B8=81=E0=B8=84=E0=B8=A3=E0=B8=AD=E0=B8=87=E0=B8=95=E0=B8=B3?= =?UTF-8?q?=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/EmployeePositionController.ts | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/controllers/EmployeePositionController.ts b/src/controllers/EmployeePositionController.ts index b0091494..86bf8bde 100644 --- a/src/controllers/EmployeePositionController.ts +++ b/src/controllers/EmployeePositionController.ts @@ -2293,22 +2293,22 @@ export class EmployeePositionController extends Controller { if (!dataMaster) { throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตำแหน่งนี้"); } - if (dataMaster.current_holderId != null) { - const profile = await this.profileRepository.findOne({ - where: { - id: dataMaster.current_holderId, - }, - }); - const _null: any = null; - if (profile != null) { - profile.posLevelId = _null; - profile.posTypeId = _null; - profile.position = _null; - profile.employeeOc = _null; - profile.positionEmployeePositionId = _null; - await this.profileRepository.save(profile); - } - } + // if (dataMaster.current_holderId != null) { + // const profile = await this.profileRepository.findOne({ + // where: { + // id: dataMaster.current_holderId, + // }, + // }); + // const _null: any = null; + // if (profile != null) { + // profile.posLevelId = _null; + // profile.posTypeId = _null; + // profile.position = _null; + // profile.employeeOc = _null; + // profile.positionEmployeePositionId = _null; + // await this.profileRepository.save(profile); + // } + // } await this.employeePosMasterRepository.update(id, { isSit: false,