mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user