Migration add fields isDeleted #210
This commit is contained in:
parent
3c9e3a1bb6
commit
65e3740cc2
82 changed files with 499 additions and 180 deletions
|
|
@ -120,7 +120,7 @@ export class ProfileLeaveController extends Controller {
|
|||
}
|
||||
const record = await this.leaveRepo.find({
|
||||
relations: { leaveType: true },
|
||||
where: { profileId: profile.id },
|
||||
where: { profileId: profile.id, isDeleted: false },
|
||||
order: { createdAt: "ASC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
|
|
@ -136,6 +136,7 @@ export class ProfileLeaveController extends Controller {
|
|||
where: {
|
||||
profileId: profileId,
|
||||
// status: Not("cancel")
|
||||
isDeleted: false
|
||||
},
|
||||
order: { createdAt: "ASC" },
|
||||
});
|
||||
|
|
@ -148,7 +149,7 @@ export class ProfileLeaveController extends Controller {
|
|||
if (_workflow == false) await new permission().PermissionGet(req, "SYS_SALARY_OFFICER");
|
||||
const record = await this.leaveRepo.find({
|
||||
relations: { leaveType: true },
|
||||
where: { profileId },
|
||||
where: { profileId, isDeleted: false },
|
||||
order: { createdAt: "ASC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue