| | |
| | | //参数:相应的数据,实体类信息,相应的方法(数据获取),生成的excel名字 |
| | | DownExcel.download(response, OrderDTO.class, orderService.exportOrderReport(dates),"orderReport"); |
| | | } |
| | | |
| | | @ApiOperation("订单产品汇总报表导出") |
| | | @PostMapping("/exportOrderProductSummary") |
| | | public void exportOrderProductSummary(HttpServletResponse response, @RequestBody List<LocalDate> dates) throws IOException, IllegalAccessException, InstantiationException { |
| | | //参数:相应的数据,实体类信息,相应的方法(数据获取),生成的excel名字 |
| | | DownExcel.download(response, OrderDTO.class, orderService.exportOrderProductSummary(dates),"orderReport"); |
| | | } |
| | | } |