mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 10:49:20 +08:00
Update SqlServerQueryBuilder
This commit is contained in:
@@ -78,8 +78,13 @@ namespace SqlSugar
|
|||||||
if (this.OrderByValue.IsNullOrEmpty())
|
if (this.OrderByValue.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
result += " ORDER BY GETDATE() ";
|
result += " ORDER BY GETDATE() ";
|
||||||
if(this.OldSql.HasValue())
|
if (this.OldSql.HasValue())
|
||||||
this.OldSql += " ORDER BY GETDATE() ";
|
this.OldSql += " ORDER BY GETDATE() ";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (this.OldSql.HasValue())
|
||||||
|
this.OldSql += (" "+this.GetOrderByString);
|
||||||
}
|
}
|
||||||
result += this.Offset;
|
result += this.Offset;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user