|
@@ -746,7 +746,7 @@ public class RoomServiceImpl implements RoomService {
|
|
|
return courseSchedule.getServiceProvider();
|
|
|
}
|
|
|
|
|
|
- @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
|
|
|
+ @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public void leaveRoomSuccess(String roomId, String userId, String deviceNum) throws Exception {
|
|
|
|
|
@@ -809,10 +809,10 @@ public class RoomServiceImpl implements RoomService {
|
|
|
}
|
|
|
|
|
|
// 删除房间用户,事务单独提效
|
|
|
- roomMemberService.deleteRoomMember(roomId, userId);
|
|
|
+ // roomMemberService.deleteRoomMember(roomId, userId);
|
|
|
|
|
|
int roomMembers = roomMemberDao.countByRid(roomId);
|
|
|
- if (roomMembers <= 0) {
|
|
|
+ if (roomMembers <= 1) {
|
|
|
// 删除群组用户信息
|
|
|
roomMemberDao.deleteUserByRidAndUid(roomId, userId);
|
|
|
|