From 9d6ca55bd802009f7f29372b84b5f762d2ceda7a Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 3 Apr 2025 11:14:12 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=AA=E0=B8=96?= =?UTF-8?q?=E0=B9=88=E0=B8=99=E0=B8=B0=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ReportController.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index 1d23d1a..240ec4d 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -7627,6 +7627,7 @@ export class ReportController extends Controller { @Body() body: { refIds: string[]; + status: string; }, @Request() request: RequestWithUser, ) { @@ -7635,7 +7636,7 @@ export class ReportController extends Controller { }); const data = salaryProfile.map((_data) => ({ ..._data, - status33: "REPORT", + status33: body.status.trim().toUpperCase(), })); await this.salaryProfileRepository.save(data); return new HttpSuccess(); @@ -7653,6 +7654,7 @@ export class ReportController extends Controller { @Body() body: { refIds: string[]; + status: string; }, @Request() request: RequestWithUser, ) { @@ -7661,7 +7663,7 @@ export class ReportController extends Controller { }); const data = salaryProfile.map((_data) => ({ ..._data, - status34: "REPORT", + status34: body.status.trim().toUpperCase(), })); await this.salaryProfileRepository.save(data); return new HttpSuccess(); @@ -7679,6 +7681,7 @@ export class ReportController extends Controller { @Body() body: { refIds: string[]; + status: string; }, @Request() request: RequestWithUser, ) { @@ -7687,7 +7690,7 @@ export class ReportController extends Controller { }); const data = salaryProfile.map((_data) => ({ ..._data, - status35: "REPORT", + status35: body.status.trim().toUpperCase(), })); await this.salaryProfileRepository.save(data); return new HttpSuccess(); @@ -7706,6 +7709,7 @@ export class ReportController extends Controller { @Body() body: { refIds: string[]; + status: string; }, @Request() request: RequestWithUser, ) { @@ -7714,7 +7718,7 @@ export class ReportController extends Controller { }); const data = salaryProfile.map((_data) => ({ ..._data, - status36: "REPORT", + status36: body.status.trim().toUpperCase(), })); await this.salaryProfileEmployeeRepository.save(data); return new HttpSuccess(); @@ -7733,6 +7737,7 @@ export class ReportController extends Controller { @Body() body: { refIds: string[]; + status: string; }, @Request() request: RequestWithUser, ) { @@ -7741,7 +7746,7 @@ export class ReportController extends Controller { }); const data = salaryProfile.map((_data) => ({ ..._data, - status37: "REPORT", + status37: body.status.trim().toUpperCase(), })); await this.salaryProfileEmployeeRepository.save(data); return new HttpSuccess(); @@ -8937,5 +8942,4 @@ export class ReportController extends Controller { await this.salaryProfileEmployeeRepository.save(data); return new HttpSuccess(); } - }