同步银豹创建商品,商品名?
This commit is contained in:
@@ -416,14 +416,14 @@ func loopPages(parameterType, parameterValue string, skuNameList []*partner.SkuN
|
|||||||
|
|
||||||
func buildProductInfoParam(storeSku *dao.StoreSkuSyncInfo) (productInfoParam *yinbaoapi.ProductInfoParam) {
|
func buildProductInfoParam(storeSku *dao.StoreSkuSyncInfo) (productInfoParam *yinbaoapi.ProductInfoParam) {
|
||||||
var (
|
var (
|
||||||
buyPrice float64 = utils.Str2Float64(utils.Int64ToStr(storeSku.Price)) / 100
|
buyPrice float64 = utils.Str2Float64(utils.Int64ToStr(storeSku.Price)) / 100
|
||||||
sellPrice float64 = utils.Str2Float64(utils.Int64ToStr(storeSku.VendorPrice)) / 100
|
sellPrice float64 = utils.Str2Float64(utils.Int64ToStr(storeSku.VendorPrice)) / 100
|
||||||
_, name, _, _, _, _ = jxutils.SplitSkuName(storeSku.SkuName)
|
// _, name, _, _, _, _ = jxutils.SplitSkuName()
|
||||||
)
|
)
|
||||||
productInfoParam = &yinbaoapi.ProductInfoParam{}
|
productInfoParam = &yinbaoapi.ProductInfoParam{}
|
||||||
productInfo := &yinbaoapi.ProductInfo{
|
productInfo := &yinbaoapi.ProductInfo{
|
||||||
Stock: utils.Float64ToPointer(utils.Str2Float64(utils.Int2Str(model.MaxStoreSkuStockQty))),
|
Stock: utils.Float64ToPointer(utils.Str2Float64(utils.Int2Str(model.MaxStoreSkuStockQty))),
|
||||||
Name: name,
|
Name: storeSku.Name,
|
||||||
Barcode: storeSku.YbBarCode,
|
Barcode: storeSku.YbBarCode,
|
||||||
BuyPrice: &buyPrice,
|
BuyPrice: &buyPrice,
|
||||||
SellPrice: &sellPrice,
|
SellPrice: &sellPrice,
|
||||||
|
|||||||
Reference in New Issue
Block a user