|
|
@@ -32,11 +32,11 @@ public class DateTimeRangeUtils {
|
|
|
break;
|
|
|
|
|
|
case "three":
|
|
|
- start = today.minusDays(3).atStartOfDay(); // 3天前 00:00:00
|
|
|
+ start = today.minusDays(2).atStartOfDay(); // 3天前 00:00:00
|
|
|
break;
|
|
|
|
|
|
case "week":
|
|
|
- start = today.minusDays(7).atStartOfDay(); // 7天前 00:00:00
|
|
|
+ start = today.minusDays(6).atStartOfDay(); // 7天前 00:00:00
|
|
|
break;
|
|
|
|
|
|
case "month":
|
|
|
@@ -64,7 +64,8 @@ public class DateTimeRangeUtils {
|
|
|
|
|
|
return switch (type.toLowerCase()) {
|
|
|
case "day" -> today.plusDays(1).atStartOfDay(); // 明天 00:00:00
|
|
|
- case "three", "week", "month" -> today.atStartOfDay(); // 今天 00:00:00
|
|
|
+ /*case "three", "week", "month" -> today.atStartOfDay(); // 今天 00:00:00*/
|
|
|
+ case "three", "week", "month" -> today.plusDays(1).atStartOfDay(); // 明天 00:00:00
|
|
|
default -> throw new IllegalArgumentException("不支持的时间类型: " + type);
|
|
|
};
|
|
|
}
|