mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Update distinct
This commit is contained in:
parent
b79576c61c
commit
10721cb91f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user