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(
|
.andWhere(
|
||||||
isProbation != undefined && isProbation != null
|
isProbation != undefined && isProbation != null
|
||||||
? `profile.isProbation = ${isProbation}`
|
? `profileEmployee.isProbation = ${isProbation}`
|
||||||
: "1=1",
|
: "1=1",
|
||||||
)
|
)
|
||||||
.andWhere(
|
.andWhere(
|
||||||
isRetire != undefined && isRetire != null
|
isRetire != undefined && isRetire != null
|
||||||
? isRetire == false
|
? isRetire == false
|
||||||
? `profile.dateLeave IS NULL`
|
? `profileEmployee.dateLeave IS NULL`
|
||||||
: isRetire == true && retireType != undefined && retireType != null
|
: isRetire == true && retireType != undefined && retireType != null
|
||||||
? `profile.dateLeave IS NOT NULL AND profile.leaveType = '${retireType}'`
|
? `profileEmployee.dateLeave IS NOT NULL AND profileEmployee.leaveType = '${retireType}'`
|
||||||
: `profile.dateLeave IS NOT NULL`
|
: `profileEmployee.dateLeave IS NOT NULL`
|
||||||
: "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