Search in sources :

Example 1 with JobLogExcelVo

use of com.albedo.java.modules.quartz.domain.vo.JobLogExcelVo in project albedo by somowhere.

the class JobLogResource method download.

@LogOperate(value = "任务日志导出")
@GetMapping(value = "/download")
@PreAuthorize("@pms.hasPermission('quartz_jobLog_export')")
public void download(JobLogQueryCriteria jobLogQueryCriteria, HttpServletResponse response) {
    QueryWrapper wrapper = QueryWrapperUtil.getWrapper(jobLogQueryCriteria);
    ExcelUtil<JobLogExcelVo> util = new ExcelUtil(JobLogExcelVo.class);
    util.exportExcel(jobLogService.findExcelVo(wrapper), "任务调度日志", response);
}
Also used : JobLogExcelVo(com.albedo.java.modules.quartz.domain.vo.JobLogExcelVo) ExcelUtil(com.albedo.java.common.util.ExcelUtil) QueryWrapper(com.baomidou.mybatisplus.core.conditions.query.QueryWrapper) LogOperate(com.albedo.java.common.log.annotation.LogOperate) PreAuthorize(org.springframework.security.access.prepost.PreAuthorize)

Aggregations

LogOperate (com.albedo.java.common.log.annotation.LogOperate)1 ExcelUtil (com.albedo.java.common.util.ExcelUtil)1 JobLogExcelVo (com.albedo.java.modules.quartz.domain.vo.JobLogExcelVo)1 QueryWrapper (com.baomidou.mybatisplus.core.conditions.query.QueryWrapper)1 PreAuthorize (org.springframework.security.access.prepost.PreAuthorize)1