This commit is contained in:
Bright 2025-02-20 12:59:22 +07:00
parent fc397ed22d
commit 3b087b0032
2 changed files with 4 additions and 4 deletions

View file

@ -1839,10 +1839,10 @@ export class ProfileEmployeeController extends Controller {
.andWhere(
isRetire != undefined && isRetire != null
? isRetire == false
? `profileEmployee.dateLeave IS NULL`
? `profileEmployee.isLeave IS FALSE`
: isRetire == true && retireType != undefined && retireType != null
? `profileEmployee.dateLeave IS NOT NULL AND profileEmployee.leaveType = '${retireType}'`
: `profileEmployee.dateLeave IS NOT NULL`
? `profileEmployee.isLeave IS TRUE AND profileEmployee.leaveType = '${retireType}'`
: `profileEmployee.isLeave IS TRUE`
: "1=1",
)
.andWhere("profileEmployee.employeeClass LIKE :type", {