From 91abea3e0e7008de7f73fbca4f60b209f7f6ec75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 30 Jun 2023 17:18:47 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tao_vegetable/store_sku2.go | 2 ++ 1 file changed, 2 insertions(+) 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)