From 87db70e35f8e562a17c02ef20fa16512871b0e63 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期六, 03 八月 2024 14:17:21 +0800
Subject: [PATCH] 优云录像可用
---
ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 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..35bd244 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CheckIndexVideoMapper.xml
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ycl.platform.mapper.CheckIndexVideoMapper">
-
+
<resultMap type="com.ycl.platform.domain.entity.CheckIndexVideo" id="CheckIndexVideoResult">
<result property="id" column="id" />
<result property="deptId" column="dept_id" />
@@ -38,10 +38,12 @@
<select id="selectCheckIndexVideoList" parameterType="CheckIndexVideo" resultMap="CheckIndexVideoResult">
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>
+ <where>
+ <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,14 +64,19 @@
<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>
-
+
<select id="selectCheckIndexVideoById" resultMap="CheckIndexVideoResult">
<include refid="selectCheckIndexVideoVo"/>
where id = #{id}
</select>
-
+
<insert id="insertCheckIndexVideo" useGeneratedKeys="true" keyProperty="id">
insert into t_check_index_video
<trim prefix="(" suffix=")" suffixOverrides=",">
@@ -159,9 +166,13 @@
</delete>
<delete id="deleteCheckIndexVideoByIds" >
- delete from t_check_index_video where id in
+ delete from t_check_index_video where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
-</mapper>
\ No newline at end of file
+
+ <select id="selectToday">
+ select * from t_check_index_video where DATE(create_time) = #{today}
+ </select>
+</mapper>
--
Gitblit v1.8.0