银豹查询条码

This commit is contained in:
苏尹岚
2020-03-26 11:48:00 +08:00
parent 9ff9987efd
commit b23e5e1fc1

View File

@@ -124,6 +124,7 @@ type tGetStoresSkusInfo struct {
PayPercentage int `json:"-"` PayPercentage int `json:"-"`
dao.StoreSkuExt dao.StoreSkuExt
RealMidUnitPrice int `json:"realMidUnitPrice"` //真实的该商品的全国中位价 RealMidUnitPrice int `json:"realMidUnitPrice"` //真实的该商品的全国中位价
YbSkuName string
} }
type SheetParam struct { type SheetParam struct {
@@ -540,8 +541,6 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, isFocus, i
} }
var tmpList []*tGetStoresSkusInfo var tmpList []*tGetStoresSkusInfo
beginTime := time.Now() beginTime := time.Now()
fmt.Println(sql)
fmt.Println(sqlParams)
if err = dao.GetRows(db, &tmpList, sql, sqlParams...); err != nil { if err = dao.GetRows(db, &tmpList, sql, sqlParams...); err != nil {
dao.Rollback(db) dao.Rollback(db)
return nil, err return nil, err
@@ -563,6 +562,7 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, isFocus, i
UnitPrice: v.UnitPrice, UnitPrice: v.UnitPrice,
PayPercentage: v.PayPercentage, PayPercentage: v.PayPercentage,
RealMidUnitPrice: v.RealMidUnitPrice, RealMidUnitPrice: v.RealMidUnitPrice,
YbSkuName: v.YbSkuName,
} }
if !isBySku { if !isBySku {
storeNameMap[index] = storeName storeNameMap[index] = storeName