From 35d325f87d78d942d78a538dd36d5317f0876313 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 15 十月 2024 19:03:55 +0800
Subject: [PATCH] 异常恢复的统计数bug

---
 ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml |   11 +++++++++++
 1 files changed, 11 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 bd47211..59996de 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
@@ -212,10 +212,21 @@
         <where>
             s.create_time between #{startTime} and #{endTime}
             <if test="dataScope == 1">
+                AND s.examine_tag = 0
+            </if>
+            <if test="dataScope == 2">
                 AND s.examine_tag = 1
+            </if>
+            <if test="dataScope == 3">
+                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