mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 13:47:59 +08:00
Synchronization code
This commit is contained in:
parent
94b37c8357
commit
2ff0ab993d
@ -48,6 +48,11 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
base.AppendFilter();
|
base.AppendFilter();
|
||||||
string oldOrderValue = this.OrderByValue;
|
string oldOrderValue = this.OrderByValue;
|
||||||
|
var isNullOrderValue = Skip == 0 && Take == 1 && oldOrderValue == "ORDER BY NOW() ";
|
||||||
|
if (isNullOrderValue)
|
||||||
|
{
|
||||||
|
this.OrderByValue = null;
|
||||||
|
}
|
||||||
string result = null;
|
string result = null;
|
||||||
sql = new StringBuilder();
|
sql = new StringBuilder();
|
||||||
sql.AppendFormat(SqlTemplate, GetSelectValue, GetTableNameString, GetWhereValueString, GetGroupByString + HavingInfos, (Skip != null || Take != null) ? null : GetOrderByString);
|
sql.AppendFormat(SqlTemplate, GetSelectValue, GetTableNameString, GetWhereValueString, GetGroupByString + HavingInfos, (Skip != null || Take != null) ? null : GetOrderByString);
|
||||||
|
Loading…
Reference in New Issue
Block a user