日志备份功能
This commit is contained in:
parent
998a4a0ee8
commit
27960bf472
|
|
@ -74,6 +74,7 @@ public class SysLogController extends BaseController {
|
|||
@SysLog(title = "审计日志", module = "审计日志->系统日志", grade = OperaType.QUERY, details = "查询系统日志列表", type = "系统日志")
|
||||
public TableDataInfo getSystemLogs(SysLogsVo dto) {
|
||||
try{
|
||||
dto.setOperType("查询");
|
||||
dto.setLogType(0);
|
||||
startPage();
|
||||
List<SysLogsVo> list = service.getSystemLogs(dto);
|
||||
|
|
@ -90,6 +91,7 @@ public class SysLogController extends BaseController {
|
|||
public TableDataInfo getYwLogs(SysLogsVo dto) {
|
||||
try{
|
||||
dto.setLogType(1);
|
||||
dto.setOperType("查询");
|
||||
startPage();
|
||||
List<SysLogsVo> list = service.getSystemLogs(dto);
|
||||
return getDataTable(list);
|
||||
|
|
@ -105,6 +107,7 @@ public class SysLogController extends BaseController {
|
|||
public TableDataInfo getErrLogs(SysLogsVo dto) {
|
||||
try{
|
||||
dto.setLogType(2);
|
||||
dto.setOperType("查询");
|
||||
startPage();
|
||||
List<SysLogsVo> list = service.getSystemLogs(dto);
|
||||
return getDataTable(list);
|
||||
|
|
|
|||
|
|
@ -95,10 +95,10 @@
|
|||
<if test="model!=null and model!=''">
|
||||
and model LIKE concat('%',#{model},'%')
|
||||
</if>
|
||||
<if test="operType!=null and operType!=''">
|
||||
<if test="operType!=null and operType !=''">
|
||||
and oper_type LIKE concat('%',#{operType},'%')
|
||||
</if>
|
||||
<if test="params!=null and params!=''">
|
||||
<if test="params!=null and params !=''">
|
||||
and params LIKE concat('%',#{params},'%')
|
||||
</if>
|
||||
|
||||
|
|
@ -111,8 +111,11 @@
|
|||
<if test="endTime!=null and endTime!=''">
|
||||
and oper_time BETWEEN concat(#{startTime}, ' 00:00:00') AND concat(#{endTime},' 23:59:59')
|
||||
</if>
|
||||
<if test="ip!=null and ip!=''">
|
||||
and ip=#{ip}
|
||||
<if test="ip !=null and ip!=''">
|
||||
and ip LIKE concat('%',#{ip},'%')
|
||||
</if>
|
||||
<if test="result !=null and result !=''">
|
||||
and result LIKE concat('%',#{result},'%')
|
||||
</if>
|
||||
<if test="logSort!=null and logDesc !=null and logSort!='' and logDesc!='' ">
|
||||
order by
|
||||
|
|
|
|||
Loading…
Reference in New Issue