@@ -18,7 +18,7 @@ import java.util.List;
public interface RoomDao extends JpaRepository<Room, Long> {
Room findByRid(String rid);
- @Query(value = "select * from rongyun_room where rid=?1 FOR UPDATE", nativeQuery = true)
+ @Query(value = "select * from rongyun_room where rid=?1", nativeQuery = true)
Room findByLockRid(String rid);
@Modifying
@@ -562,6 +562,7 @@ public class RoomServiceImpl implements RoomService {
}
Date curTime = DateTimeUtils.currentUTC();
Room room = roomDao.findByRid(roomId);
+ log.info("joinRoomSuccess: roomId={}, userId={}, roleEnum={}, room={}", roomId, userId, roleEnum.name(), Objects.isNull(room));
if (room == null) {
saveRoom(roomId, roomId, curTime, display);
this.joinImGroup(roomId, schedule.getActualTeacherId(), schedule);
@@ -0,0 +1,5 @@
+
+# JPA配置
+spring:
+ jpa:
+ show-sql: true