debug:统计日期缺失最后一天
This commit is contained in:
parent
47284ed2a5
commit
84ea7c334e
|
@ -704,7 +704,7 @@ public class TransactionBillServiceImpl implements TransactionBillService, After
|
||||||
if (dto.getStartDate() != null && dto.getEndDate() != null && Objects.equals(dto.getGroupBy(), TransactionBillGroupBy.create_date.name())) {
|
if (dto.getStartDate() != null && dto.getEndDate() != null && Objects.equals(dto.getGroupBy(), TransactionBillGroupBy.create_date.name())) {
|
||||||
List<BillCountVo> newList = new ArrayList<>();
|
List<BillCountVo> newList = new ArrayList<>();
|
||||||
LocalDate i = dto.getStartDate();
|
LocalDate i = dto.getStartDate();
|
||||||
while (i.isBefore(dto.getEndDate())) {
|
while (!i.isAfter(dto.getEndDate())) {
|
||||||
Date finalI = DateUtils.toDate(i);
|
Date finalI = DateUtils.toDate(i);
|
||||||
BillCountVo count = list.stream().filter(item -> DateUtils.getYYYY_MM_DD(item.getCreateDate()).equals(DateUtils.getYYYY_MM_DD(finalI))).findFirst().orElse(null);
|
BillCountVo count = list.stream().filter(item -> DateUtils.getYYYY_MM_DD(item.getCreateDate()).equals(DateUtils.getYYYY_MM_DD(finalI))).findFirst().orElse(null);
|
||||||
if (count == null) {
|
if (count == null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user