fix sort org
This commit is contained in:
parent
decb2433de
commit
3fe1156155
2 changed files with 3 additions and 3 deletions
|
|
@ -2915,7 +2915,7 @@ export class ProfileEmployeeController extends Controller {
|
|||
nodeId: nodeId,
|
||||
})
|
||||
.addSelect("CASE WHEN current_holders.posMasterNo IS NULL THEN 1 ELSE 0 END", "sort_order")
|
||||
.orderBy(`${sortBy ? sortBy : "sort_order"}`, `${sort}`)
|
||||
.orderBy("sort_order", sort)
|
||||
.addOrderBy("orgRoot.orgRootOrder", sort)
|
||||
.addOrderBy("orgChild1.orgChild1Order", sort)
|
||||
.addOrderBy("orgChild2.orgChild2Order", sort)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue