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