no message
This commit is contained in:
parent
87a69017bc
commit
d10c38d1b9
1 changed files with 38 additions and 6 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue