API อัพเดทสถานะ CANCEL คำสั่งยกเลิกการลาออก, คำสั่งยกเลิกการลาออกลูกจ้าง #1409

This commit is contained in:
Bright 2025-09-25 18:07:18 +07:00
parent f8ba8004b3
commit 191ca586c5

View file

@ -3012,6 +3012,29 @@ export class CommandController extends Controller {
return new HttpSuccess(_data);
}
/**
* API CANCEL ,
*
* @summary API CANCEL ,
*
*/
@Post("cancel-resign")
public async command41Excecute(
@Request() req: RequestWithUser,
@Body()
body: {
commandId: string[];
},
) {
const commands = await this.commandRepository.find({ where: { id: In(body.commandId) } });
const data = commands.map((_data) => ({
..._data,
status: "CANCEL",
}));
await this.commandRepository.save(data);
return new HttpSuccess();
}
@Post("excexute/salary-current")
public async newSalaryAndUpdateCurrent(
@Request() req: RequestWithUser,