From c490640493f04e2ed0fc5c4c8fbc92ebdd4d5380 Mon Sep 17 00:00:00 2001 From: xusd <330628789@qq.com> Date: Tue, 24 Jun 2025 21:06:48 +0800 Subject: [PATCH] Merge branch 'gzdyh_prod' --- dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 42 insertions(+), 1 deletions(-) diff --git a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml index 752227c..69d7b7a 100644 --- a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml +++ b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml @@ -559,7 +559,7 @@ and b.agree_type = #{terms.agreeType} </if> <if test="terms.systemSource != null and terms.systemSource !=''"> - and b.sys_source = #{systemSource} + and b.sys_source = #{terms.systemSource} </if> <if test="terms.visitTimeStart != null and terms.visitTimeStart !='' and terms.visitTimeEnd != null and terms.visitTimeEnd !=''"> and (DATE_FORMAT(a.visit_time,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{terms.visitTimeStart} @@ -1470,4 +1470,45 @@ a.canal_second </select> + <!-- 统计分析(基础) --> + <select id="workStatisticsTime" resultType="cn.huge.module.cases.domain.dto.CaseWorkStatisticsTimeDTO"> + 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 <![CDATA[ < ]]> 3 then 1 else 0 end) as processNum, + sum(case when a.info_process = 3 then 1 else 0 end) as finishNum, + <if test='terms.selectTimeType != null and terms.selectTimeType =="1"'> + DATE_FORMAT(a.create_time, '%Y-%m-%d') AS dayStr, + DATE_FORMAT(a.create_time, '%Y-%m') AS monthStr, + DATE_FORMAT(a.create_time, '%Y') AS year_str, + </if> + <if test='terms.selectTimeType != null and terms.selectTimeType =="2"'> + DATE_FORMAT(b.close_time, '%Y-%m-%d') AS dayStr, + DATE_FORMAT(b.close_time, '%Y-%m') AS monthStr, + DATE_FORMAT(b.close_time, '%Y') AS year_str, + </if> + sum(case when a.info_process = 4 then 1 else 0 end) as rejectNum + + + 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"/> + <if test='terms.timeType != null and terms.timeType =="3"'> + GROUP BY year_str + </if> + <if test='terms.timeType != null and terms.timeType =="2"'> + GROUP BY monthStr + </if> + <if test='terms.timeType != null and terms.timeType =="1"'> + GROUP BY dayStr + </if> + </select> + </mapper> \ No newline at end of file -- Gitblit v1.8.0