whycxzp
2021-05-20 d91b5f062a5648ba7e00cb0fe51f1b7c1d3115a6
src/main/java/com/whyc/controller/ExperimentController.java
@@ -36,12 +36,27 @@
        return service.getExperimentId(type);
    }
    @PostMapping
    @PostMapping("kz")
    @ApiOperation(value = "新增试验-空载")
    public Response addKZ(@RequestBody Experiment<ExperimentBaseDataKZ, ExperimentPoint> experiment){
        return service.addKZ(experiment);
    }
    @GetMapping("checkPrecondition")
    @ApiOperation(value = "检查前置条件",notes = "传入的type选择其一:" +
            "绕组:rz,\n" +
            "空载:kz,\n" +
            "负载:fz,\n" +
            "升温:sw,\n" +
            "超速:cs,\n" +
            "空载反电动势:kzfdds,\n" +
            "振动:zd,\n" +
            "耐压:ny,\n" +
            "转动惯量:zdgl,\n")
    public Response checkPrecondition(String type){
        return service.checkPrecondition(type);
    }
    /*======History======*/