From 94acbd8f68123b1c17878c39494b1d8db1b7dfea Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 07 八月 2024 15:39:23 +0800
Subject: [PATCH] feat:大屏接口、首页考核预警
---
ycl-server/src/main/resources/mapper/zgyw/ContractScoreMapper.xml | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ycl-server/src/main/resources/mapper/zgyw/ContractScoreMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/ContractScoreMapper.xml
index 92dee79..9446601 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/ContractScoreMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/ContractScoreMapper.xml
@@ -111,4 +111,15 @@
#{id}
</foreach>
</delete>
+
+ <select id="calculate" resultType="java.util.Map">
+ SELECT
+ SUBSTRING_INDEX(rule_name, '/', 1) AS name,
+ COUNT(*) AS num,
+ -SUM(score) AS score
+ FROM t_contract_score
+ WHERE auditing_status = 'PASS' AND deleted = 0
+ GROUP BY SUBSTRING_INDEX(rule_name, '/', 1)
+ </select>
+
</mapper>
--
Gitblit v1.8.0