This commit is contained in:
邹宗楠
2022-07-01 16:10:23 +08:00
parent b6902484ae
commit c446c73ab8

View File

@@ -3479,7 +3479,7 @@ func AddStoreCategoryMap(ctx *jxcontext.Context, storeCategoryMap *model.StoreCa
var (
db = dao.GetDB()
)
if storeCategoryMap.Level != 1 {
if storeCategoryMap.Level == 1 {
storeCatMaps, _ := dao.GetStoreCategoryMap(db, -1, 0, storeCategoryMap.StoreID, storeCategoryMap.CategoryID)
if len(storeCatMaps) > 0 {
return nil, fmt.Errorf("已存在绑定的京西分类,分类名:[%v]", storeCatMaps[0].StoreCategoryName)