ปรับ posNo
This commit is contained in:
parent
eef0f87b5c
commit
2b5a236e90
3 changed files with 20 additions and 12 deletions
|
|
@ -330,11 +330,13 @@ export class PermissionOrgController extends Controller {
|
|||
.leftJoinAndSelect("profileTree.posType", "posType")
|
||||
.leftJoinAndSelect("profileTree.current_holders", "current_holders")
|
||||
.leftJoinAndSelect("current_holders.positions", "positions")
|
||||
.leftJoinAndSelect("current_holders.orgRevision", "orgRevision")
|
||||
.leftJoinAndSelect("current_holders.orgRoot", "orgRoot")
|
||||
.leftJoinAndSelect("current_holders.orgChild1", "orgChild1")
|
||||
.leftJoinAndSelect("current_holders.orgChild2", "orgChild2")
|
||||
.leftJoinAndSelect("current_holders.orgChild3", "orgChild3")
|
||||
.leftJoinAndSelect("current_holders.orgChild4", "orgChild4")
|
||||
.where("current_holders.orgRevisionId = :orgRevisionId", {orgRevisionId: findRevision.id})
|
||||
.andWhere(requestBody.id == null ? "1=1" : `permissionOrg.orgRootId LIKE :rootId`, {
|
||||
rootId: requestBody.id,
|
||||
})
|
||||
|
|
@ -348,9 +350,9 @@ export class PermissionOrgController extends Controller {
|
|||
keyword: `%${requestBody.searchKeyword}%`,
|
||||
},
|
||||
)
|
||||
.andWhere(`current_holders.orgRevisionId LIKE :orgRevisionId`, {
|
||||
orgRevisionId: findRevision.id,
|
||||
})
|
||||
// .andWhere(`current_holders.orgRevisionId LIKE :orgRevisionId`, {
|
||||
// orgRevisionId: findRevision.id,
|
||||
// })
|
||||
.orderBy("current_holders.posMasterNo", "ASC")
|
||||
.skip((requestBody.page - 1) * requestBody.pageSize)
|
||||
.take(requestBody.pageSize)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue