fix bug
This commit is contained in:
parent
ae0d0388b8
commit
d7fc649854
1 changed files with 6 additions and 1 deletions
|
|
@ -931,9 +931,14 @@ export class ProfileController extends Controller {
|
||||||
.leftJoinAndSelect("current_holder.posType", "posType")
|
.leftJoinAndSelect("current_holder.posType", "posType")
|
||||||
.where({
|
.where({
|
||||||
orgRevisionId: findRevision?.id,
|
orgRevisionId: findRevision?.id,
|
||||||
orgRootId: body.rootId == null ? "1=1" : body.rootId,
|
|
||||||
current_holderId: Not(IsNull()),
|
current_holderId: Not(IsNull()),
|
||||||
})
|
})
|
||||||
|
.orWhere(
|
||||||
|
body.rootId == null ? "1=1" : "posMaster.orgRootId = :rootId",
|
||||||
|
{
|
||||||
|
rootId: body.rootId,
|
||||||
|
},
|
||||||
|
)
|
||||||
.andWhere(
|
.andWhere(
|
||||||
new Brackets((qb) => {
|
new Brackets((qb) => {
|
||||||
qb.where(
|
qb.where(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue