This commit is contained in:
aozhiwei 2024-06-28 10:45:16 +08:00
parent a038d666cb
commit b41d63fcbb

View File

@ -370,10 +370,10 @@ func (this *dbPool) StreamPageQuery(
if filter != nil {
finalySql += filter.GenSql()
}
finalySql += fmt.Sprintf(" LIMIT %d ", pageSize + 1)
if orderBy != "" {
finalySql += " " + orderBy + " "
}
finalySql += fmt.Sprintf(" LIMIT %d ", pageSize + 1)
GetSysLog().Info("finalySql:%s", finalySql)
this.queryOne(
dataSource,