库存默认9999把
This commit is contained in:
@@ -16,10 +16,6 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/globals/api"
|
"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) {
|
func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, vendorStoreID string, storeSkuList []*dao.StoreSkuSyncInfo) (failedList []*partner.StoreSkuInfoWithErr, err error) {
|
||||||
storeSku := storeSkuList[0]
|
storeSku := storeSkuList[0]
|
||||||
buildYbConfigs(storeID)
|
buildYbConfigs(storeID)
|
||||||
@@ -246,7 +242,7 @@ func buildProductInfoParam(storeSku *dao.StoreSkuSyncInfo) (productInfoParam *yi
|
|||||||
)
|
)
|
||||||
productInfoParam = &yinbaoapi.ProductInfoParam{}
|
productInfoParam = &yinbaoapi.ProductInfoParam{}
|
||||||
productInfo := &yinbaoapi.ProductInfo{
|
productInfo := &yinbaoapi.ProductInfo{
|
||||||
Stock: &stock,
|
Stock: utils.Float64ToPointer(utils.Str2Float64(utils.Int2Str(model.MaxStoreSkuStockQty))),
|
||||||
Name: storeSku.SkuName,
|
Name: storeSku.SkuName,
|
||||||
Barcode: utils.Int2Str(storeSku.SkuID),
|
Barcode: utils.Int2Str(storeSku.SkuID),
|
||||||
BuyPrice: &buyPrice,
|
BuyPrice: &buyPrice,
|
||||||
|
|||||||
Reference in New Issue
Block a user