Procházet zdrojové kódy

完善备课资料字段

tags/正式3.14.0
王宁 před 4 měsíci
rodič
revize
c1b3166160

+ 7
- 0
sclass/src/main/java/com/xhkjedu/sclass/controller/classroom/ClassroomController.java Zobrazit soubor

@@ -183,6 +183,9 @@ public class ClassroomController {
183 183
                     votestuList.add(stuvote);
184 184
                 } else if("profileteacher".equals(rtype)){//资料
185 185
                     TClassroomProfile profile = JSON.parseObject(jsonstr,TClassroomProfile.class);
186
+                    if(N_Utils.isEmpty(profile.getProfilesuffix())){
187
+                        profile.setProfilesuffix("doc");
188
+                    }
186 189
                     profileList.add(profile);
187 190
                 } else if("profilestudent".equals(rtype)){//资料--学生
188 191
                     TClassroomProfileStudent stuProfile = JSON.parseObject(jsonstr,TClassroomProfileStudent.class);
@@ -335,6 +338,10 @@ public class ClassroomController {
335 338
                 votestuList.add(stuvote);
336 339
             } else if("profileteacher".equals(rtype)){//资料
337 340
                 TClassroomProfile profile = JSON.parseObject(jsonstr,TClassroomProfile.class);
341
+                if(N_Utils.isEmpty(profile.getProfilesuffix())){
342
+                    profile.setProfilesuffix("doc");
343
+                }
344
+
338 345
                 if(N_Utils.isNotEmpty(nodename)) {
339 346
                     profile.setProfileurl(nodename + "/" + profile.getProfileurl());
340 347
                 }

Načítá se…
Zrušit
Uložit