From d64a364e912bb0d34c3efabd1bdee9a2f6ec0878 Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期一, 24 三月 2025 14:06:24 +0800
Subject: [PATCH] fix:微信退款bug修复、新增获取渠道折扣接口

---
 LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs |   52 +++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 47 insertions(+), 5 deletions(-)

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
index 856ba52..63d1182 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
+++ b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
@@ -20,15 +20,18 @@
     public class LifePayController : AbpController
     {
         private readonly ILifePayService _lifePayService;
+        private readonly IStatisticsService _statisticsService;
         private readonly IWebClientInfoProvider _webClientInfoProvider;
         private readonly ILogger<LifePayController> _logger;
         public LifePayController(
               ILifePayService lifePayService,
+              IStatisticsService statisticsService,
               IWebClientInfoProvider webClientInfoProvider
             , ILogger<LifePayController> logger
               )
         {
             _lifePayService = lifePayService;
+            _statisticsService = statisticsService;
             _webClientInfoProvider = webClientInfoProvider;
             _logger = logger;
         }
@@ -43,7 +46,7 @@
         [AllowAnonymous]
         public async Task<TopStatisticsOutput> GetTopStatistics()
         {
-            return await _lifePayService.GetTopStatistics();
+            return await _statisticsService.GetTopStatistics();
         }
 
         /// <summary>
@@ -147,6 +150,18 @@
         }
 
         /// <summary>
+        /// 鑾峰彇娓犻亾鎶樻墸
+        /// </summary>
+        /// <returns></returns>
+        [HttpGet]
+        [AllowAnonymous]
+        [ChannelFilter]
+        public async Task<ChannelRateOutput> GetChannelRate(ChannelsBaseInput input)
+        {
+            return await _lifePayService.GetChannelRate(input);
+        }
+
+        /// <summary>
         /// 鑾峰彇鎵嬬画璐硅垂鐜�
         /// </summary>
         /// <returns></returns>
@@ -189,6 +204,17 @@
         public async Task<PageOutput<LifePayOrderListOutput>> GetLifePayOrderPage(QueryLifePayOrderListInput input)
         {
             return await _lifePayService.GetLifePayOrderPage(input);
+        }
+
+        /// <summary>
+        /// 鑾峰彇閫�娆捐鍗曞垎椤垫暟鎹�
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpPost]
+        public async Task<PageOutput<LifePayOrderListOutput>> GetLifePayRefundOrderPage(QueryLifePayRefundOrderListInput input)
+        {
+            return await _lifePayService.GetLifePayRefundOrderPage(input);
         }
 
         /// <summary>
@@ -359,17 +385,33 @@
                 var bytes = ExcelHelper.ListToByteForExcel(data, "xlsx");
                 return File(bytes, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "璁㈠崟绠$悊" + ".xlsx");
             }
-
             return Json(default);
         }
 
+        /// <summary>
+        /// 瀵煎嚭閫�娆捐鍗旹xcel
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpPost]
+        public async Task<ActionResult> GetLifePayRefudOrderPageExport(QueryLifePayRefundOrderListInput input)
+        {
+            var data = await _lifePayService.GetLifePayRefudOrderPageExport(input);
+            if (data.Any())
+            {
+                var bytes = ExcelHelper.ListToByteForExcel(data, "xlsx");
+                return File(bytes, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "閫�娆剧鐞�" + ".xlsx");
+            }
+            return Json(default);
+        }
+
+
         [HttpGet]
-        public async Task<ActionResult> GetBillErceiptExport(string orderNo)
+        public async Task<string> GetBillErceiptExport(string orderNo)
         {
             var data = await _lifePayService.GetBillErceiptExport(orderNo);
-           
 
-            return Json(default);
+            return data;
         }
 
         #endregion

--
Gitblit v1.9.1