Synchronization code

This commit is contained in:
sunkaixuan 2023-06-12 15:56:50 +08:00
parent d583fd8352
commit 1b27123e6a

View File

@ -104,6 +104,10 @@ namespace SqlSugar
this.OldSql += this.Offset;
}
result = GetSqlQuerySql(result);
if (isFirst && IsDistinct)
{
result = result.Replace("TOP 1 DISTINCT", "TOP 1 ");
}
return result;
}