大屏项目初始化

This commit is contained in:
2026-03-03 00:18:41 +08:00
parent 34d7994b41
commit 2528968f70

View File

@@ -33,12 +33,12 @@ public class erpJobs {
.eq("month_date", DateUtils.getCurrentMonth());
List<ErpTransactionFlow> flowList = flowService.list(query);
BigDecimal incomeAmount = flowList.stream()
.filter(flow -> flow.getTransactionType().equals("1"))
.filter(flow -> flow.getTransactionType().equals("2"))
.map(ErpTransactionFlow::getAmount)
.filter(amount -> amount != null)
.reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal expenseAmount = flowList.stream()
.filter(flow -> flow.getTransactionType().equals("2"))
.filter(flow -> flow.getTransactionType().equals("1"))
.map(ErpTransactionFlow::getAmount)
.filter(amount -> amount != null)
.reduce(BigDecimal.ZERO, BigDecimal::add);