diff --git a/business/partner/purchase/tao_vegetable/store_sku2.go b/business/partner/purchase/tao_vegetable/store_sku2.go index d701a7745..0abf08058 100644 --- a/business/partner/purchase/tao_vegetable/store_sku2.go +++ b/business/partner/purchase/tao_vegetable/store_sku2.go @@ -124,7 +124,7 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in Leaf: utils.Bool2Point(false), }} if storeCat.ParentID != model.NO { - createCategory.Param.ParentCode = utils.String2Pointer(utils.Int2Str(storeCat.ParentID)) + createCategory.Param.ParentCode = utils.String2Pointer(utils.Int64ToStr(storeCat.TaoCategoryID)) } skuCode, err := api.AddStoreCategoryInfo(createCategory) @@ -143,7 +143,7 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in Leaf: utils.Bool2Point(false), }} if storeCat.ParentID != model.NO { - createCategoryParam.Param.ParentCode = utils.String2Pointer(utils.Int2Str(storeCat.ParentID)) + createCategoryParam.Param.ParentCode = utils.String2Pointer(utils.Int64ToStr(storeCat.TaoCategoryID)) } skuCode, err := api.AddStoreCategoryInfo(createCategoryParam)