@ -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
this.OldSql += (" "+this.GetOrderByString);
result += this.Offset;