| | |
| | | public interface ILifePayOrderService : IApplicationService |
| | | { |
| | | Task<PageOutput<LifePayRechargeReceiptsListOutput>> GetLifePayRechargeReceiptsPage(LifePayRechargeReceiptsPageInput input); |
| | | |
| | | Task<decimal> GetTotalLifePayRechargeReceipts(); |
| | | |
| | | Task AddUpdatePayRechargeReceipts(AddUpdatePayRechargeReceiptsInput input); |
| | | } |
| | |
| | | return list; |
| | | } |
| | | |
| | | //public async Task GetTotalLifePayRechargeReceipts() |
| | | //{ |
| | | |
| | | //} |
| | | public async Task<decimal> GetTotalLifePayRechargeReceipts() |
| | | { |
| | | var result = await _lifePayRechargeReceiptsRepository.Where(x => x.IsDeleted == false).SumAsync(x => x.RechargeAmount); |
| | | return result; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 编辑充值流水 |
| | |
| | | return await _lifePayOrderService.GetLifePayRechargeReceiptsPage(input); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取累计充值流水 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public async Task<decimal> GetLifePayRechargeReceiptsPage() |
| | | { |
| | | return await _lifePayOrderService.GetTotalLifePayRechargeReceipts(); |
| | | } |
| | | |
| | | #endregion |
| | | |