This commit is contained in:
caixiang 2023-03-24 11:54:31 +08:00
parent 4e02f7e03a
commit 9bce971af0
3 changed files with 4 additions and 5 deletions

View File

@ -61,7 +61,7 @@ public class SysLogLoginController {
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<SysLogLoginDTO> list = sysLogLoginService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, SysLogLoginExcel.class);
ExcelUtils.exportExcelToTarget(response, "登入登出日志导出", list, SysLogLoginExcel.class);
}
}

View File

@ -46,7 +46,6 @@ public class SysLogOperationController {
})
public Result<PageData<SysLogOperationDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<SysLogOperationDTO> page = sysLogOperationService.page(params);
return new Result<PageData<SysLogOperationDTO>>().ok(page);
}
@ -56,7 +55,7 @@ public class SysLogOperationController {
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<SysLogOperationDTO> list = sysLogOperationService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, SysLogOperationExcel.class);
ExcelUtils.exportExcelToTarget(response, "操作日志导出", list, SysLogOperationExcel.class);
}
}

View File

@ -7,8 +7,8 @@ import java.util.Date;
@Data
public class SysLogLoginExcel {
@Excel(name = "用户操作")
private String operation;
@Excel(name = "用户操作", replace = {"登入_0", "登出_1"})
private Integer operation;
@Excel(name = "状态", replace = {"失败_0", "成功_1", "账号已锁定_1"})
private Integer status;
@Excel(name = "User-Agent")