From dda2b64bc253295d9b2881498debeb4a07417b75 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Tue, 9 Jul 2024 00:03:27 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 3 ++- src/controllers/ReportController.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 187353e..bd954b7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,8 @@ env: REGISTRY: docker.frappet.com IMAGE_NAME: ehr/bma-ehr-salary-service DEPLOY_HOST: frappet.com - COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-salary + COMPOSE_PATH: /home/frappet/docker/bma-ehr + # COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-salary jobs: # act workflow_dispatch -W .github/workflows/release.yaml --input IMAGE_VER=version-1.0.36 -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357 release-test: diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index 9f7ff21..19ac180 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -1666,7 +1666,7 @@ export class ReportController extends Controller { salaryPeriodId: salaryPeriodId, }, type: In(["HAFT", "FULL", "FULLHAFT"]), - isRetired: false, //กรองเฉพาะคนที่ไม่เกษียณ + isRetired: salaryPeriod.period === "APR" ? In([true, false]) : false, //กรองเฉพาะคนที่ไม่เกษียณเฉพาะรอบตุลา }, order: { salaryOrg: { @@ -1846,8 +1846,8 @@ export class ReportController extends Controller { }); return new HttpSuccess({ - template: salaryPeriod.period == "APR" ? "gov1-04" : "gov2-04", - reportName: salaryPeriod.period == "APR" ? "gov1-04" : "gov2-04", + template: salaryPeriod.period == "APR" ? "gov1-04" : "gov2-04-01", + reportName: salaryPeriod.period == "APR" ? "gov1-04" : "gov2-04-01", data: { year: Extension.ToThaiNumber(String(Extension.ToThaiYear(salaryPeriod.year))), effectiveDate: salaryPeriod.effectiveDate, @@ -2036,8 +2036,8 @@ export class ReportController extends Controller { }); return new HttpSuccess({ - template: salaryPeriod.period == "APR" ? "gov1-05" : "gov2-05", - reportName: salaryPeriod.period == "APR" ? "gov1-05" : "gov2-05", + template: salaryPeriod.period == "APR" ? "gov1-05" : "gov2-05-01", + reportName: salaryPeriod.period == "APR" ? "gov1-05" : "gov2-05-01", data: { year: Extension.ToThaiNumber(String(Extension.ToThaiYear(salaryPeriod.year))), agency: root, @@ -2302,7 +2302,7 @@ export class ReportController extends Controller { }, relations: ["salaryProfiles"], }); - + const salaryProfileSpecial = await this.salaryProfileRepository.find({ relations: ["salaryOrg"], where: {