Bladeren bron

解决统计报表缺陷

zhulu 1 jaar geleden
bovenliggende
commit
c12a42402b

+ 3 - 3
soc-modules/soc-modules-core/src/main/resources/mapper/reportForms/ResumptionReportMapper.xml

@@ -182,13 +182,13 @@
         ),
         '%'
         )) AS realityRate,
-        IFNULL(SUM( c.exception_reform_count ),0) AS realityRectificationNumber,
+        IFNULL(SUM( a.exception_reform_count ),0) AS realityRectificationNumber,
         IF
         (
-        COUNT( c.exception_reform_count )= 0
+        COUNT( a.exception_reform_count )= 0
         OR IFNULL( a.exception_count, 0 )= 0,
         '0%',
-        CONCAT(ROUND(COUNT( c.exception_reform_count )/ IFNULL( a.exception_count, 0 )* 100,2) , '%' )) AS realityRectificationRate
+        CONCAT(ROUND(COUNT( a.exception_reform_count )/ IFNULL( a.exception_count, 0 )* 100,2) , '%' )) AS realityRectificationRate
         FROM
         (
             SELECT