| | |
| | | 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)); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "通过检验标准查询检验项目") |
| | | @PostMapping("/selectStandardProductListByMethodId") |
| | | @ValueAuth |
| | | public Result selectStandardProductListByMethodId(Integer id){ |
| | | return Result.success(standardProductListService.selectStandardProductListByMethodId(id)); |
| | | public Result selectStandardProductListByMethodId(Integer id, String tree){ |
| | | return Result.success(standardProductListService.selectStandardProductListByMethodId(id, tree)); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取标准树下标准方法枚举") |
| | |
| | | return Result.success(standardMethodListService.selectStandardMethodEnum()); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取产品架构") |
| | | @GetMapping("/getStandardTree2") |
| | | @ValueAuth |
| | | public Result getStandardTree2(){ |
| | | return Result.success(standardTreeService.getStandardTree2()); |
| | | } |
| | | |
| | | } |