Commit 6e3e3609 by 周晓航

合并 新创建订单优化代码

parent 27f31293
...@@ -60,10 +60,8 @@ public class OrderCheckAdapter { ...@@ -60,10 +60,8 @@ public class OrderCheckAdapter {
StoreResponse.Configuration configuration = storeResponse.getBizVO().getStoreConfig(); StoreResponse.Configuration configuration = storeResponse.getBizVO().getStoreConfig();
if(Objects.isNull(configuration)){ if(Objects.isNull(configuration)){
//针对老数据没有配置 预约单默认支持,直接返回不校验 //针对老数据没有配置 预约单默认支持,直接返回不校验
log.warn("商户:{},没有配置预约单",vo.getShopId());
return; return;
} }
log.info("门店:{},外卖预约单状态:{},自提预约单状态:{}", vo.getShopId(), configuration.getDeliveryAppoint(), configuration.getSelfMentionSwitch());
for (OrderCheck orderCheck : orderCheckList) { for (OrderCheck orderCheck : orderCheckList) {
if (orderCheck.support(vo.getOrderType())) { if (orderCheck.support(vo.getOrderType())) {
orderCheck.check(null, storeResponse); orderCheck.check(null, storeResponse);
......
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