From a9c3a1bcec0879e5baaab78d843820da34edf80c Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Sat, 9 Aug 2025 23:38:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=B8=AD=20Token=20=E6=95=B0=E9=87=8F=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E5=B0=86=E8=AE=A1=E6=95=B0=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=B1=82=E5=92=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/UsageStatisticsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/UsageStatisticsService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/UsageStatisticsService.cs index fcb9cbd1..b96950bf 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/UsageStatisticsService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/UsageStatisticsService.cs @@ -45,7 +45,7 @@ public class UsageStatisticsService : ApplicationService, IUsageStatisticsServic .Select(g => new { Date = g.CreationTime.Date, - Tokens = SqlFunc.AggregateCount(g.TokenUsage.TotalTokenCount) + Tokens = SqlFunc.AggregateSum(g.TokenUsage.TotalTokenCount) }) .ToListAsync();