Commit 22b05626 by 张洪旺

fix 预约 时间判断

parent 2533ed5e
...@@ -273,7 +273,7 @@ public class CheckOrder { ...@@ -273,7 +273,7 @@ public class CheckOrder {
Date todayEnd = DateUtil.setEndDay(new Date()); Date todayEnd = DateUtil.setEndDay(new Date());
boolean toDay = orderDate.before(todayEnd); boolean toDay = orderDate.before(todayEnd);
BusinessDate businessDate = getStoreBusinessDate(storeResponseDto, toDay); BusinessDate businessDate = getStoreBusinessDate(storeResponseDto, toDay);
boolean businessEndDate = (DateUtils.addMinutes(orderDate, 45).compareTo(businessDate.getEndDate()) <= 0); boolean businessEndDate = (DateUtils.addMinutes(orderDate, 45).compareTo(businessDate.getEndDate()) >= 0);
if (businessEndDate) { if (businessEndDate) {
throw new ServiceException(ResponseResult.STORE_SELF_ERROR); throw new ServiceException(ResponseResult.STORE_SELF_ERROR);
} }
......
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