Ver código fonte

Merge branch 'feature/0414-trtc' into saas

shangke 1 ano atrás
pai
commit
0d82d39b99

+ 4 - 3
mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

@@ -381,11 +381,12 @@ public class RoomServiceImpl implements RoomService {
 
         // 课程人数
         {
-            int studentNums = 1;
+            // 当前教室人数
+            int studentNums = courseScheduleStudentPaymentDao.findByCourseSchedule(Long.parseLong(roomId.substring(1))).size();
             // 网管课
-            if (courseSchedule.getGroupType() == GroupType.VIP) {
+            /*if (courseSchedule.getGroupType() == GroupType.VIP) {
                 studentNums = vipGroupDao.getCourseStudentNumsByGroupId(Long.parseLong(courseSchedule.getMusicGroupId()));
-            }
+            }*/
             roomResult.setStudentNums(studentNums);
         }