mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-25 04:27:14 +08:00
Update SqlServerQueryBuilder
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user