From 13d095d02ba18c1afd44a2f24f35bb4f4825e304 Mon Sep 17 00:00:00 2001 From: "hhb@hotmail.com" Date: Tue, 3 Dec 2024 18:04:42 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=95=99=E5=B8=88=E5=88=86=E5=B8=83?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E7=A9=BA=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/admin/service/impl/TeacherServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }