From aff6340db92f4801184db829eccfed93ff6fedb3 Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期二, 01 四月 2025 16:41:30 +0800 Subject: [PATCH] fix:提交 --- LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 50 insertions(+), 7 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs index e3060bb..3bfe783 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs @@ -1,6 +1,7 @@ 锘縰sing Alipay.AopSdk.F2FPay.Model; using LifePayment.Application.Contracts; using LifePayment.Application.LifePay; +using LifePayment.Domain; using LifePayment.Domain.Common; using LifePayment.Domain.Shared; using Microsoft.AspNetCore.Authorization; @@ -57,6 +58,32 @@ public async Task<TopStatisticsOutput> GetTopStatistics(TopStatisticsInput input) { return await _statisticsService.GetTopStatistics(input.ChannleList); + } + + /// <summary> + /// 鑾峰彇30鏃ユ敹娆剧粺璁� + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost] + [AllowAnonymous] + public async Task<ReceiptsListOutPut> GetReceiptsList(TopStatisticsInput input) + { + return await _statisticsService.GetReceiptsList(input.ChannleList); + } + + [HttpPost] + [AllowAnonymous] + public async Task<ChannelDataListOutPut> GetChannelDataList(TopStatisticsInput input) + { + return await _statisticsService.GetChannelDataList(input.ChannleList); + } + + [HttpPost] + [AllowAnonymous] + public async Task<ChannlesRakeListOutPut> GetChannlesRakeList(TopStatisticsInput input) + { + return await _statisticsService.GetChannlesRakeList(input.ChannleList); } /// <summary> @@ -433,6 +460,17 @@ return data; } /// <summary> + /// 鑾峰彇娑堣垂娴佹按鍒嗛〉鏁版嵁 + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost] + public async Task<PageOutput<LifePayConsumptionListOutput>> GetLifePayConsumptionPage(LifePayConsumptionPageInput input) + { + return await _lifePayOrderService.GetLifePayConsumptionPage(input); + } + + /// <summary> /// 鑾峰彇鍏呭�兼祦姘村垎椤垫暟鎹� /// </summary> /// <param name="input"></param> @@ -524,15 +562,20 @@ public async Task<WxPayDomesticRefundsQueryReponse> WxPayDomesticRefundsQuery(string outTradeNo) { var res = await _lifePayService.WxPayDomesticRefundsQuery(outTradeNo); - await _lifePayOrderService.AddLifePayExpensesReceipts(new AddLifePayExpensesReceiptsInput() + if (res.Code == WxpayResultCode.Success) { - OrderNo = res.OutTradeNo, - OutOrderNo = res.TransactionId, - LifePayType = LifePayTypeEnum.WxPay, - ExpensesReceiptsType = ExpensesReceiptsTypeEnum.Expenses, - Amount = Convert.ToDecimal(res.Amount.Total) - }); + await _lifePayOrderService.AddLifePayExpensesReceipts(new AddLifePayExpensesReceiptsInput() + { + OrderNo = res.OutTradeNo, + OutRefundNo = res.RefundId, + OutOrderNo = res.TransactionId, + LifePayType = LifePayTypeEnum.WxPay, + ExpensesReceiptsType = ExpensesReceiptsTypeEnum.Expenses, + Amount = Convert.ToDecimal(res.Amount.Total) + }); + } return res; + } /// <summary> -- Gitblit v1.9.1