huangzhiguo 1 year ago
parent
commit
d69cdadf89

+ 3 - 1
src/main/java/com/caimei365/order/service/impl/SubmitServiceImpl.java

@@ -505,11 +505,13 @@ public class SubmitServiceImpl implements SubmitService {
             if (1252 == shopId) {
                 secondHandOrderFlag = true;
             }
+            // 运费方式为空: 赠品 包邮
+            postageFlag = null == postageFlag ? 0 : postageFlag;
             log.info("postageFlag*****************" + postageFlag);
             // 运费
             Double postage = 0d;
             // 在 运费类型为有运费时 运费生效
-            if (1 == postageFlag) {
+            if (null != postageFlag && 1 == postageFlag) {
                 postage = Double.parseDouble(postageString);
             }
             // 供应商名称