|
@@ -148,7 +148,7 @@ public final class DateUtils {
|
|
|
// 存储所有日期的列表
|
|
|
List<String> datesList = new ArrayList<>();
|
|
|
// 从startDate到today遍历日期
|
|
|
- while (!startDate.isAfter(today) && !startDate.isAfter(end)) {
|
|
|
+ while (startDate.isBefore(today) && !startDate.isAfter(end)) {
|
|
|
// 将当前日期格式化为"yyyyMMdd"并添加到列表中
|
|
|
datesList.add(startDate.format(formatter));
|
|
|
// 日期加1天
|