DVR界面添加条件筛选

This commit is contained in:
xy
2025-01-06 19:18:30 +08:00
parent 1f4e8c7e25
commit 81da6e54ca
3 changed files with 15 additions and 8 deletions

View File

@@ -140,7 +140,6 @@
AND DATE(b.start_time) >= DATE(#{csEventUserQueryPage.startTime})
</if>
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.target != null and csEventUserQueryPage.target.size()>0">
and b.tag in
<foreach collection="csEventUserQueryPage.target" index="index" item="item" open="(" separator="," close=")">
#{item}
@@ -160,7 +159,15 @@
</if>
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.level != null and csEventUserQueryPage.level !=''">
AND b.level =#{ csEventUserQueryPage.level}
AND b.level = #{ csEventUserQueryPage.level}
</if>
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.eventType != null and csEventUserQueryPage.eventType !=''">
AND b.tag = #{csEventUserQueryPage.eventType}
</if>
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.location != null and csEventUserQueryPage.location !=''">
AND b.location = #{csEventUserQueryPage.location}
</if>
order by b.start_time desc
</select>