Skip to content

Commit

Permalink
[fix]修正字段缓存分组查询丢失groupby的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jan 2, 2025
1 parent e8ceea7 commit 45a8361
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion XCode/Cache/FieldCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ private void Init()
}
}

private IList<TEntity> Search() => Entity<TEntity>.FindAll(Where?.GroupBy(_field), OrderBy, _Unique.Count("group_count")! & _field, 0, MaxRows);
private IList<TEntity> Search()
{
Expression? exp = Where?.GroupBy(_field);
exp ??= _field.GroupBy();
return Entity<TEntity>.FindAll(exp, OrderBy, _Unique.Count("group_count")! & _field, 0, MaxRows);
}

private IDictionary<String, String> GetAll()
{
Expand Down

0 comments on commit 45a8361

Please sign in to comment.