| | |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [AllowAnonymous] |
| | | public async Task<TopStatisticsOutput> GetTopStatistics() |
| | | public async Task<TopStatisticsOutput> GetTopStatistics(string channleId = "") |
| | | { |
| | | return await _statisticsService.GetTopStatistics(); |
| | | return await _statisticsService.GetTopStatistics(channleId); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public async Task<LifePayRechargeReceiptsPageOutput<LifePayRechargeReceiptsListOutput>> GetLifePayRechargeReceiptsPage(LifePayRechargeReceiptsPageInput input) |
| | | public async Task<PageOutput<LifePayRechargeReceiptsListOutput>> GetLifePayRechargeReceiptsPage(LifePayRechargeReceiptsPageInput input) |
| | | { |
| | | return await _lifePayOrderService.GetLifePayRechargeReceiptsPage(input); |
| | | } |
| | |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public async Task<LifePayExpensesReceiptsPageOutput<LifePayExpensesReceiptsListOutput>> GetLifePayExpensesReceiptsPage(LifePayExpensesReceiptsPageInput input) |
| | | public async Task<PageOutput<LifePayExpensesReceiptsListOutput>> GetLifePayExpensesReceiptsPage(LifePayExpensesReceiptsPageInput input) |
| | | { |
| | | return await _lifePayOrderService.GetLifePayExpensesReceiptsPage(input); |
| | | } |
| | |
| | | [AllowAnonymous] |
| | | public async Task<WxPayDomesticRefundsQueryReponse> WxPayDomesticRefundsQuery(string outTradeNo) |
| | | { |
| | | return await _lifePayService.WxPayDomesticRefundsQuery(outTradeNo); |
| | | var res = await _lifePayService.WxPayDomesticRefundsQuery(outTradeNo); |
| | | await _lifePayOrderService.AddLifePayExpensesReceipts(new AddLifePayExpensesReceiptsInput() |
| | | { |
| | | OrderNo = res.OutTradeNo, |
| | | OutOrderNo = res.TransactionId, |
| | | LifePayType = LifePayTypeEnum.WxPay, |
| | | ExpensesReceiptsType = ExpensesReceiptsTypeEnum.Expenses, |
| | | Amount = Convert.ToDecimal(res.Amount.Total) |
| | | }); |
| | | return res; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | return res; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 同步订单收支信息 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [AllowAnonymous] |
| | | public async Task GetAllLifePayExpensesReceipts() |
| | | { |
| | | await _lifePayOrderService.GetAllLifePayExpensesReceipts(); |
| | | } |
| | | |
| | | |
| | | |
| | | #endregion |
| | | |
| | | #region 操作 |