medicalWaste-common/src/main/java/com/sinata/common/utils/DateUtils.java
@@ -188,7 +188,21 @@ long hour = diff % nd / nh; return hour; } /** * 计算天数差 * * @param endDate * @param startTime * @return */ public static long timeDistanceDay(Date endDate, Date startTime) { long nd = 1000 * 24 * 60 * 60; long diff = endDate.getTime() - startTime.getTime(); long day = diff / nd; return day; } /** * 增加 LocalDateTime ==> Date */