From c98ef23b98573d622f6637bb181bfebc8172b118 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期二, 21 十一月 2023 14:30:33 +0800 Subject: [PATCH] 修复定时删除过期录像文件时,收藏文件被删除的问题 --- src/main/java/com/genersoft/iot/vmp/storager/dao/LogMapper.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/LogMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/LogMapper.java index ae8471b..f1c4585 100755 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/LogMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/LogMapper.java @@ -4,6 +4,7 @@ import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; @@ -29,7 +30,7 @@ " <if test=\"endTime != null\" > AND create_time <= #{endTime} </if>" + " ORDER BY create_time DESC " + " </script>"}) - List<LogDto> query(String query, String type, String startTime, String endTime); + List<LogDto> query(@Param("query") String query, @Param("type") String type, @Param("startTime") String startTime, @Param("endTime") String endTime); @Delete("DELETE FROM wvp_log") int clear(); -- Gitblit v1.8.0