Commit b639d475 by 吕明尚

修改房间状态接口

parent fb5aec41
......@@ -110,10 +110,10 @@ public class RoomStatusServiceImpl implements RoomStatusService {
//当前时间减15分钟前的订单
queryWrapper.ge(SOrder::getEndDate, DateUtils.addMinutes(DateUtils.getNowDate(), -15));
SOrder one = orderService.getOne(queryWrapper);
if (!ObjectUtils.isEmpty(one) || redisUtil.exists(ReceiptRdeisEnum.ROOM_EXPIRE_TIME.getValue() + one.getOrderNo())) {
isAvailable = true;
} else {
if (ObjectUtils.isEmpty(one)) {
isAvailable = false;
} else {
isAvailable = true;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment