FIX ส่งรายชื่อลูกจ้างชั่วคราวที่เลือกตำแหน่งในโครงสร้างลูกจ้างประจำไปออกคำสั่ง
This commit is contained in:
parent
0b754da4b4
commit
c0e2c10cee
1 changed files with 13 additions and 0 deletions
|
|
@ -1132,6 +1132,19 @@ export class ProfileEmployeeTempController extends Controller {
|
|||
child4: _dataOrg.child4,
|
||||
},
|
||||
)
|
||||
// หรือ ไม่ได้เลือกตำแหน่งในโครงสร้างลูกจ้างชั่วคราว แต่เลือกตำแหน่งในโครงสร้างลูกจ้างประจำแล้ว
|
||||
.orWhere(
|
||||
`current_holderTemps.orgRootId is null AND
|
||||
profileEmployee.rootIdTemp is not null AND
|
||||
profileEmployee.statusTemp = :statusTemp AND
|
||||
profileEmployee.employeeClass = :type AND
|
||||
profileEmployee.createdUserId = :keycloak`,
|
||||
{
|
||||
statusTemp: "PENDING",
|
||||
type: "TEMP",
|
||||
keycloak: request.user.sub
|
||||
}
|
||||
)
|
||||
.getManyAndCount();
|
||||
const data = await Promise.all(
|
||||
record.map((_data) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue