From fefb9084284c7d14ed1d3290ba43cb144981e1be Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 04 十二月 2024 21:31:50 +0800
Subject: [PATCH] 空指针校验

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

diff --git a/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
index 15812fe..4a0a076 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
@@ -207,7 +207,7 @@
     </select>
 
     <select id="dashboard" resultType="com.ycl.platform.domain.entity.CheckScore">
-        select avg(s.score) as score,d.area as deptName from t_check_score s
+        select score,d.area as deptName,s.examine_category from t_check_score s
         left join sys_dept d on s.dept_id = d.dept_id
         <where>
             s.create_time between #{startTime} and #{endTime}
@@ -221,7 +221,11 @@
                 AND s.examine_tag = 2
             </if>
         </where>
-        GROUP BY s.dept_id
         ORDER BY s.create_time DESC
     </select>
+
+    <select id="selectToday" resultType="com.ycl.platform.domain.entity.CheckScore">
+        select * from t_check_score
+        where date(create_time) = #{day}
+    </select>
 </mapper>

--
Gitblit v1.8.0