feat: add list request data by status
This commit is contained in:
parent
026bf44bc7
commit
0d6fa7f7ba
1 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ export class RequestDataController extends Controller {
|
||||||
@Query() page: number = 1,
|
@Query() page: number = 1,
|
||||||
@Query() pageSize: number = 30,
|
@Query() pageSize: number = 30,
|
||||||
@Query() query: string = "",
|
@Query() query: string = "",
|
||||||
|
@Query() requestDataStatus?: RequestDataStatus,
|
||||||
) {
|
) {
|
||||||
const where = {
|
const where = {
|
||||||
OR: queryOrNot<Prisma.RequestDataWhereInput[]>(query, [
|
OR: queryOrNot<Prisma.RequestDataWhereInput[]>(query, [
|
||||||
|
|
@ -68,6 +69,7 @@ export class RequestDataController extends Controller {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
|
requestDataStatus,
|
||||||
quotation: {
|
quotation: {
|
||||||
customerBranch: {
|
customerBranch: {
|
||||||
customer: {
|
customer: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue