From 48fc1dece615a42b9a19ff9162ca3bb7d27d30df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 18 Nov 2019 09:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BB=E5=8F=96=E6=B0=B8=E8=BE=89excel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/yonghui/yonghui.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,