From 18325eda17439bdd76f3b7e3f39cfae312738b2b Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期一, 31 三月 2025 06:59:13 +0800
Subject: [PATCH] fix:提交

---
 LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
index 434d829..bdd5ba4 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
+++ b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
@@ -53,9 +53,9 @@
         /// <returns></returns>
         [HttpGet]
         [AllowAnonymous]
-        public async Task<TopStatisticsOutput> GetTopStatistics()
+        public async Task<TopStatisticsOutput> GetTopStatistics(string channleId = "")
         {
-            return await _statisticsService.GetTopStatistics();
+            return await _statisticsService.GetTopStatistics(channleId);
         }
 
         /// <summary>
@@ -495,7 +495,16 @@
         [AllowAnonymous]
         public async Task<WxPayDomesticRefundsQueryReponse> WxPayDomesticRefundsQuery(string outTradeNo)
         {
-            return await _lifePayService.WxPayDomesticRefundsQuery(outTradeNo);
+            var res = await _lifePayService.WxPayDomesticRefundsQuery(outTradeNo);
+            await _lifePayOrderService.AddLifePayExpensesReceipts(new AddLifePayExpensesReceiptsInput()
+            {
+                OrderNo = res.OutTradeNo,
+                OutOrderNo = res.TransactionId,
+                LifePayType = LifePayTypeEnum.WxPay,
+                ExpensesReceiptsType = ExpensesReceiptsTypeEnum.Expenses,
+                Amount = Convert.ToDecimal(res.Amount.Total)
+            });
+            return res;
         }
 
         /// <summary>
@@ -519,6 +528,13 @@
             return res;
         }
 
+        [HttpGet]
+        [AllowAnonymous]
+        public async Task GetAllLifePayExpensesReceipts()
+        {
+            await _lifePayOrderService.GetAllLifePayExpensesReceipts();
+        }
+
         #endregion
 
         #region 鎿嶄綔

--
Gitblit v1.9.1