diff --git a/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java b/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java index 826882b..3443214 100644 --- a/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java +++ b/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java @@ -548,7 +548,7 @@ public class TeacherServiceImpl implements TeacherService { } } for (TeacherGradeVo grade : gradeList) { - if(teacher.getId().equals(grade.getId())) { + if(StringUtils.isNotEmpty(teacher.getId()) && teacher.getId().equals(grade.getId())) { if(StringUtils.isNotEmpty(grade.getPeriodId())) { teacher.setPeriodId(grade.getPeriodId()); }