value
2024-06-17 df99fe98534cd9d8aa746124d5056753c72a8c20
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,32 @@
    @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();
    }
    @ValueAuth
    @ApiOperation("重置标准库单价")
    @PostMapping("/resetTreeOfPrice")
    public Result resetTreeOfPrice(String tree, Integer standardId){
        standardTreeService.resetTreeOfPrice(tree, standardId);
        return Result.success();
    }
    @ValueAuth
    @ApiOperation("重置标准库工时系数")
    @PostMapping("/resetTreeOfHour")
    public Result resetTreeOfHour(String tree, Integer standardId){
        standardTreeService.resetTreeOfHour(tree, standardId);
        return Result.success();
    }
}