แก้สิทธิ์ list
This commit is contained in:
parent
51eaf6b976
commit
e6c5404b89
3 changed files with 60 additions and 26 deletions
|
|
@ -2637,42 +2637,42 @@ export class ProfileController extends Controller {
|
|||
.leftJoinAndSelect("current_holders.orgChild4", "orgChild4")
|
||||
.andWhere(
|
||||
_data.root != undefined && _data.root != null
|
||||
? `current_holders.orgRootId IN (:...root)`
|
||||
? (_data.root[0] !=null ? `current_holders.orgRootId = :root` : `current_holders.orgRootId is null`)
|
||||
: "1=1",
|
||||
{
|
||||
root: _data.root,
|
||||
root: _data.root[0],
|
||||
},
|
||||
)
|
||||
.andWhere(
|
||||
_data.child1 != undefined && _data.child1 != null
|
||||
? `current_holders.orgChild1Id IN (:...child1)`
|
||||
? (_data.child1[0] !=null ? `current_holders.orgChild1Id = :child1` : `current_holders.orgChild1Id is null`)
|
||||
: "1=1",
|
||||
{
|
||||
child1: _data.child1,
|
||||
child1: _data.child1[0],
|
||||
},
|
||||
)
|
||||
.andWhere(
|
||||
_data.child2 != undefined && _data.child2 != null
|
||||
? `current_holders.orgChild2Id IN (:...child2)`
|
||||
? (_data.child2[0] !=null ? `current_holders.orgChild2Id = :child2` : `current_holders.orgChild2Id is null`)
|
||||
: "1=1",
|
||||
{
|
||||
child2: _data.child2,
|
||||
child2: _data.child2[0],
|
||||
},
|
||||
)
|
||||
.andWhere(
|
||||
_data.child3 != undefined && _data.child3 != null
|
||||
? `current_holders.orgChild3Id IN (:...child3)`
|
||||
? (_data.child3[0] !=null ? `current_holders.orgChild3Id = :child3` : `current_holders.orgChild3Id is null`)
|
||||
: "1=1",
|
||||
{
|
||||
child3: _data.child3,
|
||||
child3: _data.child3[0],
|
||||
},
|
||||
)
|
||||
.andWhere(
|
||||
_data.child4 != undefined && _data.child4 != null
|
||||
? `current_holders.orgChild4Id IN (:...child4)`
|
||||
? (_data.child4[0] !=null ? `current_holders.orgChild4Id = :child4` : `current_holders.orgChild4Id is null`)
|
||||
: "1=1",
|
||||
{
|
||||
child4: _data.child4,
|
||||
child4: _data.child4[0],
|
||||
},
|
||||
)
|
||||
.andWhere(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue