update
This commit is contained in:
@@ -200,8 +200,8 @@ public class ExperimentController extends JeecgController<Experiment, IExperimen
|
|||||||
@AutoLog(value = "试验管理-完成试验")
|
@AutoLog(value = "试验管理-完成试验")
|
||||||
@Operation(summary = "试验管理-完成试验")
|
@Operation(summary = "试验管理-完成试验")
|
||||||
@PostMapping(value = "/complete")
|
@PostMapping(value = "/complete")
|
||||||
public Result<String> complete(@RequestParam(name = "id", required = true) String id) {
|
public Result<String> complete(@RequestBody Experiment experiment) {
|
||||||
experimentService.changeStatus(id, ExperimentStatus.COMPLETED);
|
experimentService.changeStatus(experiment.getId(), ExperimentStatus.COMPLETED);
|
||||||
return Result.OK("试验已完成!");
|
return Result.OK("试验已完成!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user