浏览代码

Merge branch 'feature/0414-trtc' into saas

shangke 1 年之前
父节点
当前提交
0d82d39b99
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

+ 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);
         }