Synchronization code

This commit is contained in:
sunkaixuan
2023-12-27 13:53:59 +08:00
parent 10721cb91f
commit edf554c2e7

View File

@@ -113,7 +113,7 @@ namespace SqlSugar
{
this.SelectCacheKey = this.SelectCacheKey + string.Join("-", this.JoinQueryInfos.Select(it => it.TableName));
}
if (IsDistinct)
if (IsDistinct&&result?.TrimStart()?.StartsWith("distinct ")!=true)
{
result = "distinct "+result;
}