|
@@ -86,7 +86,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
if(Objects.nonNull(queryInfo.getStartDate())){
|
|
|
startDate = LocalDateTime.ofInstant(queryInfo.getStartDate().toInstant(), DateUtil.zoneId).toLocalDate();
|
|
|
}
|
|
|
-
|
|
|
+ startDate = startDate.plusDays(-180);
|
|
|
LocalDate endDate = nowDate.plusDays(-1);
|
|
|
if(Objects.nonNull(queryInfo.getEndDate())){
|
|
|
endDate = LocalDateTime.ofInstant(queryInfo.getEndDate().toInstant(), DateUtil.zoneId).toLocalDate();
|
|
@@ -277,6 +277,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
}
|
|
|
IndexBaseDto indexBaseData = new IndexBaseDto(typeDateMapEntry.getKey(),typeDateMapEntry.getKey().getMsg());
|
|
|
indexBaseData.setIndexMonthData(value, currentMonth);
|
|
|
+ indexBaseData.setPercent(value.stream().map(IndexBaseMonthData::getPercent).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
if(OTHER_AMOUNT.equals(typeDateMapEntry.getKey())){
|
|
|
List<IndexBaseMonthData> otherAmountDetails = new ArrayList<>();
|
|
|
if(value != null && value.size() > 0){
|
|
@@ -310,6 +311,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
result.add(indexBaseData);
|
|
|
}
|
|
|
return result;
|