1、新增组织产品有效期时间查询接口;2、组织查询、分页的超期时间修改为Date类型;

This commit is contained in:
gaoqr
2025-10-13 11:27:54 +08:00
parent 3b628e9d91
commit 23f8a2f2c8
9 changed files with 91 additions and 11 deletions
@@ -76,6 +76,11 @@ public class DateUtils {
return now.isAfter(time);
}
public static boolean isExpired(LocalDate time) {
LocalDate now = LocalDate.now();
return now.isAfter(time);
}
public static long diff(Date endTime, Date startTime) {
return endTime.getTime() - startTime.getTime();
}