Commit 39bc5e15 by 周晓航

预定单, 门店营业结束之后 下单不传递takeMealTime 导致校验失败

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 004e9e4a
...@@ -282,7 +282,12 @@ public class CheckOrder { ...@@ -282,7 +282,12 @@ public class CheckOrder {
if (isAdvanceOrder) { if (isAdvanceOrder) {
// 预定单 到店&外卖 必须有取餐时间 // 预定单 到店&外卖 必须有取餐时间
if (StringUtils.isBlank(takeMealTimes)) { if (StringUtils.isBlank(takeMealTimes)) {
throw new ServiceException(ResponseResult.PARAMETER_MISSING); //todo 这里是重点: 门店如果营业结束,下明天的单子就会 传递 expectTime 时间
if (StringUtils.isNotBlank(createOrderVo.getExpectTime())) {
takeMealTimes = createOrderVo.getExpectTime();
}else {
throw new ServiceException(ResponseResult.PARAMETER_MISSING);
}
} }
// 必须要有 电话 // 必须要有 电话
if (StringUtils.isBlank(createOrderVo.getUserPhone())) { if (StringUtils.isBlank(createOrderVo.getUserPhone())) {
......
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