根据excle创建标品

This commit is contained in:
苏尹岚
2020-04-09 18:19:47 +08:00
parent 87c971d3f8
commit 4f79af1e54
2 changed files with 3 additions and 0 deletions

View File

@@ -1947,6 +1947,8 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader) (hint stri
} else {
skuName.Price = v.Price * 100
}
skuName.Name = productInfo.Name
skuName.Unit = productInfo.Unit
skuName.Skus[0].SpecQuality = productInfo.SpecQuality
skuName.Skus[0].SpecUnit = productInfo.SpecUnit
skuName.Skus[0].Weight = int(utils.Str2Int64(utils.Float64ToStr(float64(productInfo.Weight))))

View File

@@ -63,6 +63,7 @@ var (
"片",
"支",
"杯",
"桶",
}
SkuNamePrefixNames = []string{
"新鲜",