From dbebd42e3dbfe6ae17fcc26e0ad555f00ced746e Mon Sep 17 00:00:00 2001
From: dongdingding <207595406@qq.com>
Date: Sat, 23 Dec 2023 17:40:35 +0800
Subject: [PATCH] BUG FIX
---
.../src/main/resources/mapper/yingji/BEnterpriseNewMapper.xml | 2 +-
.../main/resources/mapper/yingji/BPlanEnterpriseMapper.xml | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
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