feat: search now cover workName
This commit is contained in:
parent
a0f1765309
commit
e2bdcb4bd8
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ export class QuotationController extends Controller {
|
||||||
@Query() query = "",
|
@Query() query = "",
|
||||||
) {
|
) {
|
||||||
const where = {
|
const where = {
|
||||||
OR: [{ code: { contains: query, mode: "insensitive" } }],
|
OR: [{ code: { contains: query, mode: "insensitive" } }, { workName: { contains: query } }],
|
||||||
payCondition,
|
payCondition,
|
||||||
registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) },
|
registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) },
|
||||||
} satisfies Prisma.QuotationWhereInput;
|
} satisfies Prisma.QuotationWhereInput;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue