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() visa?: boolean,
|
||||||
@Query() passport?: boolean,
|
@Query() passport?: boolean,
|
||||||
@Query() customerId?: string,
|
@Query() customerId?: string,
|
||||||
|
@Query() customerBranchId?: string,
|
||||||
@Query() query: string = "",
|
@Query() query: string = "",
|
||||||
@Query() page: number = 1,
|
@Query() page: number = 1,
|
||||||
@Query() pageSize: number = 30,
|
@Query() pageSize: number = 30,
|
||||||
|
|
@ -215,6 +216,7 @@ export class EmployeeController extends Controller {
|
||||||
visa,
|
visa,
|
||||||
passport,
|
passport,
|
||||||
customerId,
|
customerId,
|
||||||
|
customerBranchId,
|
||||||
query,
|
query,
|
||||||
page,
|
page,
|
||||||
pageSize,
|
pageSize,
|
||||||
|
|
@ -231,6 +233,7 @@ export class EmployeeController extends Controller {
|
||||||
@Query() visa?: boolean,
|
@Query() visa?: boolean,
|
||||||
@Query() passport?: boolean,
|
@Query() passport?: boolean,
|
||||||
@Query() customerId?: string,
|
@Query() customerId?: string,
|
||||||
|
@Query() customerBranchId?: string,
|
||||||
@Query() query: string = "",
|
@Query() query: string = "",
|
||||||
@Query() page: number = 1,
|
@Query() page: number = 1,
|
||||||
@Query() pageSize: number = 30,
|
@Query() pageSize: number = 30,
|
||||||
|
|
@ -267,6 +270,7 @@ export class EmployeeController extends Controller {
|
||||||
AND: {
|
AND: {
|
||||||
...filterStatus(status),
|
...filterStatus(status),
|
||||||
customerBranch: {
|
customerBranch: {
|
||||||
|
id: customerBranchId,
|
||||||
customerId,
|
customerId,
|
||||||
customer: isSystem(req.user)
|
customer: isSystem(req.user)
|
||||||
? undefined
|
? undefined
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue