wangliang 8 mesi fa
parent
commit
f7488cb189

+ 4 - 4
sop-business/src/main/resources/mapper/QualityAnalyseReportMapper.xml

@@ -10,10 +10,10 @@
         ROUND(t.influenceDegreeD / sum,2) * 100 as influenceDegreeDRate
         from(select distinct su.real_name as name,tbc.lead_id as areaManagerId,
         count(distinct tbqpa.id) as sum,
-        SUM(distinct CASE WHEN tbqpa.Influence_degree = 'A' THEN 1 ELSE 0 END) as influenceDegreeA,
-        SUM(distinct CASE WHEN tbqpa.Influence_degree = 'B' THEN 1 ELSE 0 END) as influenceDegreeB,
-        SUM(distinct CASE WHEN tbqpa.Influence_degree = 'C' THEN 1 ELSE 0 END) as influenceDegreeC,
-        SUM(distinct CASE WHEN tbqpa.Influence_degree = 'D' THEN 1 ELSE 0 END) as influenceDegreeD
+        SUM(CASE WHEN tbqpa.Influence_degree = 'A' THEN 1 ELSE 0 END) as influenceDegreeA,
+        SUM(CASE WHEN tbqpa.Influence_degree = 'B' THEN 1 ELSE 0 END) as influenceDegreeB,
+        SUM(CASE WHEN tbqpa.Influence_degree = 'C' THEN 1 ELSE 0 END) as influenceDegreeC,
+        SUM(CASE WHEN tbqpa.Influence_degree = 'D' THEN 1 ELSE 0 END) as influenceDegreeD
         from
         t_b_quality_problem_apply tbqpa
         join t_b_service tbs on tbs.id = tbqpa.service_id