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