This commit is contained in:
Adisak 2026-02-24 14:57:15 +07:00
parent e8890133bb
commit 61c92088b1
2 changed files with 4 additions and 2 deletions

View file

@ -1184,7 +1184,7 @@ export class EmployeePositionController extends Controller {
? _data.child1[0] != null
? `posMaster.orgChild1Id IN (:...child1)`
// : `posMaster.orgChild1Id is ${_data.privilege == "PARENT" ? "not null" : "null"}`
: `posMaster.orgChild1Id is null`
: `posMaster.orgChild1Id is null`
: "1=1",
{
child1: _data.child1,
@ -1373,6 +1373,7 @@ export class EmployeePositionController extends Controller {
return {
id: posMaster.id,
ancestorDNA: posMaster.ancestorDNA,
current_holderId: posMaster.current_holderId,
orgRootId: posMaster.orgRootId,
orgChild1Id: posMaster.orgChild1Id,

View file

@ -902,7 +902,7 @@ export class EmployeeTempPositionController extends Controller {
? _data.child1[0] != null
? `posMaster.orgChild1Id IN (:...child1)`
// : `posMaster.orgChild1Id is ${_data.privilege == "PARENT" ? "not null" : "null"}`
: `posMaster.orgChild1Id is null`
: `posMaster.orgChild1Id is null`
: "1=1",
{
child1: _data.child1,
@ -1091,6 +1091,7 @@ export class EmployeeTempPositionController extends Controller {
return {
id: posMaster.id,
ancestorDNA: posMaster.ancestorDNA,
current_holderId: posMaster.current_holderId,
orgRootId: posMaster.orgRootId,
orgChild1Id: posMaster.orgChild1Id,