| | |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:viewWorkIn:list')") |
| | | @PostMapping("/viewWorkIn/export") |
| | | @CacheData(tableName = {"view_work_in", "man_task_log", "man_task_detl_log"}) |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | QueryWrapper<ViewWorkIn> wrapper = new QueryWrapper<>(); |
| | | ExcelUtil.build(ExcelUtil.create(viewWorkInMapper.selectList(wrapper), ViewWorkIn.class), response); |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<ViewWorkIn, BaseParam> pageParam = new PageParam<>(baseParam, ViewWorkIn.class); |
| | | QueryWrapper<ViewWorkIn> queryWrapper = pageParam.buildWrapper(true); |
| | | ExcelUtil.build(ExcelUtil.create(viewWorkInMapper.selectList(queryWrapper), ViewWorkIn.class), response); |
| | | } |
| | | |
| | | } |