From eb3f32e8a7ee0f736a2808432724cdfc0144d64b Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 31 七月 2024 11:26:23 +0800
Subject: [PATCH] feat:考核结果月度季度

---
 ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
index 45fc2ec..12fb02b 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
@@ -114,4 +114,23 @@
         (#{score.score},#{score.deptId},#{score.templateId},#{score.examineTag},#{score.examineCategory},#{score.createTime})
     </foreach>
     </insert>
+
+    <select id="selectCheckScoreMap" resultType="com.ycl.platform.domain.entity.CheckScore">
+        SELECT
+            tcs.dept_id,
+            examine_category,
+            AVG(score) AS score,
+            #{startDate} AS startDate,
+            #{endDate} AS endDate
+        FROM
+            t_check_score tcs
+                LEFT JOIN sys_dept d ON tcs.dept_id = d.dept_id
+        WHERE
+            examine_tag = #{examineTag}
+          AND tcs.create_time BETWEEN #{startDate} AND #{endDate}
+        GROUP BY
+            tcs.dept_id,
+            examine_category
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0