zouxuan 5 年 前
コミット
d9e335e4fe
1 ファイル変更1 行追加1 行削除
  1. 1 1
      mec-im/src/main/java/com/ym/dao/RoomMemberDao.java

+ 1 - 1
mec-im/src/main/java/com/ym/dao/RoomMemberDao.java

@@ -64,7 +64,7 @@ public interface RoomMemberDao extends JpaRepository<RoomMember, Long> {
 
     @Transactional
     @Modifying
-    @Query(value = "update rongyun_room_member set play_midi_json=?3 where rid=?1 and FIND_IN_SET(uid,?2)", nativeQuery = true)
+    @Query(value = "update rongyun_room_member set play_midi_json=?3 where rid=?1 and FIND_IN_SET(uid,?2)>0", nativeQuery = true)
     public int updatePlayMidiJsonByRidAndUid(String rid, String uid, String playMidiJson);
 
     @Transactional