fix retire: table name & add status isLeave, isRetirement

This commit is contained in:
Warunee Tamkoo 2025-10-17 11:07:26 +07:00
parent f2efb44336
commit a25b017bad
3 changed files with 20 additions and 2 deletions

View file

@ -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) {