| | |
| | | @Autowired |
| | | private ExperimentService service; |
| | | |
| | | @GetMapping("exist") |
| | | @ApiOperation(value = "查询是否当前有试验",notes = "如果有,code=1,返回试验的基础数据;如果没有,code=-1") |
| | | public Response exist(){ |
| | | return service.exist(); |
| | | } |
| | | |
| | | @GetMapping("experimentId") |
| | | @ApiOperation(value = "查询当前试验编号",notes = "传入的type选择其一:" + |
| | | "绕组:rz,\n" + |
| | |
| | | return service.checkPrecondition(type); |
| | | } |
| | | |
| | | /** |
| | | * 开始试验,请求接口1,获取试验测试点 |
| | | */ |
| | | @GetMapping("point") |
| | | @ApiOperation(value = "查询测试点列表") |
| | | public Response getPoint(@RequestParam String experimentId){ |
| | | return service.getPoint(experimentId); |
| | | } |
| | | |
| | | /** |
| | | * 开始试验,检查中置条件 |
| | | * @return |
| | | */ |
| | | @GetMapping("checkPreconditionStep1") |
| | | @ApiOperation(value = "步骤1,检查升温情况") |
| | | public Response checkPreconditionStep1(@RequestParam String experimentId){ |
| | | return service.checkPreconditionStep1(experimentId); |
| | | } |
| | | |
| | | @PostMapping("startExperimentPoint") |
| | | @ApiOperation(value = "启动测试点") |
| | | public Response StartExperimentPoint(@RequestBody ExperimentPoint point){ |
| | | return service.startExperimentPoint(point); |
| | | } |
| | | |
| | | /*======History======*/ |
| | | |