Commit 9ecea2fe by YG8999

Merge remote-tracking branch 'origin/main'

parents 6b6c8dc3 15129be2
...@@ -132,7 +132,8 @@ public class RoomStatusServiceImpl implements RoomStatusService { ...@@ -132,7 +132,8 @@ public class RoomStatusServiceImpl implements RoomStatusService {
if(Objects.isNull(user)||Objects.isNull(user.getId())||order.getConsumerId().compareTo(user.getId())!=0){ if(Objects.isNull(user)||Objects.isNull(user.getId())||order.getConsumerId().compareTo(user.getId())!=0){
orderEndDate = DateUtils.addMinutes(orderEndDate,Constants.ROOM_LOCK_DELAY_MINUTE); orderEndDate = DateUtils.addMinutes(orderEndDate,Constants.ROOM_LOCK_DELAY_MINUTE);
} }
if (timeHourDate.compareTo(orderStartDate) > 0 && timeHourDate.compareTo(orderEndDate) < 0) {
if (DateUtils.addSeconds(timeHourDate, 59 * 60 + 59).compareTo(orderStartDate) >= 0 && timeHourDate.compareTo(orderEndDate) < 0) {
vo.setStatus(RoomStatusEnum.HOLD.getValue()); vo.setStatus(RoomStatusEnum.HOLD.getValue());
//判断订单开始时间是否是同一个小时,如果是同一个小时,占用结束时间为订单开始时间 //判断订单开始时间是否是同一个小时,如果是同一个小时,占用结束时间为订单开始时间
if(StringUtils.equals(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH,timeHourDate) if(StringUtils.equals(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH,timeHourDate)
......
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