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