FengChaoYu 4 viikkoa sitten
vanhempi
commit
ee8127b8bd

+ 3 - 0
mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserLevelLogic.java

@@ -229,6 +229,9 @@ public class UserLevelLogic {
                 if (StringUtils.isBlank(userLevelGoods.getGoodsName())) {
                     throw new RemoteServiceException("第" + index + "行, 商品名称不能为空");
                 }
+                if (StringUtils.isBlank(userLevelGoods.getGoodsSpecId())) {
+                    throw new RemoteServiceException("第" + index + "行, 商品规格id不能为空");
+                }
                 if (StringUtils.isBlank(userLevelGoods.getGoodsSpecCode())) {
                     throw new RemoteServiceException("第" + index + "行, 物料编号不能为空");
                 }