Update SqlQueryable(sql) offsetpage bug

This commit is contained in:
sunkaixuan 2022-04-07 10:42:52 +08:00
parent 4732d44b79
commit e32ac64207

View File

@ -78,8 +78,13 @@ namespace SqlSugar
if (this.OrderByValue.IsNullOrEmpty())
{
result += " ORDER BY GETDATE() ";
if(this.OldSql.HasValue())
this.OldSql += " ORDER BY GETDATE() ";
}
result += this.Offset;
if (this.OldSql.HasValue())
this.OldSql += this.Offset;
}
result = GetSqlQuerySql(result);
return result;