feat: 增强管理端工作台用户活跃榜能力
- 新增用户活跃榜接口、筛选与导出能力 - 支持按智能体过滤排行榜并补充前后端测试
This commit is contained in:
@@ -94,13 +94,15 @@ public interface ChatDashboardQueryService {
|
||||
* @param startDate 开始日期,包含当天
|
||||
* @param endDate 结束日期,不包含当天
|
||||
* @param tenantId 租户 ID,空表示全局
|
||||
* @param assistantId 智能体 ID,空表示全部
|
||||
* @param limit 返回条数
|
||||
* @return 活跃用户排行
|
||||
*/
|
||||
List<ChatActiveUserRank> queryActiveUserRanks(LocalDate startDate,
|
||||
LocalDate endDate,
|
||||
BigInteger tenantId,
|
||||
int limit);
|
||||
BigInteger assistantId,
|
||||
Integer limit);
|
||||
|
||||
/**
|
||||
* 当前分析库是否可用。
|
||||
|
||||
@@ -141,6 +141,7 @@ public class ChatDashboardQueryServiceImpl implements ChatDashboardQueryService
|
||||
* @param startDate 开始日期,包含当天
|
||||
* @param endDate 结束日期,不包含当天
|
||||
* @param tenantId 租户 ID,空表示全局
|
||||
* @param assistantId 智能体 ID,空表示全部
|
||||
* @param limit 返回条数
|
||||
* @return 活跃用户排行
|
||||
*/
|
||||
@@ -148,11 +149,12 @@ public class ChatDashboardQueryServiceImpl implements ChatDashboardQueryService
|
||||
public List<ChatActiveUserRank> queryActiveUserRanks(LocalDate startDate,
|
||||
LocalDate endDate,
|
||||
BigInteger tenantId,
|
||||
int limit) {
|
||||
BigInteger assistantId,
|
||||
Integer limit) {
|
||||
if (!available()) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return analyticalDBRepository.queryActiveUserRanks(startDate, endDate, tenantId, limit);
|
||||
return analyticalDBRepository.queryActiveUserRanks(startDate, endDate, tenantId, assistantId, limit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user