From 662d69d10cee5630cc5673a364a6dff407288f4b Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期一, 24 三月 2025 15:24:14 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/LifePaymentApi

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

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
index 78fcb0a..3758621 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
+++ b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
@@ -20,20 +20,34 @@
     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;
         }
 
         #region 鏌ヨ
+
+        /// <summary>
+        /// 鑾峰彇椤堕儴缁熻鏁版嵁
+        /// </summary>
+        /// <returns></returns>
+        [HttpGet]
+        [AllowAnonymous]
+        public async Task<TopStatisticsOutput> GetTopStatistics()
+        {
+            return await _statisticsService.GetTopStatistics();
+        }
 
         /// <summary>
         /// 鑾峰彇鐢佃垂闈㈠��
@@ -136,6 +150,17 @@
         }
 
         /// <summary>
+        /// 鑾峰彇娓犻亾鎶樻墸
+        /// </summary>
+        /// <returns></returns>
+        [HttpPost]
+        [AllowAnonymous]
+        public async Task<ChannelRateOutput> GetChannelRate(ChannelsBaseInput input)
+        {
+            return await _lifePayService.GetChannelRate(input);
+        }
+
+        /// <summary>
         /// 鑾峰彇鎵嬬画璐硅垂鐜�
         /// </summary>
         /// <returns></returns>
@@ -178,6 +203,39 @@
         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>
+        /// 鑾峰彇璁㈠崟璇︽儏
+        /// </summary>
+        /// <param name="orderNo"></param>
+        /// <returns></returns>
+        [HttpGet]
+        public async Task<LifePayOrderOutput> GetLifePayOrderDetail(string orderNo)
+        {
+            return await _lifePayService.GetLifePayOrderDetail(orderNo);
+        }
+
+        /// <summary>
+        /// 鑾峰彇閫�娆捐鍗曡鎯�
+        /// </summary>
+        /// <param name="orderNo"></param>
+        /// <returns></returns>
+        [HttpGet]
+        public async Task<LifePayRefundOrderOutput> GetLifePayRefundOrderDetail(string orderNo)
+        {
+            return await _lifePayService.GetLifePayRefundOrderDetail(orderNo);
         }
 
         /// <summary>
@@ -326,10 +384,35 @@
                 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<string> GetBillErceiptExport(string orderNo)
+        {
+            var data = await _lifePayService.GetBillErceiptExport(orderNo);
+
+            return data;
+        }
+
         #endregion
 
         #region 鎿嶄綔

--
Gitblit v1.9.1