This commit is contained in:
2025-09-15 21:15:23 +08:00
parent 6874f67c45
commit cfad2bce09
3 changed files with 33 additions and 25 deletions

View File

@@ -2002,11 +2002,9 @@ func (s *StatisticsApplicationServiceImpl) getWalletTransactionsByDateRange(ctx
return 0.0, nil
}
// getRechargeRecordsByDateRange 获取指定日期范围内的充值金额
// getRechargeRecordsByDateRange 获取指定日期范围内的充值金额(排除赠送)
func (s *StatisticsApplicationServiceImpl) getRechargeRecordsByDateRange(ctx context.Context, userID string, startDate, endDate time.Time) (float64, error) {
// 这里需要实现按日期范围查询充值金额的逻辑
// 暂时返回0实际实现需要扩展仓储接口或使用原生SQL查询
return 0.0, nil
return s.rechargeRecordRepo.GetTotalAmountByUserIdAndDateRange(ctx, userID, startDate, endDate)
}
// ================ 独立统计接口实现 ================