|
@@ -209,7 +209,7 @@ public class PurchaseManage { |
|
|
// 获取总的成交时间及金额 |
|
|
// 获取总的成交时间及金额 |
|
|
LocalDateTime lastTransactionTime = null; |
|
|
LocalDateTime lastTransactionTime = null; |
|
|
BigDecimal transactionAmountTotal = BigDecimal.ZERO; |
|
|
BigDecimal transactionAmountTotal = BigDecimal.ZERO; |
|
|
for (Purchase purchase : purchases) { |
|
|
|
|
|
|
|
|
for (Purchase purchase : purchaseEntities) { |
|
|
if (lastTransactionTime == null) { |
|
|
if (lastTransactionTime == null) { |
|
|
lastTransactionTime = purchase.getTransactionTime(); |
|
|
lastTransactionTime = purchase.getTransactionTime(); |
|
|
} else if (purchase.getTransactionTime().isAfter(lastTransactionTime)) { |
|
|
} else if (purchase.getTransactionTime().isAfter(lastTransactionTime)) { |
|
|