This commit is contained in:
苏尹岚
2021-03-25 11:38:32 +08:00
parent 4c19bd32a0
commit ca8f2c8f9d
2 changed files with 29 additions and 0 deletions

View File

@@ -3177,6 +3177,10 @@ func GetStoreCategoryMap(ctx *jxcontext.Context, parentID, level int, storeID in
if err != nil {
return nil, err
}
//表示没有门店分类
if len(storeCatMaps) == 0 {
storeCatMaps, err = dao.GetCategoriesForStore(db, parentID, 0, nil)
}
return storeCatMaps, err
}