fix order
This commit is contained in:
parent
7908473d1f
commit
fbdce54a12
2 changed files with 4 additions and 4 deletions
|
|
@ -1704,7 +1704,7 @@ export class ProfileEmployeeController extends Controller {
|
|||
@Query() nodeId?: string,
|
||||
@Query() isAll?: boolean,
|
||||
@Query() retireType?: string,
|
||||
@Query() sortBy: string = "posMasterNo",
|
||||
@Query() sortBy: string = "current_holders.posMasterNo",
|
||||
@Query() sort: "ASC"|"DESC" = "ASC",
|
||||
) {
|
||||
let _data = await new permission().PermissionOrgList(request, "SYS_REGISTRY_EMP");
|
||||
|
|
@ -1863,7 +1863,7 @@ export class ProfileEmployeeController extends Controller {
|
|||
// orgRevisionId: findRevision.id,
|
||||
// })
|
||||
// .orderBy("current_holders.posMasterNo", "ASC")
|
||||
.orderBy(`current_holders.${sortBy}`, sort)
|
||||
.orderBy(`${sortBy}`, sort)
|
||||
.skip((page - 1) * pageSize)
|
||||
.take(pageSize)
|
||||
.getManyAndCount();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue