Commit c4c548c9 by chongfu.liang

创建配送单支持类型改造

parent 04517055
...@@ -54,6 +54,8 @@ public class DeliveryHandle { ...@@ -54,6 +54,8 @@ public class DeliveryHandle {
@Value("${saas.order.delivery.callBackUrl}") @Value("${saas.order.delivery.callBackUrl}")
private String deliveryCallBackUrl; private String deliveryCallBackUrl;
@Value("${delivery.support.ordersource}")
private String supportOrderSource;
@Autowired @Autowired
private DeliveryService deliveryService; private DeliveryService deliveryService;
...@@ -166,8 +168,11 @@ public class DeliveryHandle { ...@@ -166,8 +168,11 @@ public class DeliveryHandle {
return false; return false;
} }
//订单来源异常 //订单来源异常
if (!orderBean.getSource().equalsIgnoreCase(OrderSourceType.SAAS.getCode())) { String[] supportSource = supportOrderSource.split(","); // OrderSourceType.SAAS.getCode()
return false; for (String source : supportSource){
if (!orderBean.getSource().equalsIgnoreCase(source)) {
return false;
}
} }
//配送信息为空,则不创建配送单 //配送信息为空,则不创建配送单
if (orderBean.getAddInfo() == null || orderBean.getAddInfo().getDeliveryType() == null) { if (orderBean.getAddInfo() == null || orderBean.getAddInfo().getDeliveryType() == null) {
......
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