value
2024-06-14 c1eb35b338c6796d493d60ec12e499802b0a8072
inspect-server/src/main/java/com/yuanchu/mom/controller/StandardTreeController.java
@@ -14,6 +14,7 @@
import io.swagger.annotations.*;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.util.Map;
@@ -148,8 +149,16 @@
    @ValueAuth
    @PostMapping("/getStandTreeBySampleType")
    @ApiModelProperty("仅获取光纤的型号")
    @ApiOperation("仅获取光纤的型号")
    public Result<?> getStandTreeBySampleType(String laboratory, String sampleType){
        return Result.success(standardTreeService.getStandTreeBySampleType(laboratory, sampleType));
    }
    @ValueClassify("标准库")
    @ApiOperation("导入标准库")
    @PostMapping("/inExcelOfTree")
    public Result inExcelOfTree(@RequestParam("file") MultipartFile file){
        standardTreeService.inExcelOfTree(file);
        return Result.success();
    }
}