From d25aaa5701cb572c10f35225f1967aeb2a8a8516 Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期三, 02 四月 2025 16:40:38 +0800 Subject: [PATCH] fix:计算账户余额 --- LifePayment/LifePayment.Application/LifePay/StatisticsService.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LifePayment/LifePayment.Application/LifePay/StatisticsService.cs b/LifePayment/LifePayment.Application/LifePay/StatisticsService.cs index 6869c94..608a238 100644 --- a/LifePayment/LifePayment.Application/LifePay/StatisticsService.cs +++ b/LifePayment/LifePayment.Application/LifePay/StatisticsService.cs @@ -85,7 +85,7 @@ if (channleList.Count() == 0) { /// 璐︽埛浣欓 - var accountBalance = totalRechargeReceipts - await _lifePayOrderRepository.Where(x => x.CreationTime < today && x.PayStatus == LifePayStatusEnum.宸叉敮浠� + var accountBalance = totalRechargeReceipts - await _lifePayOrderRepository.Where(x => x.PayStatus == LifePayStatusEnum.宸叉敮浠� && (x.ACOOLYStatus == ACOOLYStatusEnum.鍏呭�兼垚鍔� || x.ACOOLYStatus == ACOOLYStatusEnum.宸插畬鎴� || x.ACOOLYStatus == ACOOLYStatusEnum.閮ㄥ垎鍏呭�兼垚鍔�)) .SumAsync(x => x.PayAmount); topStatisticsOutput.Amount = accountBalance ?? 0; @@ -112,12 +112,12 @@ if (channleList.Count() == 0) { /// 璐︽埛浣欓 - var accountBalance = totalRechargeReceipts - await _lifePayOrderRepository.Where(x => x.CreationTime < today && x.PayStatus == LifePayStatusEnum.宸叉敮浠� + var accountBalance = totalRechargeReceipts - await _lifePayOrderRepository.Where(x => x.PayStatus == LifePayStatusEnum.宸叉敮浠� && (x.ACOOLYStatus == ACOOLYStatusEnum.鍏呭�兼垚鍔� || x.ACOOLYStatus == ACOOLYStatusEnum.宸插畬鎴� || x.ACOOLYStatus == ACOOLYStatusEnum.閮ㄥ垎鍏呭�兼垚鍔�)) .SumAsync(x => x.PayAmount); topStatisticsOutput.Amount = accountBalance ?? 0; - } + return topStatisticsOutput; } } -- Gitblit v1.9.1