mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
(improvement)(chat) fix HeuristicViewResolver choosing view (#710)
Co-authored-by: jolunoluo
This commit is contained in:
@@ -122,7 +122,9 @@ public class HeuristicViewResolver implements ViewResolver {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
matchedViews.retainAll(agentViewIds);
|
||||
if (CollectionUtils.isNotEmpty(agentViewIds)) {
|
||||
matchedViews.retainAll(agentViewIds);
|
||||
}
|
||||
Map<Long, SemanticQuery> viewQueryModes = new HashMap<>();
|
||||
for (Long viewIds : matchedViews) {
|
||||
viewQueryModes.put(viewIds, null);
|
||||
|
||||
Reference in New Issue
Block a user