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