commit
This commit is contained in:
parent
4e02f7e03a
commit
9bce971af0
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user