@@ -72,7 +72,7 @@ public class CmsGoodsDonSpecServiceImpl extends ServiceImpl<GoodsDonSpecMapper,
}
// 属性最大id
- Integer maxId = loveSpec.getMaxId();
+ Integer maxId = Optional.ofNullable(loveSpec.getMaxId()).orElse(1);
// 统计总属性数
Integer total = 0;
// 判断id是否有重复