| | |
| | | return service.finishExperimentPoint(id); |
| | | } |
| | | |
| | | @PostMapping("restartExperimentPoint") |
| | | @ApiOperation(value = "重做测试点") |
| | | public Response restartExperimentPoint(@RequestParam Integer id){ |
| | | return service.restartExperimentPoint(id); |
| | | } |
| | | |
| | | /*======History======*/ |
| | | |
| | | @PostMapping("page") |
| | |
| | | return new Response().setMsg(1,"测试点中断信号更新成功"); |
| | | } |
| | | |
| | | public Response restartExperimentPoint(Integer id) { |
| | | ExperimentPoint point = new ExperimentPoint(); |
| | | point.setId(id); |
| | | point.setStatus(0); |
| | | point.setStartTime(null); |
| | | point.setEndTime(null); |
| | | pointMapper.updateById(point); |
| | | return new Response().setMsg(1,"重置测试点成功"); |
| | | } |
| | | |
| | | public Response setPrecondition(Integer id,Integer value) { |
| | | switch (id){ |
| | | case 1:{ |