Commit ac7bb8be by zhouhaibao

fix(data-report): 修正订单标志位筛选条件

- 将订单标志位从 'N' 修改为 'Y'
- 添加粒度类型为 1 的筛选条件
- 确保数据查询符合业务逻辑要求
1 parent 91b3d594
...@@ -2276,7 +2276,7 @@ def fetch_light_reform_finance_stats(start_date, end_date, scene_type=1): ...@@ -2276,7 +2276,7 @@ def fetch_light_reform_finance_stats(start_date, end_date, scene_type=1):
GROUP BY ecc.order_code GROUP BY ecc.order_code
) fee ON fee.order_code = gopa.order_code ) fee ON fee.order_code = gopa.order_code
WHERE gopa.deleted_flag = 'N' WHERE gopa.deleted_flag = 'N'
AND gopa.order_flag = 'N' AND gopa.order_flag = 'Y' and gopa.grain_size_type = 1
AND go.scene_type = {scene_type} AND go.scene_type = {scene_type}
AND po.success_date >= '{start_str}' AND po.success_date >= '{start_str}'
AND po.success_date <= '{end_str}' AND po.success_date <= '{end_str}'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!