添加自动创建分类

This commit is contained in:
邹宗楠
2023-03-21 15:20:47 +08:00
parent 4bbef41a0a
commit 5e2bca840d
13 changed files with 98 additions and 89 deletions

View File

@@ -336,3 +336,8 @@ func GetProductAuditList(vendorOrgCode string, page, pageSize int64) (map[string
}
return updateCategory, total
}
func (p *PurchaseHandler) GetSkuCategoryIdByName(vendorOrgCode, skuName string) (string, error) {
vendorCategoryId, err := getAPI(vendorOrgCode, 0, "").GetRecommendCategory(strings.Split(skuName, "|"))
return utils.Int64ToStr(vendorCategoryId), err
}