This commit is contained in:
邹宗楠
2024-12-04 14:31:50 +08:00
parent a4d92205fd
commit 21d56935b4

View File

@@ -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)
}