|
@@ -442,8 +442,9 @@ func EditEdbClassify(classifyId, parentId int, classifyName, lang string, sysUse
|
|
|
err = e
|
|
|
return
|
|
|
}
|
|
|
- if item.Level != parentClassifyInfo.Level - 1 {
|
|
|
+ if item.Level != parentClassifyInfo.Level + 1 {
|
|
|
err = errors.New("父级分类层级异常")
|
|
|
+ return
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -458,10 +459,10 @@ func EditEdbClassify(classifyId, parentId int, classifyName, lang string, sysUse
|
|
|
|
|
|
switch lang {
|
|
|
case utils.EnLangVersion:
|
|
|
- // 名字相同,那么就直接返回
|
|
|
- if item.ClassifyNameEn == classifyName {
|
|
|
- return
|
|
|
- }
|
|
|
+ //// 名字相同,那么就直接返回
|
|
|
+ //if item.ClassifyNameEn == classifyName {
|
|
|
+ // return
|
|
|
+ //}
|
|
|
|
|
|
// 判断名称是否已存在
|
|
|
count, tmpErr := data_manage.GetEdbClassifyEnCount(classifyName, item.ParentId, item.ClassifyType)
|
|
@@ -481,10 +482,10 @@ func EditEdbClassify(classifyId, parentId int, classifyName, lang string, sysUse
|
|
|
item.LastModifyUserRealName = sysUser.RealName
|
|
|
updateCols = append(updateCols, "ClassifyNameEn", "LastModifyUserId", "LastModifyUserRealName")
|
|
|
default:
|
|
|
- // 名字相同,那么就直接返回
|
|
|
- if item.ClassifyName == classifyName {
|
|
|
- return
|
|
|
- }
|
|
|
+ //// 名字相同,那么就直接返回
|
|
|
+ //if item.ClassifyName == classifyName {
|
|
|
+ // return
|
|
|
+ //}
|
|
|
|
|
|
// 判断名称是否已存在
|
|
|
count, tmpErr := data_manage.GetEdbClassifyCount(classifyName, item.ParentId, item.ClassifyType)
|