From f2998f5f2743ea165cda98ab805c97a992cae34f Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期二, 25 三月 2025 13:54:23 +0800
Subject: [PATCH] fix:导出bug修复

---
 LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
index 845b691..3758621 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>
@@ -144,6 +147,17 @@
         public async Task<List<LifePayRateListOutput>> GetRate()
         {
             return await _lifePayService.GetRate();
+        }
+
+        /// <summary>
+        /// 鑾峰彇娓犻亾鎶樻墸
+        /// </summary>
+        /// <returns></returns>
+        [HttpPost]
+        [AllowAnonymous]
+        public async Task<ChannelRateOutput> GetChannelRate(ChannelsBaseInput input)
+        {
+            return await _lifePayService.GetChannelRate(input);
         }
 
         /// <summary>
@@ -373,6 +387,24 @@
             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<string> GetBillErceiptExport(string orderNo)
         {

--
Gitblit v1.9.1