From bb019c164fee1cbb93fe55a8fcad0a3b5be7af52 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Fri, 11 Aug 2023 10:25:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E4=BC=98=E5=8C=96123?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/projectdeclared/manage/PurchaseManage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PurchaseManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PurchaseManage.java index 7f71b70..751a23d 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PurchaseManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PurchaseManage.java @@ -209,7 +209,7 @@ public class PurchaseManage { // 获取总的成交时间及金额 LocalDateTime lastTransactionTime = null; BigDecimal transactionAmountTotal = BigDecimal.ZERO; - for (Purchase purchase : purchases) { + for (Purchase purchase : purchaseEntities) { if (lastTransactionTime == null) { lastTransactionTime = purchase.getTransactionTime(); } else if (purchase.getTransactionTime().isAfter(lastTransactionTime)) {