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