Browse Source

完善备课资料字段

tags/正式3.14.0
王宁 5 months ago
parent
commit
c1b3166160

+ 7
- 0
sclass/src/main/java/com/xhkjedu/sclass/controller/classroom/ClassroomController.java View File

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

Loading…
Cancel
Save