From ac9efc618210e1df40dfba9f779ca27739d2b343 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 08 五月 2024 17:29:00 +0800
Subject: [PATCH] 考核模板关联定时任务

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

diff --git a/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml
index 9279f6a..a1c6e1e 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml
@@ -39,9 +39,11 @@
         select tciv.*,sd.dept_name
         from t_check_index_video tciv left join sys_dept sd on tciv.dept_id = sd.dept_id
         <where>  
-            <if test="deptId != null "> and dept_id = #{deptId}</if>
+            <if test="deptId != null "> and tciv.dept_id = #{deptId}</if>
             <if test="examineTag != null "> and examine_tag = #{examineTag}</if>
             <if test="date != null "> and  date_format(tciv.create_time,'%Y-%m') = #{date}</if>
+            <if test="day != null "> and  date(tciv.create_time) = #{day}</if>
+            <if test="createTime != null "> and  date(tciv.create_time) = #{createTime}</if>
             <if test="platformOnline != null "> and platform_online = #{platformOnline}</if>
             <if test="monitorQualification != null "> and monitor_qualification = #{monitorQualification}</if>
             <if test="monitorRegistration != null "> and monitor_registration = #{monitorRegistration}</if>
@@ -62,6 +64,11 @@
             <if test="videoTransmissionDangerousAssetsScore != null "> and video_transmission_dangerous_assets_score = #{videoTransmissionDangerousAssetsScore}</if>
             <if test="videoTransmissionBoundaryIntegrityDetection != null "> and video_transmission_boundary_integrity_detection = #{videoTransmissionBoundaryIntegrityDetection}</if>
             <if test="operatingRate != null "> and operating_rate = #{operatingRate}</if>
+            <if test="deptIds != null ">and tciv.dept_id in
+            <foreach collection="deptIds" separator="," open="(" close=")" item="deptId">
+                #{deptId}
+            </foreach>
+            </if>
         </where>
     </select>
     

--
Gitblit v1.8.0