Commit c4c548c9 by chongfu.liang

创建配送单支持类型改造

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