| | |
| | | private InsOrderTemplateService insOrderTemplateService; |
| | | |
| | | //获取检验下单数据 |
| | | @ValueClassify("检验下单") |
| | | @ValueAuth |
| | | @ApiOperation(value = "查询检验下单数据") |
| | | @PostMapping("/selectInsOrderParameter") |
| | | public Result selectInsOrderParameter(@RequestBody Map<String, Object> data) throws Exception { |
| | |
| | | public Result<?> selectInsOrderTemplateById(Integer id) { |
| | | return Result.success("成功", insOrderTemplateService.selectInsOrderTemplateById(id)); |
| | | } |
| | | |
| | | @ValueClassify("检验下单") |
| | | @ApiOperation(value = "删除检验单模板") |
| | | @PostMapping("/delInsOrderTemplate") |
| | | @ValueAuth |
| | | public Result<?> delInsOrderTemplate(Integer id) { |
| | | return Result.success(insOrderTemplateService.delInsOrderTemplate(id)); |
| | | } |
| | |
| | | SampleProductDto2 sampleProductDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), SampleProductDto2.class); |
| | | return Result.success(insOrderService.selectSampleAndProductByOrderId(page, sampleProductDto)); |
| | | } |
| | | @ValueClassify("费用统计") |
| | | @ValueAuth |
| | | @ApiOperation(value = "费用统计") |
| | | @PostMapping("/costStatistics") |
| | | public Result<?> costStatistics(@RequestBody Map<String, Object> data) throws Exception { |
| | |
| | | CostStatisticsDto costStatisticsDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), CostStatisticsDto.class); |
| | | return Result.success(insOrderService.costStatistics(page, costStatisticsDto)); |
| | | } |
| | | @ValueClassify("样品缺陷指数") |
| | | @ApiOperation(value = "样品缺陷指数", tags = "样品缺陷指数") |
| | | @ValueAuth |
| | | @ApiOperation(value = "样品缺陷指数") |
| | | @PostMapping("/selectSampleDefects") |
| | | public Result selectSampleDefects(Integer size, Integer current, String inspectionItems, String orderNumber) { |
| | | return Result.success(insOrderService.selectSampleDefects(new Page<>(current, size),inspectionItems, orderNumber)); |