| | |
| | | return service.startExperimentPoint(point); |
| | | } |
| | | |
| | | @PostMapping("finishExperiment") |
| | | @ApiOperation(value = "完成实验") |
| | | public Response finishExperiment(@RequestParam String experimentId){ |
| | | return service.finishExperiment(experimentId); |
| | | } |
| | | |
| | | /*======History======*/ |
| | | |
| | | @PostMapping("page") |
| | |
| | | mapper.updateById(experiment); |
| | | } |
| | | |
| | | public Response finishExperiment(String experimentId) { |
| | | mapper.updateStatusAndTime(experimentId,2,"end_time",new Date()); |
| | | return new Response().setMsg(1,"状态更新成功"); |
| | | } |
| | | |
| | | /*======History======*/ |
| | | |
| | | public Response<PageInfo<Experiment>> getPage(Integer pageNum, Integer pageSize, ExperimentConditionDTO condition) { |