1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user