add dpis controller
This commit is contained in:
parent
497decefe4
commit
4852131651
74 changed files with 606 additions and 336 deletions
|
|
@ -128,7 +128,7 @@ export class ProfileSalaryEmployeeTempController extends Controller {
|
|||
Object.assign(history, { ...data, id: undefined });
|
||||
|
||||
await this.salaryRepo.save(data, { data: req });
|
||||
setLogDataDiff( req, { before, after: data });
|
||||
setLogDataDiff(req, { before, after: data });
|
||||
history.profileSalaryId = data.id;
|
||||
await this.salaryHistoryRepo.save(history, { data: req });
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ export class ProfileSalaryEmployeeTempController extends Controller {
|
|||
await Promise.all([
|
||||
this.salaryRepo.save(record, { data: req }),
|
||||
setLogDataDiff(req, { before, after: record }),
|
||||
this.salaryHistoryRepo.save(history, { data: req })
|
||||
this.salaryHistoryRepo.save(history, { data: req }),
|
||||
]);
|
||||
|
||||
return new HttpSuccess();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue