This commit is contained in:
邹宗楠
2023-06-30 17:18:47 +08:00
parent 3ac0f6d1c8
commit 91abea3e0e

View File

@@ -125,6 +125,7 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
}}
if storeCat.ParentID != model.NO {
createCategory.Param.ParentCode = utils.String2Pointer(storeCat.ParentVendorCatID)
createCategory.Param.Leaf = utils.Bool2Point(true)
}
skuCode, err := api.AddStoreCategoryInfo(createCategory)
@@ -144,6 +145,7 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
}}
if storeCat.ParentID != model.NO {
createCategoryParam.Param.ParentCode = utils.String2Pointer(storeCat.ParentVendorCatID)
createCategoryParam.Param.Leaf = utils.Bool2Point(true)
}
skuCode, err := api.AddStoreCategoryInfo(createCategoryParam)