Update SqlServerQueryBuilder

This commit is contained in:
sunkaixuan
2022-04-07 11:32:00 +08:00
parent 0715cfba40
commit 776dc3dd5d

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() ";
if (this.OldSql.HasValue())
this.OldSql += " ORDER BY GETDATE() ";
}
else
{
if (this.OldSql.HasValue())
this.OldSql += (" "+this.GetOrderByString);
}
result += this.Offset;