日志备份功能
This commit is contained in:
parent
50eb6fc523
commit
954452de23
|
|
@ -71,7 +71,7 @@ public class SysLogController extends BaseController {
|
|||
|
||||
@ApiOperation(value = "查询系统日志")
|
||||
@GetMapping("getSystemLogs")
|
||||
@SysLog(title = "审计日志", module = "审计日志->系统日志", grade = OperaType.QUERY, details = "查询系统日志列表", type = "系统日志")
|
||||
@SysLog(title = "审计日志", module = "审计日志->系统日志", businessType = OperaType.QUERY, details = "查询系统日志列表", type = "系统日志")
|
||||
public TableDataInfo getSystemLogs(SysLogsVo dto) {
|
||||
try{
|
||||
dto.setLogType(0);
|
||||
|
|
@ -86,7 +86,7 @@ public class SysLogController extends BaseController {
|
|||
|
||||
@ApiOperation(value = "查询业务日志")
|
||||
@GetMapping("getYwLogs")
|
||||
@SysLog(title = "审计日志", module = "审计日志->业务日志", grade = OperaType.QUERY, details = "查询业务日志列表", type = "系统日志")
|
||||
@SysLog(title = "审计日志", module = "审计日志->业务日志", businessType = OperaType.QUERY, details = "查询业务日志列表", type = "系统日志")
|
||||
public TableDataInfo getYwLogs(SysLogsVo dto) {
|
||||
try{
|
||||
dto.setLogType(1);
|
||||
|
|
@ -101,7 +101,7 @@ public class SysLogController extends BaseController {
|
|||
|
||||
@ApiOperation(value = "查询异常日志")
|
||||
@GetMapping("getErrLogs")
|
||||
@SysLog(title = "审计日志", module = "审计日志->异常日志", grade = OperaType.QUERY, details = "查询系统异常日志", type = "系统日志")
|
||||
@SysLog(title = "审计日志", module = "审计日志->异常日志", businessType = OperaType.QUERY, details = "查询系统异常日志", type = "系统日志")
|
||||
public TableDataInfo getErrLogs(SysLogsVo dto) {
|
||||
try{
|
||||
dto.setLogType(2);
|
||||
|
|
@ -115,7 +115,7 @@ public class SysLogController extends BaseController {
|
|||
}
|
||||
@ApiOperation(value = "日志备份")
|
||||
@GetMapping("downloadErrLogs")
|
||||
@SysLog(title = "审计日志", module = "审计日志->异常日志", grade = OperaType.COPY_LOG, details = "异常日志备份", type = "系统日志")
|
||||
@SysLog(title = "审计日志", module = "审计日志->异常日志", businessType = OperaType.COPY_LOG, details = "异常日志备份", type = "系统日志")
|
||||
public void downloadErrLogs(HttpServletRequest request, HttpServletResponse response) {
|
||||
// try {
|
||||
// String dateTimeNow=exportSqlService.export("2");
|
||||
|
|
@ -128,7 +128,7 @@ public class SysLogController extends BaseController {
|
|||
|
||||
@ApiOperation(value = "日志备份")
|
||||
@GetMapping("downloadYwLogs")
|
||||
@SysLog(title = "审计日志", module = "审计日志-->业务日志", grade = OperaType.COPY_LOG, details = "业务日志备份", type = "系统日志")
|
||||
@SysLog(title = "审计日志", module = "审计日志-->业务日志", businessType = OperaType.COPY_LOG, details = "业务日志备份", type = "系统日志")
|
||||
public void downloadYwLogs(HttpServletRequest request, HttpServletResponse response) {
|
||||
// try {
|
||||
// String dateTimeNow=exportSqlService.export("1");
|
||||
|
|
@ -141,7 +141,7 @@ public class SysLogController extends BaseController {
|
|||
|
||||
@ApiOperation(value = "日志备份")
|
||||
@GetMapping("downloadSysLogs")
|
||||
@SysLog(title = "审计日志", module = "审计日志->系统日志", grade = OperaType.COPY_LOG, details = "系统日志备份", type = "系统日志")
|
||||
@SysLog(title = "审计日志", module = "审计日志->系统日志", businessType = OperaType.COPY_LOG, details = "系统日志备份", type = "系统日志")
|
||||
public void downloadSysLogs(HttpServletRequest request, HttpServletResponse response) {
|
||||
try {
|
||||
String dateTimeNow=exportSqlService.export("0");
|
||||
|
|
|
|||
Loading…
Reference in New Issue