From 71e6dc7824780c223e594add97c09773335e8af1 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 31 七月 2024 18:20:27 +0800
Subject: [PATCH] 车辆、人脸 点位在线率、视图库对接稳定性 任务

---
 ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml |   20 ++++++++++++++++++++
 1 files changed, 20 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..0efeca1 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
@@ -114,4 +114,24 @@
         (#{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,
+            ROUND(AVG(score), 2) AS score,
+            #{startDate} AS startDate,
+            #{endDate} AS endDate,
+            ANY_VALUE(tcs.create_time) AS createTime
+        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