fix retire: table name & add status isLeave, isRetirement
This commit is contained in:
parent
f2efb44336
commit
a25b017bad
3 changed files with 20 additions and 2 deletions
|
|
@ -10441,6 +10441,10 @@ export class ProfileController extends Controller {
|
|||
start: `${year - 1}-10-02`,
|
||||
end: `${year}-10-01`,
|
||||
})
|
||||
.andWhere("profile.isLeave = :isLeave AND profile.isRetirement = :isRetirement", {
|
||||
isLeave: false,
|
||||
isRetirement: false,
|
||||
})
|
||||
.getMany();
|
||||
|
||||
if (!profiles || profiles.length === 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue