ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/DateUtils.java
@@ -222,4 +222,15 @@ } return sb.toString(); } public static Date getTodayStartTime() { // 获取今天的日期 LocalDate today = LocalDate.now(); // 获取当天的开始时间(00:00:00) LocalDateTime startOfDay = today.atStartOfDay(); // 转换为 Date 类型 return Date.from(startOfDay.atZone(ZoneId.systemDefault()).toInstant()); } }