节假日

beetlsql3-dev
Mlxa0324 3 years ago
parent 15c34f09da
commit 3c4b3470f1

@ -37,8 +37,20 @@ public abstract class HolidaysUtils {
*/
private static final String githubHolidaysURL2 = "https://cdn.jsdelivr.net/gh/NateScarlet/holiday-cn@master/%s.json";
/**
*
* @return
*/
public static Holidays get() {
int year = DateUtil.thisYear();
return get(DateUtil.thisYear());
}
/**
*
* @param year
* @return
*/
public static Holidays get(Integer year) {
if (cache.containsKey(year)) {
return cache.get(year);
}

Loading…
Cancel
Save