新增清空历史数据
This commit is contained in:
@@ -29,6 +29,10 @@ public interface AuditMapper {
|
||||
* 获取审计日志统计列表
|
||||
*/
|
||||
List<AuditLogCusVO> selectCensusAuditLog(@Param("auditParam") AuditParam auditParam);
|
||||
/**
|
||||
* 根据时间删除日志
|
||||
*/
|
||||
void deleteByTime(@Param("ew") QueryWrapper<UserLog> queryWrapper);
|
||||
/**
|
||||
* 查询所有登录名
|
||||
*/
|
||||
@@ -37,4 +41,5 @@ public interface AuditMapper {
|
||||
* 查询所有操作类型
|
||||
*/
|
||||
List<String> selectOperateType();
|
||||
|
||||
}
|
||||
|
||||
@@ -75,6 +75,11 @@
|
||||
Where ${ew.sqlSegment}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByTime">
|
||||
DELETE FROM sys_user_log
|
||||
WHERE ${ew.sqlSegment}
|
||||
</delete>
|
||||
|
||||
<select id="selectCensusAuditLog" resultType="AuditLogCusVO">
|
||||
SELECT
|
||||
login_name LoginName,
|
||||
|
||||
Reference in New Issue
Block a user