Commit c7db13ba by shuhu.hou@freemud.cn

非支付宝、微信渠道不创建配送单

parent 28dd3104
......@@ -108,7 +108,8 @@ public class OrderDeliveryService {
if (1 != orderBean.getType()) {
return new Pair<>(false, "该订单不是外卖类型订单");
}
if (!orderBean.getSource().equalsIgnoreCase(OrderSourceType.SAAS.getCode()) || !orderBean.getSource().equalsIgnoreCase(OrderSourceType.ALIPAY.getCode())) {
//非支付宝、微信渠道不创建配送单
if (!(orderBean.getSource().equalsIgnoreCase(OrderSourceType.SAAS.getCode()) || orderBean.getSource().equalsIgnoreCase(OrderSourceType.ALIPAY.getCode()))) {
return new Pair<>(false, "订单来源异常");
}
//配送信息为空,则不创建配送单
......
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