From 182c7edd7c70eddbf33e2358f1f1aba96eb58cb3 Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期五, 28 三月 2025 15:43:46 +0800 Subject: [PATCH] fix:查询优化 --- LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs | 37 ++++++++++++++++++++++++++++++++----- 1 files changed, 32 insertions(+), 5 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs index e863fd0..9cef37a 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs @@ -1,4 +1,5 @@ -锘縰sing LifePayment.Application.Contracts; +锘縰sing Alipay.AopSdk.F2FPay.Model; +using LifePayment.Application.Contracts; using LifePayment.Application.LifePay; using LifePayment.Domain.Common; using LifePayment.Domain.Shared; @@ -436,19 +437,45 @@ /// <param name="input"></param> /// <returns></returns> [HttpPost] - public async Task<PageOutput<LifePayRechargeReceiptsListOutput>> GetLifePayRechargeReceiptsPage(LifePayRechargeReceiptsPageInput input) + public async Task<LifePayRechargeReceiptsPageOutput<LifePayRechargeReceiptsListOutput>> GetLifePayRechargeReceiptsPage(LifePayRechargeReceiptsPageInput input) { return await _lifePayOrderService.GetLifePayRechargeReceiptsPage(input); } /// <summary> - /// 鑾峰彇绱鍏呭�兼祦姘� + /// 鏌ヨ鏀粯瀹濇敮浠樿鍗曚俊鎭� /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost] + [AllowAnonymous] + public async Task<Alipay.EasySDK.Payment.Common.Models.AlipayTradeQueryResponse> QueryAlipayTrade(OrderInQuiryInput input) + { + return await _lifePayService.QueryAlipayTrade(input); + } + + /// <summary> + /// 鏌ヨ鏀粯瀹濋��娆捐鍗曚俊鎭� + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost] + [AllowAnonymous] + public async Task<Alipay.EasySDK.Payment.Common.Models.AlipayTradeFastpayRefundQueryResponse> QueryAlipayTradeRefund(OrderInQuiryInput input) + { + return await _lifePayService.QueryAlipayTradeRefund(input); + } + + /// <summary> + /// 鏌ヨ寰俊閫�娆句俊鎭� + /// </summary> + /// <param name="outTradeNo"></param> /// <returns></returns> [HttpGet] - public async Task<decimal> GetLifePayRechargeReceiptsPage() + [AllowAnonymous] + public async Task<WxPayDomesticRefundsQueryReponse> WxPayDomesticRefundsQuery(string outTradeNo) { - return await _lifePayOrderService.GetTotalLifePayRechargeReceipts(); + return await _lifePayService.WxPayDomesticRefundsQuery(outTradeNo); } #endregion -- Gitblit v1.9.1