aa
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
"regexp"
|
||||
@@ -2157,7 +2158,7 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader, categoryID
|
||||
if specQuality != 0 {
|
||||
skuName.Skus[0].SpecQuality = specQuality
|
||||
if specUnit == model.SpecUnitNames[1] || specUnit == model.SpecUnitNames[2] {
|
||||
skuName.Skus[0].Weight = int(utils.Str2Int64(utils.Float64ToStr(float64(specQuality) * 1000)))
|
||||
skuName.Skus[0].Weight = int(utils.Str2Int64(utils.Float64ToStr(math.Floor(float64(specQuality) * 1000))))
|
||||
} else {
|
||||
skuName.Skus[0].Weight = utils.Float32ToInt(specQuality)
|
||||
}
|
||||
@@ -3143,8 +3144,6 @@ func GetSkuNamesNew(ctx *jxcontext.Context, keyword string, skuIDs, skuNameIDs [
|
||||
panic(r)
|
||||
}
|
||||
}()
|
||||
fmt.Println(sql)
|
||||
fmt.Println(sqlParams)
|
||||
if err = dao.GetRowsTx(txDB, &skuNamesInfo.SkuNames, sql, sqlParams...); err == nil {
|
||||
skuNamesInfo.TotalCount = dao.GetLastTotalRowCount2(db, txDB)
|
||||
dao.Commit(db, txDB)
|
||||
|
||||
Reference in New Issue
Block a user