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(); } - }