| | |
| | | |
| | | } |
| | | |
| | | @ApiOperation("非跨工序次破") |
| | | @PostMapping("/notCrossProcessBreaking/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result notCrossProcessBreaking(@PathVariable Integer pageNum, |
| | | @PathVariable Integer pageSize, |
| | | @PathVariable List<String> selectDate, |
| | | @RequestBody CrossProcessBreakingDTO crossProcessBreakingDTO) { |
| | | return Result.success(reportService.notCrossProcessBreakingSv(pageNum, pageSize, selectDate, crossProcessBreakingDTO)); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("在制品报表") |
| | | @PostMapping("/workInProgress/{pageNum}/{pageSize}/{orderId}/{inputProject}/{selectProcesses}/{optionVal}") |
| | | public Result workInProgress( |
| | |
| | | } |
| | | |
| | | @ApiOperation("次破明细报表") |
| | | @PostMapping("/damageReport/{pageNum}/{pageSize}/{selectTime1}/{selectTime2}") |
| | | @PostMapping("/damageReport/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result damageReport( |
| | | @PathVariable Integer pageNum, |
| | | @PathVariable Integer pageSize, |
| | | @PathVariable String selectTime1, |
| | | @PathVariable String selectTime2, |
| | | @PathVariable List<String> selectDate, |
| | | @RequestBody DamageReportDTO damageReportDTO) { |
| | | return Result.success(reportService.selectDamageReportSv(pageNum, pageSize, selectTime1, selectTime2, damageReportDTO)); |
| | | return Result.success(reportService.selectDamageReportSv(pageNum, pageSize, selectDate, damageReportDTO)); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | @ApiOperation("生产发货进度") |
| | | @PostMapping("/productionSchedule/{orderId}") |
| | | public Result productionSchedule(@PathVariable String orderId, @RequestBody List<Integer> columns) { |
| | | public Result productionSchedule(@PathVariable String orderId, @RequestBody List<String> columns) { |
| | | return Result.success(reportService.productionScheduleSv(orderId, columns)); |
| | | } |
| | | |
| | |
| | | DownExcel.download(response, CrossProcessBreakingDTO.class, reportService.exportCrossProcessBreakingSv(dates), "CrossProcessBreaking"); |
| | | } |
| | | |
| | | @ApiOperation("非跨工序次破报表导出") |
| | | @PostMapping("/exportNotCrossProcessBreaking") |
| | | public void exportNotCrossProcessBreaking(HttpServletResponse response, @RequestBody List<LocalDate> dates) throws IOException, IllegalAccessException, InstantiationException { |
| | | //参数:相应的数据,实体类信息,相应的方法(数据获取),生成的excel名字 |
| | | DownExcel.download(response, CrossProcessBreakingDTO.class, reportService.exportNotCrossProcessBreakingSv(dates), "CrossProcessBreaking"); |
| | | } |
| | | |
| | | @ApiOperation("次破明细报表导出") |
| | | @PostMapping("/exportDamageReport") |
| | | public void exportDamageReport(HttpServletResponse response, @RequestBody Map<String, Object> dates) throws IOException, IllegalAccessException, InstantiationException { |