| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/insOrderPlan") |
| | | @Api("/检验任务") |
| | | @Api(tags = "检验任务") |
| | | @AllArgsConstructor |
| | | public class InsOrderPlanController { |
| | | |
| | | private InsOrderPlanService insOrderPlanService; |
| | | |
| | | @ValueAuth |
| | | @ValueClassify("检验任务") |
| | | @ApiOperation(value = "获取检验任务列表") |
| | | @PostMapping("/selectInsOrderPlanList") |
| | | public Result selectInsOrderPlanList(@RequestBody Map<String, Object> data) throws Exception { |
| | |
| | | InsOrderPlanDTO insOrderPlanDTO = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InsOrderPlanDTO.class); |
| | | return Result.success(insOrderPlanService.selectInsOrderPlanList(page, insOrderPlanDTO)); |
| | | } |
| | | |
| | | @ValueClassify("检验任务") |
| | | @ApiOperation(value = "检验单详情-任务切换") |
| | | @PostMapping("/inspectionOrderDetailsTaskSwitching") |
| | | public Result inspectionOrderDetailsTaskSwitching(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | page.setOptimizeCountSql(false); |
| | | InsOrderPlanDTO insOrderPlanDTO = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InsOrderPlanDTO.class); |
| | | return Result.success(insOrderPlanService.inspectionOrderDetailsTaskSwitching(page, insOrderPlanDTO)); |
| | | } |
| | | |
| | | @ValueClassify("检验任务") |
| | | @ApiOperation(value = "认领任务计划") |
| | | @PostMapping("/claimInsOrderPlan") |
| | |
| | | @ValueClassify("检验任务") |
| | | @ApiOperation(value = "检验任务提交") |
| | | @PostMapping("/submitPlan") |
| | | public Result<?> submitPlan(Integer orderId, String laboratory) { |
| | | int num = insOrderPlanService.submitPlan(orderId, laboratory); |
| | | public Result<?> submitPlan(Integer orderId, String laboratory, Integer verifyUser) { |
| | | int num = insOrderPlanService.submitPlan(orderId, laboratory, verifyUser); |
| | | return num==1?Result.success():Result.fail("提交失败,部分项目还未进行检验"); |
| | | } |
| | | |