|  | @@ -1,23 +1,5 @@
 | 
											
												
													
														|  |  package com.keao.edu.im.service.Impl;
 |  |  package com.keao.edu.im.service.Impl;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -import com.keao.edu.im.whiteboard.WhiteBoardHelper;
 |  | 
 | 
											
												
													
														|  | -import io.rong.models.message.GroupMessage;
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -import java.util.ArrayList;
 |  | 
 | 
											
												
													
														|  | -import java.util.Date;
 |  | 
 | 
											
												
													
														|  | -import java.util.List;
 |  | 
 | 
											
												
													
														|  | -import java.util.Set;
 |  | 
 | 
											
												
													
														|  | -import java.util.stream.Collectors;
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -import lombok.extern.slf4j.Slf4j;
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -import org.apache.commons.lang3.StringUtils;
 |  | 
 | 
											
												
													
														|  | -import org.springframework.beans.factory.annotation.Autowired;
 |  | 
 | 
											
												
													
														|  | -import org.springframework.beans.factory.annotation.Value;
 |  | 
 | 
											
												
													
														|  | -import org.springframework.stereotype.Service;
 |  | 
 | 
											
												
													
														|  | -import org.springframework.transaction.annotation.Isolation;
 |  | 
 | 
											
												
													
														|  | -import org.springframework.transaction.annotation.Transactional;
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  import com.alibaba.fastjson.JSONObject;
 |  |  import com.alibaba.fastjson.JSONObject;
 | 
											
												
													
														|  |  import com.keao.edu.auth.api.client.SysUserFeignService;
 |  |  import com.keao.edu.auth.api.client.SysUserFeignService;
 | 
											
												
													
														|  |  import com.keao.edu.auth.api.entity.SysUser;
 |  |  import com.keao.edu.auth.api.entity.SysUser;
 | 
											
										
											
												
													
														|  | @@ -33,41 +15,28 @@ import com.keao.edu.im.dao.UserDao;
 | 
											
												
													
														|  |  import com.keao.edu.im.dao.WhiteboardDao;
 |  |  import com.keao.edu.im.dao.WhiteboardDao;
 | 
											
												
													
														|  |  import com.keao.edu.im.job.ScheduleManager;
 |  |  import com.keao.edu.im.job.ScheduleManager;
 | 
											
												
													
														|  |  import com.keao.edu.im.mec.im.IMHelper;
 |  |  import com.keao.edu.im.mec.im.IMHelper;
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.ApplyForSpeechMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.AssistantTransferMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.ControlDeviceNotifyMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.DeviceStateChangedMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.DisplayMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.MemberChangedMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.RoleChangedMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.SpeechResultMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.TurnPageMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.UpgradeRoleMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.mec.im.message.WhiteboardMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.ActionEnum;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.ControlDeviceTaskInfo;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.CustomMessage;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.DeviceTypeEnum;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.IMApiResultInfo;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.PlayMidiMessageData;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.ReqChangeUserRoleData;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.ReqDeviceControlData;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.ReqMemberOnlineStatus;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.RoleEnum;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.Room;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.RoomMember;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.RoomResult;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.ScheduledTaskInfo;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.UpgradeRoleTaskInfo;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.UserInfo;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.WhiteBoardApiResultInfo;
 |  | 
 | 
											
												
													
														|  | -import com.keao.edu.im.pojo.Whiteboard;
 |  | 
 | 
											
												
													
														|  | 
 |  | +import com.keao.edu.im.mec.im.message.*;
 | 
											
												
													
														|  | 
 |  | +import com.keao.edu.im.pojo.*;
 | 
											
												
													
														|  |  import com.keao.edu.im.service.MessageService;
 |  |  import com.keao.edu.im.service.MessageService;
 | 
											
												
													
														|  |  import com.keao.edu.im.service.RoomService;
 |  |  import com.keao.edu.im.service.RoomService;
 | 
											
												
													
														|  |  import com.keao.edu.im.utils.CheckUtils;
 |  |  import com.keao.edu.im.utils.CheckUtils;
 | 
											
												
													
														|  |  import com.keao.edu.im.utils.CodeUtil;
 |  |  import com.keao.edu.im.utils.CodeUtil;
 | 
											
												
													
														|  |  import com.keao.edu.im.utils.DateTimeUtils;
 |  |  import com.keao.edu.im.utils.DateTimeUtils;
 | 
											
												
													
														|  |  import com.keao.edu.im.utils.IdentifierUtils;
 |  |  import com.keao.edu.im.utils.IdentifierUtils;
 | 
											
												
													
														|  | 
 |  | +import com.keao.edu.im.whiteboard.WhiteBoardHelper;
 | 
											
												
													
														|  | 
 |  | +import io.rong.models.message.GroupMessage;
 | 
											
												
													
														|  | 
 |  | +import lombok.extern.slf4j.Slf4j;
 | 
											
												
													
														|  | 
 |  | +import org.apache.commons.lang3.StringUtils;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.stereotype.Service;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.transaction.annotation.Isolation;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.transaction.annotation.Transactional;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +import java.util.ArrayList;
 | 
											
												
													
														|  | 
 |  | +import java.util.Date;
 | 
											
												
													
														|  | 
 |  | +import java.util.List;
 | 
											
												
													
														|  | 
 |  | +import java.util.Set;
 | 
											
												
													
														|  | 
 |  | +import java.util.stream.Collectors;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  /**
 |  |  /**
 | 
											
												
													
														|  |   * Created by super_zou on 2019/11/28.
 |  |   * Created by super_zou on 2019/11/28.
 | 
											
										
											
												
													
														|  | @@ -108,9 +77,6 @@ public class RoomServiceImpl implements RoomService {
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private SysUserFeignService sysUserFeignService;
 |  |      private SysUserFeignService sysUserFeignService;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -    @Value("${auth.sysconfig.tenantId}")
 |  | 
 | 
											
												
													
														|  | -    private Integer lesseeOrganId;
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |      @Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
 |  |      @Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  |      public RoomResult joinRoom(String userName, String roomId, boolean isAudience, boolean isDisableCamera,boolean isMusicMode) throws ApiException, Exception {
 |  |      public RoomResult joinRoom(String userName, String roomId, boolean isAudience, boolean isDisableCamera,boolean isMusicMode) throws ApiException, Exception {
 |