Commit a94a2f3a by 张洪旺

fix 老数据门店预约单对象数据为空,处理

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