From 7a33c5b558e7e4ab5760261accbd32c7f2056c4a Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 23 九月 2024 19:16:13 +0800 Subject: [PATCH] 大屏分离平台在线和考核成绩接口 --- ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml | 12 ++++++++++++ 1 files changed, 12 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 0d89d89..bd47211 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/CheckScoreMapper.xml @@ -206,4 +206,16 @@ ORDER BY score DESC, tcs.dept_id </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 + 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 = 1 + </if> + </where> + GROUP BY s.dept_id + ORDER BY s.create_time DESC + </select> </mapper> -- Gitblit v1.8.0