diff --git a/business/partner/purchase/tao_vegetable/store_sku2.go b/business/partner/purchase/tao_vegetable/store_sku2.go index a8b0c80d6..bffb7c8a2 100644 --- a/business/partner/purchase/tao_vegetable/store_sku2.go +++ b/business/partner/purchase/tao_vegetable/store_sku2.go @@ -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)