|
|
@@ -733,7 +733,7 @@ public class PlatformBusinessSectionServiceImpl extends ServiceImpl<StoreDiction
|
|
|
int level, String hidden, List<String> errorMessages, int rowIndex) {
|
|
|
try {
|
|
|
// 查找或创建一级分类
|
|
|
- StoreDictionary firstLevel = findOrCreateLevel(firstLevelName, 0, 0, hidden);
|
|
|
+ StoreDictionary firstLevel = findOrCreateLevel(firstLevelName, null, 0, hidden);
|
|
|
if (firstLevel == null) {
|
|
|
throw new IllegalArgumentException("创建一级分类失败");
|
|
|
}
|
|
|
@@ -798,7 +798,7 @@ public class PlatformBusinessSectionServiceImpl extends ServiceImpl<StoreDiction
|
|
|
} else if (expectedLevel == 2) {
|
|
|
newDict.setTypeDetail("分类");
|
|
|
}
|
|
|
- newDict.setParentId(parentId == null ? 0 : parentId);
|
|
|
+ newDict.setParentId(parentId == null ? null : parentId);
|
|
|
newDict.setHidden(StringUtils.isNotBlank(hidden) && hidden.equals("隐藏") ? 1 : 0);
|
|
|
newDict.setDeleteFlag(0);
|
|
|
newDict.setCreatedTime(new Date());
|