|
@@ -232,4 +232,14 @@ public class StudentController extends BaseController {
|
|
studentService.save(student);
|
|
studentService.save(student);
|
|
return succeed();
|
|
return succeed();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @PostMapping("/update")
|
|
|
|
+ @ApiOperation(value = "修改", notes = "传入Student")
|
|
|
|
+ public HttpResponseResult<Boolean> update(@Validated @RequestBody StudentWrapper.Student student) {
|
|
|
|
+ if (student.getId() == null) {
|
|
|
|
+ throw new BizException("id 不能为空");
|
|
|
|
+ }
|
|
|
|
+ studentService.save(student);
|
|
|
|
+ return succeed();
|
|
|
|
+ }
|
|
}
|
|
}
|