Browse Source

Update SqlServerQueryBuilder

pull/14/MERGE
sunkaixuan 3 years ago
parent
commit
776dc3dd5d
  1. 7
      Src/Asp.Net/SqlSugar/Realization/SqlServer/SqlBuilder/SqlServerQueryBuilder.cs

7
Src/Asp.Net/SqlSugar/Realization/SqlServer/SqlBuilder/SqlServerQueryBuilder.cs

@ -78,9 +78,14 @@ namespace SqlSugar
if (this.OrderByValue.IsNullOrEmpty())
{
result += " ORDER BY GETDATE() ";
if(this.OldSql.HasValue())
if (this.OldSql.HasValue())
this.OldSql += " ORDER BY GETDATE() ";
}
else
{
if (this.OldSql.HasValue())
this.OldSql += (" "+this.GetOrderByString);
}
result += this.Offset;
if (this.OldSql.HasValue())

Loading…
Cancel
Save