fix
This commit is contained in:
parent
fc397ed22d
commit
3b087b0032
2 changed files with 4 additions and 4 deletions
|
|
@ -4795,7 +4795,7 @@ export class ProfileController extends Controller {
|
||||||
isRetire != undefined && isRetire != null
|
isRetire != undefined && isRetire != null
|
||||||
? isRetire == false
|
? isRetire == false
|
||||||
// ? `profile.dateLeave IS NULL`
|
// ? `profile.dateLeave IS NULL`
|
||||||
? `profile.isLeave IS FALSE `
|
? `profile.isLeave IS FALSE`
|
||||||
: isRetire == true && retireType != undefined && retireType != null
|
: isRetire == true && retireType != undefined && retireType != null
|
||||||
// ? `profile.dateLeave IS NOT NULL AND profile.leaveType = '${retireType}'`
|
// ? `profile.dateLeave IS NOT NULL AND profile.leaveType = '${retireType}'`
|
||||||
// : `profile.dateLeave IS NOT NULL`
|
// : `profile.dateLeave IS NOT NULL`
|
||||||
|
|
|
||||||
|
|
@ -1839,10 +1839,10 @@ export class ProfileEmployeeController extends Controller {
|
||||||
.andWhere(
|
.andWhere(
|
||||||
isRetire != undefined && isRetire != null
|
isRetire != undefined && isRetire != null
|
||||||
? isRetire == false
|
? isRetire == false
|
||||||
? `profileEmployee.dateLeave IS NULL`
|
? `profileEmployee.isLeave IS FALSE`
|
||||||
: isRetire == true && retireType != undefined && retireType != null
|
: isRetire == true && retireType != undefined && retireType != null
|
||||||
? `profileEmployee.dateLeave IS NOT NULL AND profileEmployee.leaveType = '${retireType}'`
|
? `profileEmployee.isLeave IS TRUE AND profileEmployee.leaveType = '${retireType}'`
|
||||||
: `profileEmployee.dateLeave IS NOT NULL`
|
: `profileEmployee.isLeave IS TRUE`
|
||||||
: "1=1",
|
: "1=1",
|
||||||
)
|
)
|
||||||
.andWhere("profileEmployee.employeeClass LIKE :type", {
|
.andWhere("profileEmployee.employeeClass LIKE :type", {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue