| | |
| | | import com.ruoyi.common.mybatis.core.page.TableDataInfo; |
| | | import com.ruoyi.common.log.enums.BusinessType; |
| | | import com.ruoyi.common.excel.utils.ExcelUtil; |
| | | import com.ruoyi.system.domain.SysOperLog; |
| | | import com.ruoyi.system.domain.bo.SysOperLogBo; |
| | | import com.ruoyi.system.domain.vo.SysOperLogVo; |
| | | import com.ruoyi.system.service.ISysOperLogService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | */ |
| | | @SaCheckPermission("monitor:operlog:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo<SysOperLog> list(SysOperLog operLog, PageQuery pageQuery) { |
| | | public TableDataInfo<SysOperLogVo> list(SysOperLogBo operLog, PageQuery pageQuery) { |
| | | return operLogService.selectPageOperLogList(operLog, pageQuery); |
| | | } |
| | | |
| | |
| | | @Log(title = "操作日志", businessType = BusinessType.EXPORT) |
| | | @SaCheckPermission("monitor:operlog:export") |
| | | @PostMapping("/export") |
| | | public void export(SysOperLog operLog, HttpServletResponse response) { |
| | | List<SysOperLog> list = operLogService.selectOperLogList(operLog); |
| | | ExcelUtil.exportExcel(list, "操作日志", SysOperLog.class, response); |
| | | public void export(SysOperLogBo operLog, HttpServletResponse response) { |
| | | List<SysOperLogVo> list = operLogService.selectOperLogList(operLog); |
| | | ExcelUtil.exportExcel(list, "操作日志", SysOperLogVo.class, response); |
| | | } |
| | | |
| | | /** |