账号密码支持自定义更新周期

This commit is contained in:
RuoYi
2025-05-23 10:19:47 +08:00
parent 924ec0eb6e
commit 3293e2fb56
4 changed files with 40 additions and 6 deletions

View File

@@ -136,6 +136,14 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
return new Date(time);
}
/**
* 计算相差天数
*/
public static int differentDaysByMillisecond(Date date1, Date date2)
{
return Math.abs((int) ((date2.getTime() - date1.getTime()) / (1000 * 3600 * 24)));
}
/**
* 计算时间差
*