fix ค้นหาข้อมูลทะเบียนประวัติลูกจ้าง
This commit is contained in:
parent
cf5b36b94c
commit
87a91b035c
1 changed files with 4 additions and 4 deletions
|
|
@ -1616,16 +1616,16 @@ export class ProfileEmployeeController extends Controller {
|
|||
)
|
||||
.andWhere(
|
||||
isProbation != undefined && isProbation != null
|
||||
? `profile.isProbation = ${isProbation}`
|
||||
? `profileEmployee.isProbation = ${isProbation}`
|
||||
: "1=1",
|
||||
)
|
||||
.andWhere(
|
||||
isRetire != undefined && isRetire != null
|
||||
? isRetire == false
|
||||
? `profile.dateLeave IS NULL`
|
||||
? `profileEmployee.dateLeave IS NULL`
|
||||
: isRetire == true && retireType != undefined && retireType != null
|
||||
? `profile.dateLeave IS NOT NULL AND profile.leaveType = '${retireType}'`
|
||||
: `profile.dateLeave IS NOT NULL`
|
||||
? `profileEmployee.dateLeave IS NOT NULL AND profileEmployee.leaveType = '${retireType}'`
|
||||
: `profileEmployee.dateLeave IS NOT NULL`
|
||||
: "1=1"
|
||||
)
|
||||
.andWhere("profileEmployee.employeeClass LIKE :type", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue