| | |
| | | DownExcel.download(response, YieldDTO.class, reportService.exportYieldSv(dates), "Yield"); |
| | | } |
| | | |
| | | @ApiOperation("排产订单信息报表") |
| | | @PostMapping("/scheduleProductionSchedule/{pageNum}/{pageSize}/{selectTime1}/{selectTime2}/{processes}") |
| | | public Result scheduleProductionSchedule( |
| | | @PathVariable Integer pageNum, |
| | | @PathVariable Integer pageSize, |
| | | @PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2, |
| | | @PathVariable String processes, |
| | | @RequestBody ScheduleProductionScheduleDTO scheduleProductionScheduleDTO) { |
| | | return Result.seccess(reportService.scheduleProductionScheduleSv(pageNum, pageSize, selectTime1, selectTime2,processes, scheduleProductionScheduleDTO)); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("订单排产计划") |
| | | @PostMapping("/exportScheduleReport") |
| | | public void exportScheduleReport(HttpServletResponse response, |
| | | @RequestBody Map<String, Object> dates |
| | | ) throws IOException, IllegalAccessException, InstantiationException { |
| | | //参数:相应的数据,实体类信息,相应的方法(数据获取),生成的excel名字 |
| | | System.out.println(dates); |
| | | DownExcel.download(response, ScheduleProductionScheduleDTO.class, reportService.exportScheduleReportSv(dates), "ScheduleProduction"); |
| | | } |
| | | } |