Synchronization code

This commit is contained in:
sunkaixuan 2023-05-19 16:07:16 +08:00
parent 9e82a400a4
commit fc0c75a70c

View File

@ -686,7 +686,7 @@ namespace SqlSugar
{
return result;
}
if (!string.IsNullOrEmpty(OrderByValue)&&this.IsSqlQuery&&this.OldSql.HasValue() && (Skip == null && Take == null) && (this.WhereInfos == null || this.WhereInfos.Count == 0))
if (string.IsNullOrEmpty(OrderByValue)&&this.IsSqlQuery&&this.OldSql.HasValue() && (Skip == null && Take == null) && (this.WhereInfos == null || this.WhereInfos.Count == 0))
{
return this.OldSql;
}