diff --git a/business/jxstore/yonghui/yonghui.go b/business/jxstore/yonghui/yonghui.go index b5d3b8c2e..536c12c77 100644 --- a/business/jxstore/yonghui/yonghui.go +++ b/business/jxstore/yonghui/yonghui.go @@ -17,6 +17,7 @@ import ( "git.rosy.net.cn/jx-callback/business/jxutils/jxcontext" "git.rosy.net.cn/jx-callback/business/jxutils/tasksch" "git.rosy.net.cn/jx-callback/business/model/dao" + "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-callback/globals/api" @@ -180,7 +181,6 @@ func LoadExcelBinByYongHui(ctx *jxcontext.Context, reader io.Reader, isAsync boo costPrice = skuMap[spuCode] } // if errMsg == "" { - errMsg += fmt.Sprintf("更新商品:[%v],[%v],[%v]", costPrice, skuMap[spuCode], spuCode) _, _, err = updateWeiMobGoods(costPrice, skuMap[spuCode], goodsDetail) // } } @@ -293,7 +293,7 @@ func updateWeiMobGoods(costPrice, salePrice float64, goodsDetail *weimobapi.Good SalePrice: salePrice, CostPrice: costPrice, SkuID: skuListInfo.SkuID, - EditStockNum: skuListInfo.EditStockNum, + EditStockNum: 9999 - skuListInfo.EditStockNum, OuterSkuCode: skuListInfo.OuterSkuCode, B2CSku: b2CSku, } @@ -303,7 +303,7 @@ func updateWeiMobGoods(costPrice, salePrice float64, goodsDetail *weimobapi.Good SkuList: skuListParam, Title: goodsDetail.Title, IsMultiSku: goodsDetail.IsMultiSku, - IsPutAway: goodsDetail.IsPutAway, + IsPutAway: weimobapi.GoodsTypeNormal, GoodsImageURL: goodsDetail.GoodsImageURL, GoodsID: goodsDetail.GoodsID, CategoryID: categoryID,