重构账单查询sql
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 26s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 26s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
This commit is contained in:
@@ -12,7 +12,7 @@ public interface IBudgetStatsService
|
||||
public class BudgetStatsService(
|
||||
IBudgetRepository budgetRepository,
|
||||
IBudgetArchiveRepository budgetArchiveRepository,
|
||||
ITransactionRecordRepository transactionRecordRepository,
|
||||
ITransactionStatisticsService transactionStatisticsService,
|
||||
IDateTimeProvider dateTimeProvider,
|
||||
ILogger<BudgetStatsService> logger
|
||||
) : IBudgetStatsService
|
||||
@@ -118,7 +118,7 @@ public class BudgetStatsService(
|
||||
|
||||
// 获取趋势统计数据(仅用于图表展示)
|
||||
logger.LogDebug("开始获取交易趋势统计数据(用于图表)");
|
||||
var dailyStats = await transactionRecordRepository.GetFilteredTrendStatisticsAsync(
|
||||
var dailyStats = await transactionStatisticsService.GetFilteredTrendStatisticsAsync(
|
||||
startDate,
|
||||
endDate,
|
||||
transactionType,
|
||||
@@ -419,7 +419,7 @@ public class BudgetStatsService(
|
||||
|
||||
// 获取趋势统计数据(仅用于图表展示)
|
||||
logger.LogDebug("开始获取交易趋势统计数据(用于图表)");
|
||||
var dailyStats = await transactionRecordRepository.GetFilteredTrendStatisticsAsync(
|
||||
var dailyStats = await transactionStatisticsService.GetFilteredTrendStatisticsAsync(
|
||||
startDate,
|
||||
endDate,
|
||||
transactionType,
|
||||
|
||||
Reference in New Issue
Block a user