| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.yuanchu.mom.annotation.ValueAuth; |
| | | import com.yuanchu.mom.pojo.InsSample; |
| | | import com.yuanchu.mom.pojo.StandardProductList; |
| | | import com.yuanchu.mom.pojo.StandardTree; |
| | | import com.yuanchu.mom.service.InsOrderService; |
| | | import com.yuanchu.mom.service.StandardMethodListService; |
| | | import com.yuanchu.mom.service.StandardProductListService; |
| | | import com.yuanchu.mom.service.StandardTreeService; |
| | |
| | | |
| | | private StandardProductListService standardProductListService; |
| | | |
| | | private InsOrderService insOrderService; |
| | | |
| | | @ApiOperation(value = "获取标准树") |
| | | @GetMapping("/selectStandardTreeList") |
| | | public Result selectStandardTreeList(){ |
| | |
| | | @ApiOperation(value = "添加标准树") |
| | | @PostMapping("/addStandardTree") |
| | | public Result addStandardTree(@RequestBody StandardTree standardTree){ |
| | | if(standardTree.getModel().equals("")) standardTree.setModel(null); |
| | | return Result.success(standardTreeService.addStandardTree(standardTree)); |
| | | } |
| | | |
| | |
| | | return Result.success(standardTreeService.delStandardTree(tree)); |
| | | } |
| | | |
| | | @ApiOperation(value = "外部获取检测数据") |
| | | @GetMapping("/getOrderThing") |
| | | @ApiOperation(value = "通过标准树查询对应的检验项目") |
| | | @PostMapping("/selectStandardProductList") |
| | | @ValueAuth |
| | | public Result getOrderThing(){ |
| | | return Result.success(insOrderService.getOrderThing()); |
| | | public Result selectStandardProductList(@RequestBody InsSample insSample){ |
| | | return Result.success(standardProductListService.selectStandardProductList(insSample)); |
| | | } |
| | | |
| | | @ApiOperation(value = "通过检验标准查询检验项目") |
| | | @PostMapping("/selectStandardProductListByMethodId") |
| | | @ValueAuth |
| | | public Result selectStandardProductListByMethodId(Integer id, String tree){ |
| | | return Result.success(standardProductListService.selectStandardProductListByMethodId(id, tree)); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取标准树下标准方法枚举") |
| | | @GetMapping("/selectStandardMethodEnum") |
| | | @ValueAuth |
| | | public Result selectStandardMethodEnum(){ |
| | | return Result.success(standardMethodListService.selectStandardMethodEnum()); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取产品架构") |
| | | @GetMapping("/getStandardTree2") |
| | | @ValueAuth |
| | | public Result getStandardTree2(){ |
| | | return Result.success(standardTreeService.getStandardTree2()); |
| | | } |
| | | |
| | | } |