1
This commit is contained in:
@@ -1173,11 +1173,14 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, upcs []str
|
|||||||
if isHighPrice || priceType != 0 {
|
if isHighPrice || priceType != 0 {
|
||||||
sql += " , t4.unit_price DESC LIMIT 99"
|
sql += " , t4.unit_price DESC LIMIT 99"
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("-----sql := %s", sql)
|
||||||
|
globals.SugarLogger.Debugf("-----sqlParams := %s", utils.Format4Output(sqlParams, false))
|
||||||
var tmpList []*tGetStoresSkusInfo
|
var tmpList []*tGetStoresSkusInfo
|
||||||
if err = dao.GetRowsTx(txDB, &tmpList, sql, sqlParams...); err != nil {
|
if err = dao.GetRowsTx(txDB, &tmpList, sql, sqlParams...); err != nil {
|
||||||
dao.Rollback(db, txDB)
|
dao.Rollback(db, txDB)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("-----tmpList := %s", utils.Format4Output(tmpList, false))
|
||||||
if isBySku {
|
if isBySku {
|
||||||
skuNamesInfo.TotalCount = dao.GetLastTotalRowCount2(db, txDB)
|
skuNamesInfo.TotalCount = dao.GetLastTotalRowCount2(db, txDB)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user