From 731b7a71ef441daee5439b77e4858c878a7ed673 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期一, 09 六月 2025 10:29:52 +0800 Subject: [PATCH] pref:推广员列表新增搜索条件 --- LifePayment/LifePayment.Application/LifePay/LifePayService.cs | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs index dbbcb41..0aef80f 100644 --- a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs +++ b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs @@ -1376,12 +1376,12 @@ var order = await _lifePayOrderRepository.Where(x => x.OrderNo == orderNo).FirstOrDefaultAsync(); CheckExtensions.IfTrueThrowUserFriendlyException(order == null, "璁㈠崟涓嶅瓨鍦�"); - if (order.LifePayOrderStatus == LifePayOrderStatusEnum.宸插畬鎴�) - { - return; - } + //if (order.LifePayOrderStatus == LifePayOrderStatusEnum.宸插畬鎴�) + //{ + // return; + //} - //order.PlatformDeductionAmount = payAmount; + order.ActualReceivedAmount = actualParValue; if (acoolyOrderNo.IsNotNullOrEmpty()) { @@ -1404,6 +1404,8 @@ || order.LifePayOrderStatus == LifePayOrderStatusEnum.宸查��娆�) { order.FinishTime = DateTime.Now; + order.PlatformDeductionAmount = order.ActualReceivedAmount * order.PlatformRate / 100; + order.RefundPrice = Math.Round((1 - ((order.ActualReceivedAmount ?? 0) / (order.RechargeAmount ?? 0))) * (order.PayAmount ?? 0), 2); } await _lifePayOrderRepository.UpdateAsync(order); -- Gitblit v1.9.1