| | |
| | | using 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; |
| | |
| | | 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> |
| | |
| | | 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> |
| | |
| | | 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, |
| | | OutRefundNo = res.RefundId, |
| | | 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> |