update 教师分布统计空指针

develop
hhb@hotmail.com 3 weeks ago
parent cd421db42b
commit 13d095d02b

@ -548,7 +548,7 @@ public class TeacherServiceImpl implements TeacherService {
} }
} }
for (TeacherGradeVo grade : gradeList) { 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())) { if(StringUtils.isNotEmpty(grade.getPeriodId())) {
teacher.setPeriodId(grade.getPeriodId()); teacher.setPeriodId(grade.getPeriodId());
} }

Loading…
Cancel
Save