diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/index/service/IndexService.java b/jero-boot-incoming-payment/src/main/java/com/jero/index/service/IndexService.java index a2ca396f..c614c789 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/index/service/IndexService.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/index/service/IndexService.java @@ -114,17 +114,6 @@ public class IndexService { List billMoneyMap = cumulativeProcesZero(list.stream().map(AllProjectStatistics::getBillMoney).collect(Collectors.toList())); List confirmAmountMap = cumulativeProcesZero(list.stream().map(AllProjectStatistics::getConfirmAmount).collect(Collectors.toList())); List allMoneyMap = cumulativeProcesZero(list.stream().map(AllProjectStatistics::getAllMoney).collect(Collectors.toList())); - // 预计到账金额 - List listEstimatedArrivalMoney = payWorkingGroupMapper.cumulativeListEstimatedArrivalMoney(allProjectStatisticsSearch.getPaymentYear()); - // 累加金额 - for (int i = 1; i < listEstimatedArrivalMoney.size(); i++) { - AllProjectStatistics obj = listEstimatedArrivalMoney.get(i); - AllProjectStatistics objLast = listEstimatedArrivalMoney.get(i-1); - BigDecimal n = new BigDecimal(obj.getEstimatedArrivalMoney()); - BigDecimal l = new BigDecimal(objLast.getEstimatedArrivalMoney()); - obj.setEstimatedArrivalMoney(n.add(l).toPlainString()); - listEstimatedArrivalMoney.set(i,obj); - } List date = list.stream().map(AllProjectStatistics::getPaymentDate).collect(Collectors.toList()); List dateList = new ArrayList<>(12); diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/project/mapper/xml/PayWorkingGroupMapper.xml b/jero-boot-incoming-payment/src/main/java/com/jero/project/mapper/xml/PayWorkingGroupMapper.xml index fac39d89..519673ed 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/project/mapper/xml/PayWorkingGroupMapper.xml +++ b/jero-boot-incoming-payment/src/main/java/com/jero/project/mapper/xml/PayWorkingGroupMapper.xml @@ -522,6 +522,15 @@ AND estimatedArrivalDate is not null + + + and estimatedArrivalDate like + concat('%',#{allProjectStatisticsSearch.estimatedArrivalYear},'-',#{allProjectStatisticsSearch.estimatedArrivalMonth},'%') + + + and estimatedArrivalDate like concat('%',#{allProjectStatisticsSearch.estimatedArrivalYear},'%') + + AND allMoney >= #{allProjectStatisticsSearch.allMoney} @@ -648,6 +657,15 @@ AND estimatedArrivalDate is not null + + + and estimatedArrivalDate like + concat('%',#{allProjectStatisticsSearch.estimatedArrivalYear},'-',#{allProjectStatisticsSearch.estimatedArrivalMonth},'%') + + + and estimatedArrivalDate like concat('%',#{allProjectStatisticsSearch.estimatedArrivalYear},'%') + + AND allMoney >= #{allProjectStatisticsSearch.allMoney} @@ -2539,13 +2557,13 @@ diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/statistics/entity/AllProjectStatisticsSearch.java b/jero-boot-incoming-payment/src/main/java/com/jero/statistics/entity/AllProjectStatisticsSearch.java index 1f8d5fdb..0982e794 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/statistics/entity/AllProjectStatisticsSearch.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/statistics/entity/AllProjectStatisticsSearch.java @@ -67,4 +67,10 @@ public class AllProjectStatisticsSearch { /**预估到账日期是否为空*/ @ApiModelProperty(value = "预估到账日期是否为空") private String estimatedArrivalDateHasFlag; + /**预估到账日期是否为空*/ + @ApiModelProperty(value = "预估到账年份") + private String estimatedArrivalYear; + /**预估到账日期是否为空*/ + @ApiModelProperty(value = "预估到账月份") + private String estimatedArrivalMonth; }