| | |
| | | } |
| | | |
| | | @ValueAuth |
| | | @GetMapping("/getStandTreeBySampleType") |
| | | @PostMapping("/getStandTreeBySampleType") |
| | | @ApiModelProperty("仅获取光纤的型号") |
| | | public Result<?> getStandTreeBySampleType(){ |
| | | return Result.success(standardTreeService.getStandTreeBySampleType()); |
| | | public Result<?> getStandTreeBySampleType(String laboratory, String sampleType){ |
| | | return Result.success(standardTreeService.getStandTreeBySampleType(laboratory, sampleType)); |
| | | } |
| | | } |
| | |
| | | |
| | | int upStandardProducts(Map<String, Object> product); |
| | | |
| | | List<StandardTree> getStandTreeBySampleType(); |
| | | List<StandardTree> getStandTreeBySampleType(String laboratory, String sampleType); |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<StandardTree> getStandTreeBySampleType() { |
| | | public List<StandardTree> getStandTreeBySampleType(String laboratory, String sampleType) { |
| | | return standardTreeMapper.selectList(Wrappers.<StandardTree>lambdaQuery() |
| | | .eq(StandardTree::getLaboratory, "通信产品实验室") |
| | | .eq(StandardTree::getSampleType, "光纤") |
| | | .eq(StandardTree::getLaboratory, laboratory) |
| | | .eq(StandardTree::getSampleType, sampleType) |
| | | .select(StandardTree::getModel, StandardTree::getSample)); |
| | | } |
| | | } |