From a0eb5755d04d3d672e6596d896cbb3ec9f6a562c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 14 Apr 2020 09:31:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AEexcel=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=A0=87=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sku.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index c31ee530c..7625d28ce 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -1816,7 +1816,7 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader) (hint stri specQuality = float32(utils.Str2Float64WithDefault(cell, 0)) } if k == 4 { - price = int(utils.Str2Float64WithDefault(cell, 0)) + price = int(utils.Str2Float64WithDefault(cell, 0) * 100) } } } @@ -1899,7 +1899,7 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader) (hint stri skuName.Price = int(utils.Str2Int64(result.Price) * 100) } } else { - skuName.Price = v.Price * 100 + skuName.Price = v.Price } if v.Unit != "" { if v.Unit == model.UnitNames[0] { @@ -1959,7 +1959,7 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader) (hint stri skuName.Price = int(utils.Str2Int64(result.Price) * 100) } } else { - skuName.Price = v.Price * 100 + skuName.Price = v.Price } skuName.Name = productInfo.Name skuName.Unit = productInfo.Unit