whycrzg
2021-05-19 81021a1bc9f541c3d86708e74e72d8be84f2e360
src/main/java/com/whyc/controller/WindingExperimentController.java
@@ -6,6 +6,7 @@
import com.whyc.pojo.ExperimentWindingStep1;
import com.whyc.pojo.ExperimentWindingStep2;
import com.whyc.pojo.Project;
import com.whyc.service.ExperimentService;
import com.whyc.service.WindingExperimentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -23,9 +24,26 @@
    @Autowired
    private WindingExperimentService service;
    @Autowired
    private ExperimentService experimentService;
    @GetMapping("experimentId")
    @ApiOperation(value = "查询当前试验编号",notes = "传入的type选择其一:" +
            "绕组:rz,\n" +
            "空载:kz,\n" +
            "负载:fz,\n" +
            "升温:sw,\n" +
            "超速:cs,\n" +
            "空载反电动势:kzfdds,\n" +
            "振动:zd,\n" +
            "耐压:ny,\n" +
            "转动惯量:zdgl,\n")
    public Response getExperimentId(@RequestParam String type){
        return experimentService.getExperimentId(type);
    }
    @GetMapping("getProjectName")
    @ApiOperation(value = "获取实验项目名")
    @ApiOperation(value = "获取实验项目名称")
    public Response<List<Project>> getProjectName(){
        return service.getProjectName();