| | |
| | | } |
| | | |
| | | @GetMapping("/exportExcel") |
| | | public R exportExcel(@RequestParam(value = "year",required = false) Integer year, |
| | | public void exportExcel(@RequestParam(value = "year",required = false) Integer year, |
| | | @RequestParam(value = "type",required = false) Integer type, |
| | | @RequestParam(value = "communityId",required = false) Long communityId, |
| | | @RequestParam(value = "belongTo",required = false) String belongTo, |
| | | HttpServletResponse response) throws Exception { |
| | | List<ExcelDO> excelDOList = communityService.export(year, belongTo, communityId); |
| | | return R.ok(excelDOList); |
| | | // com.panzhihua.common.utlis.EasyExcel.export2Web(response,"报道单位","sheet",ExcelDO.class,excelDOList); |
| | | // return R.ok(excelDOList); |
| | | com.panzhihua.common.utlis.EasyExcel.export2Web(response,"报道单位","sheet",ExcelDO.class,excelDOList); |
| | | } |
| | | |
| | | @GetMapping("/partyExcel") |