From 6c866f17f43d6b672d03c9dd5bb0c60448be6c40 Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期一, 24 三月 2025 18:02:33 +0800
Subject: [PATCH] fix: bug

---
 LifePayment/LifePayment.Application/LifePay/LifePayService.cs |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs
index 06231b6..f67f67c 100644
--- a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs
+++ b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs
@@ -303,8 +303,8 @@
         var result = await (from a in _channelFilter.GetChannelLifePayOrderFilter(_lifePayOrderRepository)
         .Where(x => x.LifePayOrderStatus == LifePayOrderStatusEnum.寰呴��娆� || x.LifePayOrderStatus == LifePayOrderStatusEnum.宸查��娆� || x.LifePayOrderStatus == LifePayOrderStatusEnum.閫�娆句腑
         || x.LifePayRefundStatus > LifePayRefundStatusEnum.鏃犻渶閫�娆�)
-                                            .WhereIf(input.BeginFinishTime.HasValue, x => x.FinishTime >= input.BeginFinishTime)
-                                            .WhereIf(input.EndFinishTime.HasValue, x => x.FinishTime <= input.EndFinishTime)
+                                            .WhereIf(input.BeginRefundTime.HasValue, x => x.RefundTime >= input.BeginRefundTime)
+                                            .WhereIf(input.EndRefundTime.HasValue, x => x.RefundTime <= input.EndRefundTime)
                                             .WhereIf(input.BeginRefundApplyTime.HasValue, x => x.RefundApplyTime >= input.BeginRefundApplyTime)
                                             .WhereIf(input.LifePayType.HasValue, x => x.LifePayType == input.LifePayType)
                                             .WhereIf(input.EndRefundApplyTime.HasValue, x => x.RefundApplyTime <= input.EndRefundApplyTime)
@@ -850,8 +850,10 @@
             RechargeAmount = amount.RechargeAmount,
             ChannelId = channle.ChannlesNum,
             PlatformRate = platformRate.Rate,
+            PlatformDeductionAmount = amount.RechargeAmount * platformRate.Rate /100,
             ChannleRate = channle.ChannlesRate,
             ChannlesRakeRate = channle.ChannlesRakeRate,
+            //ChannlesRakePrice = amount.RechargeAmount * (channle.ChannlesRate - platformRate.Rate) / 100 * channle.ChannlesRakeRate / 100
         };
 
         await CreateLifePayOrder(orderInput);
@@ -1273,6 +1275,7 @@
         {
             case LifePayRefundStatusEnum.宸查��娆�:
                 order.LifePayOrderStatus = LifePayOrderStatusEnum.宸查��娆�;
+                order.ACOOLYStatus = ACOOLYStatusEnum.宸查��娆�;
                 break;
             case LifePayRefundStatusEnum.閫�娆句腑:
                 order.LifePayOrderStatus = LifePayOrderStatusEnum.閫�娆句腑;
@@ -1370,6 +1373,7 @@
                     order.LifePayOrderStatus = LifePayOrderStatusEnum.寰呴��娆�;
                     order.LifePayRefundStatus = LifePayRefundStatusEnum.寰呴��娆�;
                 }
+
                 break;
             case LifePayTypeEnum.AliPay:
                 var aliRefundResult = await AliTradeRefund(new AlipayTradeRefundRequest() { OutTradeNo = order.OrderNo, RefundAmount = Convert.ToInt32(input.RefundPrice * 100).ToString() });
@@ -1377,7 +1381,9 @@
                 {
                     throw new UserFriendlyException("閫�娆惧け璐�");
                 }
+
                 order.LifePayOrderStatus = LifePayOrderStatusEnum.宸查��娆�;
+                order.LifePayRefundStatus = LifePayRefundStatusEnum.宸查��娆�;
                 break;
             default: throw new UserFriendlyException("閫�娆惧け璐�");
         }

--
Gitblit v1.9.1