Commit 52c3ee3a by zhouhaibao

refactor(data-process): 优化预算达成数据处理逻辑

- 修改 strip_if_dplus 函数保留 D+ 前缀
- 更新 _fetch_gmv_from_db 方法返回 settlement_map 和 park_ratio_map
- 添加园区店比例数据查询和处理功能
- 修改任务状态筛选条件从 PROCESSING 到 AA
- 调整外包施工费、人力成本、房租水电费用解析方法增加比例分摊逻辑
- 重构人力成本解析逻辑实现园区店回退匹配和精确分摊
- 优化成本汇总表构建过程添加数据聚合和比例分摊功能
- 增强日志输出和数据验证机制确保金额守恒
1 parent ae6a13ea
......@@ -466,9 +466,7 @@ def compute_renovation_amounts(detail_rows, biz_rows, stat_month, n_months=RENOV
def strip_if_dplus(name):
"""去 'D+' 前缀的归一化(避免重复 import)。"""
if name and name.startswith('D+'):
return name[2:]
"""返回字符串(保留 D+ 前缀)。"""
return name or ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!