From 040fe24077c6a57fd0b337fd41cec00d9125eb0e Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 12 十二月 2024 00:58:52 +0800
Subject: [PATCH] 一机一档OSD优化
---
ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
index 45b4d2f..4a0a076 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml
@@ -207,15 +207,25 @@
</select>
<select id="dashboard" resultType="com.ycl.platform.domain.entity.CheckScore">
- select s.*,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}
<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>
- ORDER BY
- s.create_time DESC
- LIMIT 7
+ 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