| | |
| | | return Result.success(insOrderService.selectSampleAndProductByOrderId(page, sampleProductDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "费用统计") |
| | | @GetMapping("/costStatistics") |
| | | public Result<?> costStatistics(Page page, CostStatisticsDto costStatisticsDto){ |
| | | return Result.success(insOrderService.costStatistics(page, costStatisticsDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "费用统计获取总价") |
| | | @GetMapping("/costStatistics2") |
| | | public Result<?> costStatistics2(CostStatisticsDto costStatisticsDto){ |
| | | return Result.success(insOrderService.costStatistics2(costStatisticsDto)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "样品缺陷指数") |
| | | @GetMapping("/selectSampleDefects") |
| | | public Result selectSampleDefects(Integer size, Integer current, String inspectionItems, String orderNumber) { |
| | | return Result.success(insOrderService.selectSampleDefects(new Page<>(current, size),inspectionItems, orderNumber)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "撤销") |
| | | @PostMapping("/updateStatus") |
| | |
| | | Integer state = (Integer) param.get("state"); |
| | | insProductService.checkUpdate(orderId,state); |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "费用统计导出") |
| | | @GetMapping("/export") |
| | | public void export(CostStatisticsDto costStatisticsDto,HttpServletResponse response) throws ServletException, IOException { |
| | | insOrderService.export(costStatisticsDto,response); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "成品检验单全部信息导出") |
| | | @PostMapping("/rawAllInsOrderExport") |
| | | public void rawAllInsOrderExport(@RequestBody SampleOrderDto sampleOrderDto, HttpServletResponse response){ |
| | | @GetMapping("/rawAllInsOrderExport") |
| | | public void rawAllInsOrderExport(SampleOrderDto sampleOrderDto, HttpServletResponse response){ |
| | | insOrderService.rawAllInsOrderExport(sampleOrderDto,response); |
| | | } |
| | | |