fix sort registry and add script update retire emp / position select
This commit is contained in:
parent
ba9fea8403
commit
aadcec440e
2 changed files with 179 additions and 13 deletions
|
|
@ -6587,7 +6587,7 @@ export class ProfileController extends Controller {
|
|||
}),
|
||||
)
|
||||
.addSelect("CASE WHEN current_holders.posMasterNo IS NULL THEN 1 ELSE 0 END", "sort_order")
|
||||
.orderBy("sort_order", "ASC")
|
||||
.orderBy(`${sortBy ? sortBy : "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