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