แก้ค้นหาคนครอง
This commit is contained in:
parent
6ba3236994
commit
9c7072c128
3 changed files with 9 additions and 4 deletions
|
|
@ -379,8 +379,10 @@ export class ProfileEmployeeController extends Controller {
|
|||
)
|
||||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.where("next_holders.id IS NULL").orWhere("next_holders.id NOT IN (:...ids)", {
|
||||
ids: orgRevision.posMasters.map((x) => x.next_holderId),
|
||||
qb.where("profile.id NOT IN (:...ids)", {
|
||||
ids: orgRevision.posMasters
|
||||
.filter((x) => x.next_holderId != null)
|
||||
.map((x) => x.next_holderId),
|
||||
});
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue