Forráskód Böngészése

计算运费bugfix

chao 3 éve
szülő
commit
0b0e813c88

+ 1 - 1
src/main/java/com/caimei365/order/components/ProductService.java

@@ -180,7 +180,7 @@ public class ProductService {
             for (ProductPostageVo postageVo : postageFlagList){
             for (ProductPostageVo postageVo : postageFlagList){
                 if (null != postageVo) {
                 if (null != postageVo) {
                     // 是否是仪器 或 设置了运费到付
                     // 是否是仪器 或 设置了运费到付
-                    boolean flag = (2 == postageVo.getCommodityType() || (null != postageVo.getPostageFlag() && -1==postageVo.getPostageFlag()));
+                    boolean flag = (null == postageVo.getCommodityType() || 2 == postageVo.getCommodityType() || (null != postageVo.getPostageFlag() && -1==postageVo.getPostageFlag()));
                     if (flag) {
                     if (flag) {
                         // 到付
                         // 到付
                         postageMap.put("postageFlag", -1);
                         postageMap.put("postageFlag", -1);