รายงานทะเบียนประวัติ
This commit is contained in:
parent
d0732a87e3
commit
13a7ccc997
6 changed files with 698 additions and 192 deletions
|
|
@ -1704,6 +1704,8 @@ export class ProfileEmployeeController extends Controller {
|
|||
@Query() nodeId?: string,
|
||||
@Query() isAll?: boolean,
|
||||
@Query() retireType?: string,
|
||||
@Query() sortBy: string = "posMasterNo",
|
||||
@Query() sort: "ASC"|"DESC" = "ASC",
|
||||
) {
|
||||
let _data = await new permission().PermissionOrgList(request, "SYS_REGISTRY_EMP");
|
||||
let queryLike =
|
||||
|
|
@ -1860,7 +1862,8 @@ export class ProfileEmployeeController extends Controller {
|
|||
// .andWhere(`current_holders.orgRevisionId LIKE :orgRevisionId`, {
|
||||
// orgRevisionId: findRevision.id,
|
||||
// })
|
||||
.orderBy("current_holders.posMasterNo", "ASC")
|
||||
// .orderBy("current_holders.posMasterNo", "ASC")
|
||||
.orderBy(`current_holders.${sortBy}`, sort)
|
||||
.skip((page - 1) * pageSize)
|
||||
.take(pageSize)
|
||||
.getManyAndCount();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue