From e32c502ce9ecd3d93cde809adc6cfd77d8c62f79 Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Fri, 25 Oct 2024 11:01:24 +0800
Subject: [PATCH] feat:创建效能分析模块

---
 dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseInfoMapper.xml |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 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 342161f..97be16f 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
@@ -367,7 +367,7 @@
                     or (b.mediate_unit_id is null and a.que_area = #{terms.queArea}))
                 </if>
                 <if test="terms.queRoad != null and terms.queRoad !='' and terms.statistics != null">
-                    and ((b.mediate_unit_id is not null and c.road in = #{terms.queRoad})
+                    and ((b.mediate_unit_id is not null and c.road = #{terms.queRoad})
                     or (b.mediate_unit_id is null and a.que_road = #{terms.queRoad}))
                 </if>
                 <if test="terms.isArea != null and terms.isArea !=''">
@@ -861,9 +861,9 @@
         </if>
         c.unit_grade as unitGrade,
         count(1) as caseNum,
-        sum(case when b.medi_result = '22_00025-1' then 1 else 0 end) as resolveNum,
-        sum(case when b.medi_result is null and a.info_process <![CDATA[ < ]]> 4 then 1 else 0 end) as resolveingNum,
-        sum(case when b.medi_result = '22_00025-2' then 1 else 0 end) as unResolveNum,
+        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.info_process = 4 then 1 else 0 end) as rejectNum
         FROM
         dyh_case_info a
@@ -877,9 +877,9 @@
     <select id="statisticsBase" resultType="cn.huge.module.cases.domain.dto.CaseStatisticsBaseDTO">
         SELECT
         count(1) as totalNum,
-        sum(case when b.medi_result = '22_00025-1' then 1 else 0 end) as resolveNum,
-        sum(case when b.medi_result is null and a.info_process <![CDATA[ < ]]> 4 then 1 else 0 end) as resolveingNum,
-        sum(case when b.medi_result = '22_00025-2' then 1 else 0 end) as unResolveNum,
+        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,
@@ -920,9 +920,9 @@
     <select id="statisticsSource" resultType="cn.huge.module.cases.domain.dto.CaseStatisticsSourceDTO">
         SELECT
         a.canal,a.canal_name as canalName,count(1) as caseNum,
-        sum(case when b.medi_result = '22_00025-1' then 1 else 0 end) as resolveNum,
-        sum(case when b.medi_result is null and a.info_process <![CDATA[ < ]]> 4 then 1 else 0 end) as resolveingNum,
-        sum(case when b.medi_result = '22_00025-2' then 1 else 0 end) as unResolveNum,
+        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.info_process = 4 then 1 else 0 end) as rejectNum
         FROM
         dyh_case_info a

--
Gitblit v1.8.0