feat: accept more criteria

This commit is contained in:
Methapon Metanipat 2024-11-13 11:48:48 +07:00
parent 68668544c2
commit 0027afae65

View file

@ -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