| | |
| | | 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; |
| | | } |
| | |
| | | /// 获取顶部统计数据 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | //[HttpGet] |
| | | //[AllowAnonymous] |
| | | //public async Task<TopStatisticsOutput> GetTopStatistics() |
| | | //{ |
| | | // return await _lifePayService.GetTopStatistics(); |
| | | //} |
| | | [HttpGet] |
| | | [AllowAnonymous] |
| | | public async Task<TopStatisticsOutput> GetTopStatistics() |
| | | { |
| | | return await _statisticsService.GetTopStatistics(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取电费面值 |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取渠道折扣 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [AllowAnonymous] |
| | | public async Task<ChannelRateOutput> GetChannelRate(ChannelsBaseInput input) |
| | | { |
| | | return await _lifePayService.GetChannelRate(input); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取手续费费率 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | |
| | | } |
| | | |
| | | /// <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<UserLifePayOrderOutput> GetLifePayOrderDetail(string orderNo) |
| | | //{ |
| | | // return await _lifePayService.GetLifePayOrderDetail(orderNo); |
| | | //} |
| | | [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> |
| | | /// 获取我的订单分页数据 |
| | |
| | | var bytes = ExcelHelper.ListToByteForExcel(data, "xlsx"); |
| | | return File(bytes, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "订单管理" + ".xlsx"); |
| | | } |
| | | |
| | | return Json(default); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 导出退款订单Excel |
| | | /// </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 操作 |