新增清空历史数据

This commit is contained in:
陈超
2022-07-25 14:53:46 +08:00
parent 072be96034
commit 78ff6471b1
5 changed files with 68 additions and 11 deletions

View File

@@ -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();
}

View File

@@ -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,