库存默认9999把

This commit is contained in:
苏尹岚
2020-03-24 11:35:39 +08:00
parent 0f45423997
commit c34d97dcfd

View File

@@ -16,10 +16,6 @@ import (
"git.rosy.net.cn/jx-callback/globals/api"
)
var (
stock float64 = 100
)
func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, vendorStoreID string, storeSkuList []*dao.StoreSkuSyncInfo) (failedList []*partner.StoreSkuInfoWithErr, err error) {
storeSku := storeSkuList[0]
buildYbConfigs(storeID)
@@ -246,7 +242,7 @@ func buildProductInfoParam(storeSku *dao.StoreSkuSyncInfo) (productInfoParam *yi
)
productInfoParam = &yinbaoapi.ProductInfoParam{}
productInfo := &yinbaoapi.ProductInfo{
Stock: &stock,
Stock: utils.Float64ToPointer(utils.Str2Float64(utils.Int2Str(model.MaxStoreSkuStockQty))),
Name: storeSku.SkuName,
Barcode: utils.Int2Str(storeSku.SkuID),
BuyPrice: &buyPrice,