value
2024-06-12 842363b7f6aeac9ebb5f5d5b3272f29163b6317d
inspect-server/src/main/java/com/yuanchu/mom/controller/StandardTreeController.java
@@ -59,7 +59,8 @@
    @ValueClassify("标准库")
    @ApiOperation(value = "修改标准库中的内容")
    @PostMapping("/upStandardProductList")
    public Result upStandardProductList(@RequestBody StandardProductList list){
    public Result upStandardProductList(String str){
        StandardProductList list = JSON.parseObject(str, StandardProductList.class);
        return Result.success(standardProductListService.upStandardProductList(list));
    }
    @ValueAuth
@@ -146,9 +147,9 @@
    }
    @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));
    }
}