no message

This commit is contained in:
kittapath 2024-10-11 10:10:50 +07:00
parent 87a69017bc
commit d10c38d1b9

View file

@ -2517,6 +2517,22 @@ export class CommandController extends Controller {
await this.profileEmployeeRepository.save(data);
return new HttpSuccess();
}
@Post("command21/employee/delete")
public async command21SalaryEmployeeDelete(
@Request() req: RequestWithUser,
@Body()
body: {
refIds: string[];
},
) {
const profile = await this.profileEmployeeRepository.find({ where: { id: In(body.refIds) } });
const data = profile.map((_data) => ({
..._data,
statusTemp: "WAITTING",
}));
await this.profileEmployeeRepository.save(data);
return new HttpSuccess();
}
@Post("command40/officer/report/excecute")
public async command40SalaryOfficerExcecute(
@ -2545,12 +2561,28 @@ export class CommandController extends Controller {
refIds: string[];
},
) {
const profile = await this.profileEmployeeRepository.find({ where: { id: In(body.refIds) } });
const data = profile.map((_data) => ({
..._data,
statusTemp: "DONE",
}));
await this.profileEmployeeRepository.save(data);
// const profile = await this.profileEmployeeRepository.find({ where: { id: In(body.refIds) } });
// const data = profile.map((_data) => ({
// ..._data,
// statusTemp: "DONE",
// }));
// await this.profileEmployeeRepository.save(data);
return new HttpSuccess();
}
@Post("command40/officer/delete")
public async command40SalaryOfficerDelete(
@Request() req: RequestWithUser,
@Body()
body: {
refIds: string[];
},
) {
// const profile = await this.profileEmployeeRepository.find({ where: { id: In(body.refIds) } });
// const data = profile.map((_data) => ({
// ..._data,
// statusTemp: "WAITTING",
// }));
// await this.profileEmployeeRepository.save(data);
return new HttpSuccess();
}
@Post("command40/officer/report/attachment")