教师修改去掉必须填名称

This commit is contained in:
86182
2022-12-08 10:46:03 +08:00
parent e451ab9ffc
commit ba5e312b2b

View File

@@ -261,7 +261,7 @@ public class TeacherApi extends ApiBaseController {
*/
@PostMapping("/update")
public JsonResponse<TeacherVo> update(@RequestBody TeacherVo teacher) {
if (teacher == null || StringUtils.isBlank(teacher.getName())) {
if (teacher == null) {
return error("缺少必要参数");
}
try {