错误 #21996
+1单项目运行策略记录:手动生成历史单日运行记录客诉数量查询不对
0%
描述
测试项目:广州南岗 4401120003
操作步骤:
1.手动请求历史单日运行记录接口请求/strategy/statistics,
2.返回成功后进入单项目运行策略记录-查看生成日有无客诉数据
预期结果:
有生成日的客诉数据,和数据库中客诉数量一致
实际结果:
无客诉数据
文件
历史记录
由 靖天博 更新于 超过一年 之前
- 文件 1.jpg 1.jpg 已添加
- 文件 2.txt 2.txt 已添加
- 文件 3.jpg 3.jpg 已添加
- 主题 从 单项目运行策略记录:手动生成历史单日运行记录客诉数量查询不对 变更为 +1单项目运行策略记录:手动生成历史单日运行记录客诉数量查询不对
- 状态 从 已解决 变更为 重新打开
11/3验证 问题仍在
SQL条件写错了
详见附件1.2.3
select project_id,time_type,time
,
complaint_type,complaint_two_type,complaint_three_type, effective_complaint_count,
all_complaint_count,successful_return_visit_satisfied_count, successful_return_visit_count,
all_return_visit_count,return_workorder_count
from saas_ems.report_kesucontent_workorder_count_staistics
where time
>= "2022-08-06"
and time
< "2022-08-07"
and project_id = "Pj4401120003"
and time_type = 2
and (complaint_three_type = '空调舒适度' and complaint_type = '顾客投诉' and complaint_two_type = '卫生间及母婴室'
or (complaint_three_type = '空调舒适度' and complaint_type = '在营商户投诉' and complaint_two_type = '公区环境及设施' )
or (complaint_three_type = '空调舒适度' and complaint_type = '顾客投诉' and complaint_two_type = '广场环境' ) )