API อัพเดทสถานะ CANCEL คำสั่งยกเลิกการลาออก, คำสั่งยกเลิกการลาออกลูกจ้าง #1409
This commit is contained in:
parent
f8ba8004b3
commit
191ca586c5
1 changed files with 23 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue