This commit is contained in:
邹宗楠
2024-11-26 17:49:33 +08:00
parent f2775269d9
commit da91dd66b5

View File

@@ -645,6 +645,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
sqlParams = append(sqlParams, pageSize, offset)
//mapLimit := false
txDB, _ := dao.Begin(db)
globals.SugarLogger.Debugf("---sql := %s", sql)
globals.SugarLogger.Debugf("---sql := %s", utils.Format4Output(sqlParams, false))
if err = dao.GetRowsTx(txDB, &storeList, sql, sqlParams...); err == nil {
retVal.Stores = storeList
retVal.TotalCount = dao.GetLastTotalRowCount2(db, txDB)