|
@@ -104,9 +104,13 @@ public class ResearchService {
|
104
|
104
|
userids.forEach(uid->{
|
105
|
105
|
NoticeUserVo nt = new NoticeUserVo();
|
106
|
106
|
nt.setUserid(uid);
|
107
|
|
- RteacherOtherVo rt = teacherMap.get(uid);
|
108
|
|
- nt.setGradeid(rt.getGradeid());
|
109
|
|
- nt.setSubjectid(rt.getSubjectid());
|
|
107
|
+ if (teacherMap != null) {
|
|
108
|
+ RteacherOtherVo rt = teacherMap.get(uid);
|
|
109
|
+ if (rt != null) {
|
|
110
|
+ nt.setGradeid(rt.getGradeid());
|
|
111
|
+ nt.setSubjectid(rt.getSubjectid());
|
|
112
|
+ }
|
|
113
|
+ }
|
110
|
114
|
teachers.add(nt);
|
111
|
115
|
});
|
112
|
116
|
notice.setUsers(teachers);
|