diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BEnterpriseNewMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BEnterpriseNewMapper.xml index fc94725..fef9ecb 100644 --- a/ruoyi-system/src/main/resources/mapper/yingji/BEnterpriseNewMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/yingji/BEnterpriseNewMapper.xml @@ -254,7 +254,7 @@ and s.RISK_LEVEL in - #{riskLevel} + #{item} and s.STAND_LEVEL = #{standLevel} diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml index 533c258..7f4a4dd 100644 --- a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml @@ -274,7 +274,7 @@ MAX(law_sort) AS sort, COUNT(law_areas) AS count, SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) AS completed, - 100 * SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) / COUNT(law_areas) AS completion_rate + ROUND(100 * SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) / COUNT(law_areas)) AS completion_rate FROM b_plan_enterprise @@ -302,7 +302,7 @@ MAX(law_sort) AS sort, COUNT(law_areas) AS count, SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) AS completed, - 100 * SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) / COUNT(law_areas) AS completion_rate + ROUND(100 * SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) / COUNT(law_areas)) AS completion_rate FROM b_plan_enterprise