Commit 315f21a5 by zhouhaibao

refactor(data-process): 优化业务SQL查询逻辑并移除未来拓展配置

- 将Flask端口从5001改为5000
- 移除config.py中的future_expansion配置项
- 在report_utils.py中添加多行平均门店收集功能用于调试
- 修改fetch_biz_sql_aggregated方法的SQL逻辑,将order_flag条件从'Y'改为'N'
- 更新SQL注释说明双层查询结构变化
- 简化日志输出信息
- 移除诊断查询相关代码
- 在exporttemplete的SQL模板中添加删除标记过滤条件
- 优化数值计算中的空值处理逻辑
1 parent dec4f00d
...@@ -33,5 +33,5 @@ INIT_NICKNAME=系统管理员 ...@@ -33,5 +33,5 @@ INIT_NICKNAME=系统管理员
# ---------- 服务 ---------- # ---------- 服务 ----------
FLASK_HOST=0.0.0.0 FLASK_HOST=0.0.0.0
FLASK_PORT=5001 FLASK_PORT=5000
FLASK_DEBUG=true FLASK_DEBUG=true
...@@ -168,11 +168,6 @@ class Config: ...@@ -168,11 +168,6 @@ class Config:
'关系表', '关系表',
], ],
}, },
'future_expansion': {
'name': '未来拓展',
'need_period': False,
'forms': [],
},
# 阿维塔专项:当前仅需上传主机厂数据表(表名暂定,后续若改名只改下方 forms)。 # 阿维塔专项:当前仅需上传主机厂数据表(表名暂定,后续若改名只改下方 forms)。
# 注意:此「主机厂数据表」为阿维塔专项独立数据表,格式不保证与现有 # 注意:此「主机厂数据表」为阿维塔专项独立数据表,格式不保证与现有
# 「鸿蒙主机厂数据表」/「广联主机厂数据表」一致,切勿复用 # 「鸿蒙主机厂数据表」/「广联主机厂数据表」一致,切勿复用
......
...@@ -75,7 +75,7 @@ LEFT JOIN dj_smartcarlife.dj_car_life_goods_order t2 ...@@ -75,7 +75,7 @@ LEFT JOIN dj_smartcarlife.dj_car_life_goods_order t2
ON t2.order_code = t1.order_code ON t2.order_code = t1.order_code
AND t2.status IN (4,6,12) AND t2.status IN (4,6,12)
LEFT JOIN `dj_car_life_pay_order` t3 ON t3.order_code=t1.order_code LEFT JOIN `dj_car_life_pay_order` t3 ON t3.order_code=t1.order_code
WHERE t1.status = 1 WHERE t1.status = 1 and t1.del_flag='N'
AND t2.scene_type = 1 AND t2.scene_type = 1
AND t3.success_date BETWEEN '2026-08-01 00:00:00' AND '2026-08-31 23:59:59' AND t3.success_date BETWEEN '2026-08-01 00:00:00' AND '2026-08-31 23:59:59'
and t1.dj_order_type !=6 and t1.dj_order_type !=6
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!