feat: accept more criteria
This commit is contained in:
parent
68668544c2
commit
0027afae65
1 changed files with 4 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ export class EmployeeController extends Controller {
|
|||
@Query() visa?: boolean,
|
||||
@Query() passport?: boolean,
|
||||
@Query() customerId?: string,
|
||||
@Query() customerBranchId?: string,
|
||||
@Query() query: string = "",
|
||||
@Query() page: number = 1,
|
||||
@Query() pageSize: number = 30,
|
||||
|
|
@ -215,6 +216,7 @@ export class EmployeeController extends Controller {
|
|||
visa,
|
||||
passport,
|
||||
customerId,
|
||||
customerBranchId,
|
||||
query,
|
||||
page,
|
||||
pageSize,
|
||||
|
|
@ -231,6 +233,7 @@ export class EmployeeController extends Controller {
|
|||
@Query() visa?: boolean,
|
||||
@Query() passport?: boolean,
|
||||
@Query() customerId?: string,
|
||||
@Query() customerBranchId?: string,
|
||||
@Query() query: string = "",
|
||||
@Query() page: number = 1,
|
||||
@Query() pageSize: number = 30,
|
||||
|
|
@ -267,6 +270,7 @@ export class EmployeeController extends Controller {
|
|||
AND: {
|
||||
...filterStatus(status),
|
||||
customerBranch: {
|
||||
id: customerBranchId,
|
||||
customerId,
|
||||
customer: isSystem(req.user)
|
||||
? undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue