mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-25 04:27:14 +08:00
Update SqlQueryable(sql) offsetpage bug
This commit is contained in:
@@ -78,8 +78,13 @@ namespace SqlSugar
|
|||||||
if (this.OrderByValue.IsNullOrEmpty())
|
if (this.OrderByValue.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
result += " ORDER BY GETDATE() ";
|
result += " ORDER BY GETDATE() ";
|
||||||
|
if(this.OldSql.HasValue())
|
||||||
|
this.OldSql += " ORDER BY GETDATE() ";
|
||||||
}
|
}
|
||||||
result += this.Offset;
|
result += this.Offset;
|
||||||
|
|
||||||
|
if (this.OldSql.HasValue())
|
||||||
|
this.OldSql += this.Offset;
|
||||||
}
|
}
|
||||||
result = GetSqlQuerySql(result);
|
result = GetSqlQuerySql(result);
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user