From fea89b769738f7db06281f244bc81135fc34ce76 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 27 八月 2024 11:33:10 +0800 Subject: [PATCH] feat:图像资源计算定时任务完善 --- ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml index ce044f0..1c42656 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml @@ -181,4 +181,28 @@ LIMIT 1 </if> </select> + + <select id="selectAndDeptName" resultType="com.ycl.platform.domain.entity.CheckIndexVideo"> + WITH temp AS ( + SELECT + r.dept_id, + r.platform_online, + r.monitor_qualification, + d.area, + ROW_NUMBER() OVER(PARTITION BY r.dept_id ORDER BY r.create_time DESC) AS rn + FROM + t_check_index_video r + JOIN + sys_dept d ON r.dept_id = d.dept_id + ) + SELECT + dept_id, + area as deptName, + platform_online, + monitor_qualification + FROM + temp + WHERE + rn = 1; + </select> </mapper> -- Gitblit v1.8.0