大屏项目初始化
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user