feat: 产品/任务搜索支持业务序列号(external_serial)检索
This commit is contained in:
@ -522,6 +522,7 @@ async def get_all_products(
|
||||
stmt = stmt.outerjoin(ProductionOrder, Product.order_id == ProductionOrder.id).where(
|
||||
or_(
|
||||
Product.serial_number.ilike(kw),
|
||||
Product.external_serial.ilike(kw), # 业务序列号(用户自定义)
|
||||
Product.material_name.ilike(kw),
|
||||
cast(Product.material_id, String).ilike(kw),
|
||||
Product.spec_model.ilike(kw),
|
||||
|
||||
Reference in New Issue
Block a user