Commit 8459b7c1 by 吕明尚

修改房间状态逻辑

parent 34df0466
...@@ -110,10 +110,10 @@ public class RoomStatusServiceImpl implements RoomStatusService { ...@@ -110,10 +110,10 @@ public class RoomStatusServiceImpl implements RoomStatusService {
//当前时间减15分钟前的订单 //当前时间减15分钟前的订单
queryWrapper.ge(SOrder::getEndDate, DateUtils.addMinutes(DateUtils.getNowDate(), -15)); queryWrapper.ge(SOrder::getEndDate, DateUtils.addMinutes(DateUtils.getNowDate(), -15));
SOrder one = orderService.getOne(queryWrapper); SOrder one = orderService.getOne(queryWrapper);
if (ObjectUtils.isEmpty(one) || !redisUtil.exists(ReceiptRdeisEnum.ROOM_EXPIRE_TIME.getValue() + one.getOrderNo())) { if (!ObjectUtils.isEmpty(one) || redisUtil.exists(ReceiptRdeisEnum.ROOM_EXPIRE_TIME.getValue() + one.getOrderNo())) {
isAvailable = false;
} else {
isAvailable = true; isAvailable = true;
} else {
isAvailable = false;
} }
} }
} }
......
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