进入房间新增校验
This commit is contained in:
@@ -264,6 +264,12 @@ public class LineInterviewServiceImpl extends LineFlowService implements LineInt
|
||||
if (interviewInfo.getRoomStatus().equals(RoomStatus.CLOSED.getCode())) {
|
||||
throw new ServiceException(ErrorCodeEnum.ROOM_STATUS_ERROR);
|
||||
}
|
||||
if(InterviewUserTypeEnum.INTERVIEWER.equals(userType) && !interviewUserId.equals(interviewInfo.getInterviewerUserId())){
|
||||
throw new ServiceException(ErrorCodeEnum.USER_NOT_ALLOW_ENTER_ROOM);
|
||||
}
|
||||
if(InterviewUserTypeEnum.LINE.equals(userType) && !interviewUserId.equals(interviewInfo.getPartnerId())){
|
||||
throw new ServiceException(ErrorCodeEnum.USER_NOT_ALLOW_ENTER_ROOM);
|
||||
}
|
||||
String userName = enterpriseUserDAO.getUserName(interviewInfo.getInterviewerUserId());
|
||||
Long lineId = interviewInfo.getLineId();
|
||||
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(lineId);
|
||||
|
||||
Reference in New Issue
Block a user