[ExecuteSalaryCurrentService] ครอบ transaction + respone success/fail count
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m3s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m3s
This commit is contained in:
parent
00c35e8974
commit
64be68d0a3
3 changed files with 366 additions and 291 deletions
|
|
@ -106,7 +106,7 @@ import { reOrderCommandRecivesAndDelete } from "../services/CommandService";
|
|||
import { RetirementService } from "../services/RetirementService";
|
||||
import { ExecuteOfficerProfileService } from "../services/ExecuteOfficerProfileService";
|
||||
import { ExecuteSalaryService } from "../services/ExecuteSalaryService";
|
||||
import { ExecuteSalaryCurrentService } from "../services/ExecuteSalaryCurrentService";
|
||||
import { ExecuteSalaryCurrentService, ExecuteSalaryResult } from "../services/ExecuteSalaryCurrentService";
|
||||
import { ExecuteSalaryEmployeeCurrentService } from "../services/ExecuteSalaryEmployeeCurrentService";
|
||||
import { ExecuteSalaryLeaveService } from "../services/ExecuteSalaryLeaveService";
|
||||
import { ExecuteSalaryEmployeeLeaveService } from "../services/ExecuteSalaryEmployeeLeaveService";
|
||||
|
|
@ -3702,11 +3702,14 @@ export class CommandController extends Controller {
|
|||
}[];
|
||||
},
|
||||
) {
|
||||
await new ExecuteSalaryCurrentService().executeSalaryCurrent(body.data, {
|
||||
user: { sub: req.user.sub, name: req.user.name },
|
||||
req,
|
||||
});
|
||||
return new HttpSuccess();
|
||||
const result: ExecuteSalaryResult = await new ExecuteSalaryCurrentService().executeSalaryCurrent(
|
||||
body.data,
|
||||
{
|
||||
user: { sub: req.user.sub, name: req.user.name },
|
||||
req,
|
||||
},
|
||||
);
|
||||
return new HttpSuccess(result);
|
||||
}
|
||||
|
||||
@Post("excexute/salary-employee-current")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue