diff --git a/app/services/order_service.py b/app/services/order_service.py index 7d21e1a..ecae5a7 100644 --- a/app/services/order_service.py +++ b/app/services/order_service.py @@ -95,8 +95,8 @@ class OrderService: df_str = df_head.astype(str) # 1. 识别:烟草公司 (Tobacco) - # 特征:通常包含“烟草”、“卷烟”等关键字,且有特定的表头结构 - is_tobacco = df_str.apply(lambda x: x.str.contains('烟草|卷烟|营销中心')).any().any() + # 特征:内容中包含“专卖证号”或特定证号“510109104938” + is_tobacco = df_str.apply(lambda x: x.str.contains('专卖证号|510109104938')).any().any() if is_tobacco: logger.info("识别到烟草公司订单,执行专用预处理...") from .tobacco_service import TobaccoService @@ -104,8 +104,8 @@ class OrderService: return tobacco_svc.process_tobacco_order(file_path) # 2. 识别:蓉城易购 (Rongcheng Yigou) - # 特征:通常文件名包含“订单”或内容包含“订购单位”等 - is_rongcheng = df_str.apply(lambda x: x.str.contains('蓉城易购|订购单位|出库小计')).any().any() + # 特征:内容中包含单号标识“RCDH” + is_rongcheng = df_str.apply(lambda x: x.str.contains('RCDH')).any().any() if is_rongcheng: logger.info("识别到蓉城易购订单,执行专用预处理...") from .special_suppliers_service import SpecialSuppliersService