refactor: search case
This commit is contained in:
parent
96c69e2560
commit
75796c36c8
1 changed files with 5 additions and 1 deletions
|
|
@ -87,7 +87,11 @@ export class ProductGroup extends Controller {
|
|||
@Query() pageSize: number = 30,
|
||||
) {
|
||||
const where = {
|
||||
OR: [{ name: { contains: query } }, { detail: { contains: query } }],
|
||||
OR: [
|
||||
{ name: { contains: query } },
|
||||
{ detail: { contains: query } },
|
||||
{ code: { contains: query, mode: "insensitive" } },
|
||||
],
|
||||
AND: [
|
||||
{
|
||||
...filterStatus(status),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue