| | |
| | | LEFT JOIN dyh_ct_unit c ON b.belong_unit_id = c.id |
| | | <include refid="where-part-all"/> |
| | | </select> |
| | | |
| | | <!-- 统计分析(基础)-统计调解过程 --> |
| | | <select id="statisticsBaseProcess" resultType="cn.huge.module.cases.domain.dto.CaseStatisticsBaseDTO"> |
| | | SELECT |
| | | count(1) as totalNum, |
| | | sum(case when b.medi_result = '22_00025-1' and a.info_process = 3 then 1 else 0 end) as resolveNum, |
| | | sum(case when a.info_process <![CDATA[ < ]]> 3 then 1 else 0 end) as resolveingNum, |
| | | sum(case when b.medi_result = '22_00025-2' and a.info_process = 3 then 1 else 0 end) as unResolveNum, |
| | | sum(case when a.case_level = 1 then 1 else 0 end) as oneLevelNum, |
| | | sum(case when a.case_level = 2 then 1 else 0 end) as twoLevelNum, |
| | | sum(case when a.case_level = 3 then 1 else 0 end) as threeLevelNum, |
| | | sum(case when a.info_process = 2 then 1 |
| | | when a.info_process = 1 then 1 else 0 end) as processNum, |
| | | sum(case when a.info_process = 3 and b.medi_result = '22_00025-1' then 1 else 0 end) as finishNum, |
| | | sum(case when a.info_process = 4 then 1 else 0 end) as rejectNum, |
| | | sum(case when a.info_process = 3 and b.medi_result = '22_00025-2' then 1 else 0 end) as failNum |
| | | FROM |
| | | dyh_case_info a |
| | | inner JOIN dyh_case_info_unfold b on a.id = b.id |
| | | LEFT JOIN dyh_ct_unit c ON b.belong_unit_id = c.id |
| | | <include refid="where-part-all"/> |
| | | </select> |
| | | |
| | | <!-- 统计分析(类型) --> |
| | | <select id="statisticsTypeFirst" resultType="cn.huge.module.cases.domain.dto.CaseStatisticsTypeDTO"> |
| | | SELECT |