更改导出对象
This commit is contained in:
parent
40295d2bd0
commit
04ccb88c2d
@ -7,6 +7,7 @@ import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.worklog.dto.statistics.LogStatisticsDetailsListDTO;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.worklog.vo.statistics.LogStatisticsDetailsListVO;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.worklog.vo.statistics.LogStatisticsDetailsVO;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.worklog.vo.statistics.LogStatisticsExcelVO;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.worklog.vo.statistics.LogStatisticsModelVO;
|
||||
import cn.iocoder.yudao.module.system.service.worklog.LogStatisticsService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@ -60,7 +61,7 @@ public class LogStatisticsController {
|
||||
HttpServletResponse response) throws IOException {
|
||||
List<LogStatisticsDetailsVO> list = logStatisticsService.exportLogRuleExcel(dto);
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "日志规则.xls", "数据", LogStatisticsDetailsVO.class,
|
||||
BeanUtils.toBean(list, LogStatisticsDetailsVO.class));
|
||||
ExcelUtils.write(response, "日志规则.xls", "数据", LogStatisticsExcelVO.class,
|
||||
BeanUtils.toBean(list, LogStatisticsExcelVO.class));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user