liupeng 3 år sedan
förälder
incheckning
9cb835a5fd

+ 6 - 6
code/sapparent/sapservice/src/main/java/org/fouram/job/CheckTaskSchedule.java

@@ -40,16 +40,16 @@ public class CheckTaskSchedule {
 		LoggerUtil.info(DateUtil.getTime());
 		try {
 			if (DateUtil.getHour().equals("10") || DateUtil.getHour().equals("20")) {
-				LoggerUtil.info("执行开始:" + DateUtil.getTime());
+				LoggerUtil.info(DateUtil.getDay() + "执行开始:" + DateUtil.getTime());
 				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())) {
-					LoggerUtil.info("执行开始:" + DateUtil.getTime());
+					LoggerUtil.info(day + "执行开始:" + DateUtil.getTime());
 					executeBiz(day);
-					LoggerUtil.info("执行结束:" + DateUtil.getTime());
+					LoggerUtil.info(day + "执行结束:" + DateUtil.getTime());
 				}
 			}
 		} catch (Exception e) {