diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index c952b8b0a..8a7fc1d98 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -528,10 +528,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag priceList = priceList[:] priceList = rList2 for _, v := range priceList { - price, _ := GetSkuNamePrice(db, v.SkuID, int64(v.Price)) - v.Price = int(price) + price, _ := GetSkuNamePrice(db, v.SkuID, int64(v.JxPrice)) + v.JxPrice = int(price) } - fmt.Println(utils.Format4Output(priceList, false)) } } task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx, diff --git a/business/partner/partner_store_sku.go b/business/partner/partner_store_sku.go index f74fae965..a0ac1f956 100644 --- a/business/partner/partner_store_sku.go +++ b/business/partner/partner_store_sku.go @@ -49,7 +49,7 @@ type StoreSkuInfo struct { ActPrice int64 `json:"actPrice,omitempty"` VendorActID string `json:"vendorActID,omitempty"` IsSpecialty int `json:"isSpecialty,omitempty"` - Price int `json:"jxPrice,omitempty"` + JxPrice int `json:"jxPrice,omitempty"` } type StoreSkuInfoWithErr struct { diff --git a/business/partner/purchase/yb/store_sku.go b/business/partner/purchase/yb/store_sku.go index 54a857b36..7783ddfde 100644 --- a/business/partner/purchase/yb/store_sku.go +++ b/business/partner/purchase/yb/store_sku.go @@ -138,7 +138,7 @@ func (p *PurchaseHandler) UpdateStoreSkusPrice(ctx *jxcontext.Context, vendorOrg var productInfo = &yinbaoapi.ProductInfo{ UID: utils.Str2Int64(v.VendorSkuID), SellPrice: utils.Float64ToPointer(jxutils.IntPrice2Standard(v.VendorPrice)), - BuyPrice: utils.Float64ToPointer(jxutils.IntPrice2Standard(int64(v.Price))), + BuyPrice: utils.Float64ToPointer(jxutils.IntPrice2Standard(int64(v.JxPrice))), } err = api.YinBaoAPI.UpdateProductInfo(productInfo) if err != nil {