|
@@ -156,7 +156,7 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
throw new BusinessException(ResultCode.ROOM_ING);
|
|
|
}
|
|
|
}else {
|
|
|
- room.setRoomId(roomUtil.genRoomId());
|
|
|
+ room.setRoomId(roomUtil.genRoomId(1000));
|
|
|
}
|
|
|
|
|
|
if(param.getNumList().size() >0){
|
|
@@ -363,11 +363,12 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
roomVisitLogService.addLog(roomId,roomUserId,userId,type);
|
|
|
}
|
|
|
if(type == 1 ){ //离开房间
|
|
|
- room.setRoomStatus(2);
|
|
|
this.stopRoom(roomId,roomUserId);
|
|
|
roomVisitLogService.addLog(roomId,roomUserId,userId,type);
|
|
|
}
|
|
|
-
|
|
|
+ if(type == 1 && roomUserId == null){
|
|
|
+ room.setRoomStatus(2);
|
|
|
+ }
|
|
|
room.setLastLookTime(DateUtil.formatDateTime(new Date()));
|
|
|
room.setUpdateTime(null);
|
|
|
this.updateById(room);
|