93 lines
2.2 KiB
Plaintext
93 lines
2.2 KiB
Plaintext
package com.securityControl.system.mapper;
|
|
|
|
import com.securityControl.system.api.domain.SysOperLog;
|
|
import com.securityControl.system.api.domain.SysWarningLog;
|
|
import com.securityControl.system.domain.qo.SysLogQo;
|
|
import com.securityControl.system.domain.qo.SysLogStatisticQo;
|
|
import com.securityControl.system.domain.vo.SysLogStatisticVo;
|
|
import com.securityControl.system.domain.vo.SysLogVo;
|
|
import com.securityControl.system.domain.vo.SysRunningLogVo;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* 日志管理
|
|
*/
|
|
@Repository(value = "SysLogsDao")
|
|
public interface SysLogsDao {
|
|
/**
|
|
* 存储日志
|
|
*
|
|
* @param sysLog
|
|
*/
|
|
void saveLogs(SysOperLog sysLog);
|
|
|
|
/**
|
|
* 分页查询
|
|
*
|
|
* @param sysLogQo
|
|
* @return
|
|
*/
|
|
List<SysLogVo> queryByPage(SysLogQo sysLogQo);
|
|
|
|
/**
|
|
* 获取运行日志
|
|
*
|
|
* @return
|
|
*/
|
|
List<SysRunningLogVo> getRunningLog(SysLogQo sysLogQo);
|
|
|
|
/**
|
|
* 更新系统停运时间
|
|
*
|
|
* @param query
|
|
*/
|
|
void updateEndTime(SysOperLog query);
|
|
|
|
SysLogStatisticVo getTotalStatic(SysLogStatisticQo statisticQo);
|
|
|
|
List<Map<String, Object>> statistics(SysLogStatisticQo statisticQo);
|
|
|
|
/**
|
|
* 修改日志容量
|
|
*
|
|
* @param number
|
|
*/
|
|
void updateContent(String number);
|
|
|
|
Map<String, Object> getMaxLogSize();
|
|
|
|
Map<String, Object> getUsedMaxSize();
|
|
|
|
/**
|
|
* 新增告警日志
|
|
*
|
|
* @param warningLog
|
|
*/
|
|
void insertWarningLog(SysWarningLog warningLog);
|
|
|
|
Map<String, Object> getLogContent();
|
|
|
|
Map<String, Object> getLastCopyLogSet(String logType);
|
|
|
|
List<SysOperLog> getCopyData(@Param("logType") String logType, @Param("updateDate") LocalDateTime updateDate);
|
|
|
|
int delRestoreLog(@Param("logType") String logType, @Param("updateDate") LocalDateTime updateDate);
|
|
|
|
List<SysOperLog> restoreLog(@Param("logType") String logType);
|
|
|
|
void updateLastCopyTime(@Param("logType") String logType, @Param("time") String time);
|
|
|
|
void saveCopyLogs(SysOperLog sysLog);
|
|
|
|
void saveRestoreLog(SysOperLog sysLog);
|
|
|
|
Map<String, String> getYueQuan();
|
|
|
|
}
|