|
@@ -40,16 +40,16 @@ public class CheckTaskSchedule {
|
|
LoggerUtil.info(DateUtil.getTime());
|
|
LoggerUtil.info(DateUtil.getTime());
|
|
try {
|
|
try {
|
|
if (DateUtil.getHour().equals("10") || DateUtil.getHour().equals("20")) {
|
|
if (DateUtil.getHour().equals("10") || DateUtil.getHour().equals("20")) {
|
|
- LoggerUtil.info("执行开始:" + DateUtil.getTime());
|
|
|
|
|
|
+ LoggerUtil.info(DateUtil.getDay() + "执行开始:" + DateUtil.getTime());
|
|
executeBiz(DateUtil.getDay());
|
|
executeBiz(DateUtil.getDay());
|
|
- LoggerUtil.info("执行结束:" + DateUtil.getTime());
|
|
|
|
|
|
+ LoggerUtil.info(DateUtil.getDay() + "执行结束:" + DateUtil.getTime());
|
|
}
|
|
}
|
|
- if (DateUtil.getHour().equals("2")) {
|
|
|
|
- // 重新执行最近30天
|
|
|
|
|
|
+ // 重新执行最近30天
|
|
|
|
+ if (DateUtil.getHour().equals("02")) {
|
|
for (String day : DateUtil.getSubDateList(DateUtil.getAfterDay(-30), DateUtil.getDay())) {
|
|
for (String day : DateUtil.getSubDateList(DateUtil.getAfterDay(-30), DateUtil.getDay())) {
|
|
- LoggerUtil.info("执行开始:" + DateUtil.getTime());
|
|
|
|
|
|
+ LoggerUtil.info(day + "执行开始:" + DateUtil.getTime());
|
|
executeBiz(day);
|
|
executeBiz(day);
|
|
- LoggerUtil.info("执行结束:" + DateUtil.getTime());
|
|
|
|
|
|
+ LoggerUtil.info(day + "执行结束:" + DateUtil.getTime());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|