Commit 08dff880 by 江名洋

fix(harmony):修正兜底类型字段并完善安心包专岗逻辑

1 parent 63e081e5
...@@ -1651,6 +1651,12 @@ class HarmonyAnalysisService: ...@@ -1651,6 +1651,12 @@ class HarmonyAnalysisService:
store_name_str = str(store_name) store_name_str = str(store_name)
perf = db_perf.get(store_name_str, {}) perf = db_perf.get(store_name_str, {})
# 部分门店在DB中以"门店名(鸿蒙)"存储,回退查找
if not perf and "(鸿蒙)" not in store_name_str:
hm_name = store_name_str + "(鸿蒙)"
perf = db_perf.get(hm_name, {})
if perf:
logger.info(f"[名称匹配] 门店={store_name_str}, 以'{hm_name}'匹配到DB数据")
ws.row_dimensions[row_num].height = 18 ws.row_dimensions[row_num].height = 18
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!