From fdb74a7ec549f51633362707d97de94fd51bc95c Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期四, 27 三月 2025 14:06:37 +0800 Subject: [PATCH] fix:充值凭证 --- LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs index 87d9e46..6b78d5e 100644 --- a/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs +++ b/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs @@ -2,9 +2,6 @@ using LifePayment.Domain.LifePay; using LifePayment.Domain.Models; using LifePayment.Domain.Shared; -using LifePayment.Domain; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; using System; using System.Collections.Generic; using System.Linq; @@ -44,16 +41,17 @@ OrderNo = x.OrderNo, RechargeAmount = x.RechargeAmount, Remark = x.Remark, - Voucher = x.Voucher, + Voucher = x.Voucher.GetOssPath(), }) .GetPageResult(input.PageModel); 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> /// 缂栬緫鍏呭�兼祦姘� -- Gitblit v1.9.1