From 84ea7c334ea9df772e3d626c4104524094bbc190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Mon, 30 Sep 2024 13:41:43 +0800 Subject: [PATCH] =?UTF-8?q?debug:=E7=BB=9F=E8=AE=A1=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E6=9C=80=E5=90=8E=E4=B8=80=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/TransactionBillServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java index 349bce9e..f0498f1c 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java @@ -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())) { List newList = new ArrayList<>(); LocalDate i = dto.getStartDate(); - while (i.isBefore(dto.getEndDate())) { + while (!i.isAfter(dto.getEndDate())) { 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); if (count == null) {