From 3b32b7055293df1ee7f0170f85820f08c8228b43 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 27 六月 2025 10:42:58 +0800 Subject: [PATCH] fix: 修改微信支付使用优惠券的bug --- LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs index 4bb201c..b93f77b 100644 --- a/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs +++ b/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs @@ -78,8 +78,8 @@ }) .GetPageResult(input.PageModel); - var totalDeductionAmount = await _lifePayConsumption.SumAsync(x => x.DeductionAmount); - var totalFrozenAmount = await _lifePayConsumption.SumAsync(x => x.FrozenAmount); + var totalDeductionAmount = await _lifePayConsumption.Where(it => it.ACOOLYStatus == ACOOLYStatusEnum.宸插畬鎴� || it.ACOOLYStatus == ACOOLYStatusEnum.閮ㄥ垎鍏呭�兼垚鍔�).SumAsync(x => x.DeductionAmount); + var totalFrozenAmount = await _lifePayConsumption.Where(it => it.ACOOLYStatus == ACOOLYStatusEnum.鍏呭�间腑 || it.ACOOLYStatus == ACOOLYStatusEnum.鍏呭�煎け璐�).SumAsync(x => x.FrozenAmount); LifePayConsumptionStatistics objectData = new LifePayConsumptionStatistics(); objectData.TotalDeductionAmount = totalDeductionAmount; objectData.TotalFrozenAmount = totalFrozenAmount ?? 0; @@ -215,6 +215,7 @@ s.ChannlesRakePriceStr = s.ChannlesRakePrice.ToString("F2"); s.FinishTimeStr = s.FinishTime.HasValue ? s.FinishTime.Value.ToString(LifePaymentConstant.DateTimeFormatStr.yyyyMMddHHmmss) : ""; }); + CheckExtensions.IfTrueThrowUserFriendlyException(result.IsNullOrEmpty(), "鏆傛棤鏁版嵁瀵煎嚭"); return result; } -- Gitblit v1.9.1