fix rank
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
// ================ 独立统计接口实现 ================
|
||||
|
||||
Reference in New Issue
Block a user