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