FengChaoYu il y a 8 mois
Parent
commit
7343200c04

+ 3 - 6
mall-server-api/src/main/java/com/gree/mall/manager/logic/material/base/WebsitGoodsLogic.java

@@ -434,18 +434,15 @@ public class WebsitGoodsLogic {
                 throw new RemoteServiceException("第" + (i+1) + "行, 销售单位不能为空");
             }
             if (Objects.isNull(row.get(5))) {
-                throw new RemoteServiceException("第" + (i+1) + "行, 销售单位不能为空");
-            }
-            if (Objects.isNull(row.get(6))) {
                 throw new RemoteServiceException("第" + (i+1) + "行, 采购价格不能为空");
             }
-            if (Objects.isNull(row.get(7))) {
+            if (Objects.isNull(row.get(6))) {
                 throw new RemoteServiceException("第" + (i+1) + "行, 销售价格不能为空");
             }
-            if (Objects.isNull(row.get(8))) {
+            if (Objects.isNull(row.get(7))) {
                 throw new RemoteServiceException("第" + (i+1) + "行, 进价最小值不能为空");
             }
-            if (Objects.isNull(row.get(9))) {
+            if (Objects.isNull(row.get(8))) {
                 throw new RemoteServiceException("第" + (i+1) + "行, 进价最大值不能为空");
             }