|
@@ -22,9 +22,24 @@ public interface LogFileMetaMapper {
|
|
|
@Select("select * from log_file_meta")
|
|
|
public List<LogFileMeta> getLogFileMeta();
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取时间范围内所有(包括无效)的log文件
|
|
|
+ * @param start
|
|
|
+ * @param end
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@Select("select * from log_file_meta where not (min_time > #{arg1} or max_time < #{arg0})")
|
|
|
public List<LogFileMeta> getLogFileMetaBetweenTime(long start, long end);
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取时间范围内有效的log文件
|
|
|
+ * @param start
|
|
|
+ * @param end
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Select("select * from log_file_meta where not (min_time > #{arg1} or max_time < #{arg0}) and valid=1")
|
|
|
+ public List<LogFileMeta> getValidLogFileMetaBetweenTime(long start, long end);
|
|
|
+
|
|
|
@Select("select * from log_file_meta order by id desc limit 1")
|
|
|
public LogFileMeta getLastLogFileMeta();
|
|
|
|