feat: 产品/任务搜索支持业务序列号(external_serial)检索

This commit is contained in:
2026-09-07 11:08:49 +08:00
parent b4795181ee
commit 109f45f22a
3 changed files with 3 additions and 2 deletions

View File

@ -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),