fix: update special supplier identification keywords for tobacco and rongcheng
This commit is contained in:
parent
26835e265a
commit
ba8520a351
@ -95,8 +95,8 @@ class OrderService:
|
|||||||
df_str = df_head.astype(str)
|
df_str = df_head.astype(str)
|
||||||
|
|
||||||
# 1. 识别:烟草公司 (Tobacco)
|
# 1. 识别:烟草公司 (Tobacco)
|
||||||
# 特征:通常包含“烟草”、“卷烟”等关键字,且有特定的表头结构
|
# 特征:内容中包含“专卖证号”或特定证号“510109104938”
|
||||||
is_tobacco = df_str.apply(lambda x: x.str.contains('烟草|卷烟|营销中心')).any().any()
|
is_tobacco = df_str.apply(lambda x: x.str.contains('专卖证号|510109104938')).any().any()
|
||||||
if is_tobacco:
|
if is_tobacco:
|
||||||
logger.info("识别到烟草公司订单,执行专用预处理...")
|
logger.info("识别到烟草公司订单,执行专用预处理...")
|
||||||
from .tobacco_service import TobaccoService
|
from .tobacco_service import TobaccoService
|
||||||
@ -104,8 +104,8 @@ class OrderService:
|
|||||||
return tobacco_svc.process_tobacco_order(file_path)
|
return tobacco_svc.process_tobacco_order(file_path)
|
||||||
|
|
||||||
# 2. 识别:蓉城易购 (Rongcheng Yigou)
|
# 2. 识别:蓉城易购 (Rongcheng Yigou)
|
||||||
# 特征:通常文件名包含“订单”或内容包含“订购单位”等
|
# 特征:内容中包含单号标识“RCDH”
|
||||||
is_rongcheng = df_str.apply(lambda x: x.str.contains('蓉城易购|订购单位|出库小计')).any().any()
|
is_rongcheng = df_str.apply(lambda x: x.str.contains('RCDH')).any().any()
|
||||||
if is_rongcheng:
|
if is_rongcheng:
|
||||||
logger.info("识别到蓉城易购订单,执行专用预处理...")
|
logger.info("识别到蓉城易购订单,执行专用预处理...")
|
||||||
from .special_suppliers_service import SpecialSuppliersService
|
from .special_suppliers_service import SpecialSuppliersService
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user