ソースを参照

Merge remote-tracking branch 'origin/ywx' into wn

tags/正式3.14.1
王宁 4ヶ月前
コミット
efc3a01b37

+ 7
- 3
sapi/src/main/java/com/xhkjedu/sapi/service/research/ResearchService.java ファイルの表示

@@ -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);

+ 1
- 1
sapi/src/main/resources/mapper/research/ResearchUserMapper.xml ファイルの表示

@@ -137,7 +137,7 @@
137 137
                  left join t_class c on c.schoolid=s.schoolid and c.year=s.year
138 138
                  left join t_class_teacher ct on c.classid=ct.classid
139 139
                  left join t_teacher_powersb tp on ct.teacherid=tp.teacherid
140
-        where c.classtype=1 and c.classstate=1 and ct.teacherid in
140
+        where c.classtype in(1,2) and c.classstate=1 and ct.teacherid in
141 141
         <foreach collection="userids" item="u" open="(" close=")" separator=",">
142 142
             ${u}
143 143
         </foreach>

読み込み中…
キャンセル
保存