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 = "",
|
||||
) {
|
||||
const where = {
|
||||
OR: [{ code: { contains: query, mode: "insensitive" } }],
|
||||
OR: [{ code: { contains: query, mode: "insensitive" } }, { workName: { contains: query } }],
|
||||
payCondition,
|
||||
registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) },
|
||||
} satisfies Prisma.QuotationWhereInput;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue