大屏项目初始化

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()); .eq("month_date", DateUtils.getCurrentMonth());
List<ErpTransactionFlow> flowList = flowService.list(query); List<ErpTransactionFlow> flowList = flowService.list(query);
BigDecimal incomeAmount = flowList.stream() BigDecimal incomeAmount = flowList.stream()
.filter(flow -> flow.getTransactionType().equals("1")) .filter(flow -> flow.getTransactionType().equals("2"))
.map(ErpTransactionFlow::getAmount) .map(ErpTransactionFlow::getAmount)
.filter(amount -> amount != null) .filter(amount -> amount != null)
.reduce(BigDecimal.ZERO, BigDecimal::add); .reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal expenseAmount = flowList.stream() BigDecimal expenseAmount = flowList.stream()
.filter(flow -> flow.getTransactionType().equals("2")) .filter(flow -> flow.getTransactionType().equals("1"))
.map(ErpTransactionFlow::getAmount) .map(ErpTransactionFlow::getAmount)
.filter(amount -> amount != null) .filter(amount -> amount != null)
.reduce(BigDecimal.ZERO, BigDecimal::add); .reduce(BigDecimal.ZERO, BigDecimal::add);