From 0497d15d3b0341cb4ab99142a25463620229fcf3 Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期四, 27 三月 2025 13:29:53 +0800
Subject: [PATCH] fix:获取累计充值流水

---
 LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs
index 87d9e46..73749e2 100644
--- a/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs
+++ b/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs
@@ -50,10 +50,11 @@
             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