feat: product search
This commit is contained in:
@@ -120,7 +120,7 @@ class ProductService(BaseService):
|
|||||||
stmt.where(
|
stmt.where(
|
||||||
or_(
|
or_(
|
||||||
Product.name.ilike(f'%{search_input}%'),
|
Product.name.ilike(f'%{search_input}%'),
|
||||||
Product.barcodes.any(ProductBarcode.barcode == search_input),
|
Product.barcodes.any(ProductBarcode.barcode.ilike(f'%{search_input}%')),
|
||||||
Product.article.ilike(f'%{search_input}%')
|
Product.article.ilike(f'%{search_input}%')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user