Commit c2a587fc by 吕明尚

修改15分钟续单逻辑

parent 78dfe59e
...@@ -105,7 +105,7 @@ public class RoomStatusServiceImpl implements RoomStatusService { ...@@ -105,7 +105,7 @@ 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 = true; isAvailable = true;
} else { } else {
isAvailable = false; 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