mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update mysql distinct bug
This commit is contained in:
parent
56a27525c0
commit
bc1a4eb49e
@ -115,7 +115,7 @@ namespace SqlSugar
|
||||
}
|
||||
public override string ToCountSql(string sql)
|
||||
{
|
||||
if (this.GroupByValue.HasValue())
|
||||
if (this.GroupByValue.HasValue()||this.IsDistinct)
|
||||
{
|
||||
return base.ToCountSql(sql);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user