zouxuan 5 年 前
コミット
5a53e43772

+ 1 - 1
edu-im/edu-im-server/src/main/java/com/keao/edu/im/dao/RoomMemberDao.java

@@ -43,7 +43,7 @@ public interface RoomMemberDao extends JpaRepository<RoomMember, Long> {
 
     @Modifying
     @Query(value = "update rongyun_room_member set msid_flag=?3 where rid=?1 and uid=?2", nativeQuery = true)
-    public int updateMsidByRidAndUid(String rid, String uid,int msidFlag);
+    public int updateMsidFlagByRidAndUid(String rid, String uid,int msidFlag);
 
     @Modifying
     @Query(value = "update rongyun_room_member set role=?3 where rid=?1 and role=?2", nativeQuery = true)

+ 2 - 2
edu-im/edu-im-server/src/main/java/com/keao/edu/im/service/Impl/RoomServiceImpl.java

@@ -1,6 +1,5 @@
 package com.keao.edu.im.service.Impl;
 
-import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.keao.edu.auth.api.client.SysUserFeignService;
 import com.keao.edu.auth.api.entity.SysUser;
@@ -1335,7 +1334,8 @@ public class RoomServiceImpl implements RoomService {
             }
             //同步录制资源
             //资源发生变动
-            roomMemberDao.updateMsidByRidAndUid(roomId,userId,state);
+            log.info("资源变动 state: {}",state);
+            roomMemberDao.updateMsidFlagByRidAndUid(roomId,userId,state);
             if(state == null || state == 0 || !msidFlag){
                 if(roomMember.getExamRegistrationId() == null){
                     imHelper.configRecord(roomId);