| | |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:viewStayTime:list')") |
| | | @PostMapping("/viewStayTime/export") |
| | | @CacheData(tableName = {"view_stay_time", "man_loc_detl", "man_loc"}) |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | QueryWrapper<ViewStayTime> wrapper = new QueryWrapper<>(); |
| | | ExcelUtil.build(ExcelUtil.create(viewStayTimeMapper.selectList(wrapper), ViewStayTime.class), response); |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<ViewStayTime, BaseParam> pageParam = new PageParam<>(baseParam, ViewStayTime.class); |
| | | QueryWrapper<ViewStayTime> queryWrapper = pageParam.buildWrapper(true, wrapper -> wrapper.orderByDesc("stay_time")); |
| | | ExcelUtil.build(ExcelUtil.create(viewStayTimeMapper.selectList(queryWrapper), ViewStayTime.class), response); |
| | | } |
| | | |
| | | } |