|
@@ -142,10 +142,10 @@ public class KprZilaishuiWaterBizFun {
|
|
long roundedNanos = Math.round((double) nanosecondsSinceEpoch / nanosPerMinute) * nanosPerMinute;
|
|
long roundedNanos = Math.round((double) nanosecondsSinceEpoch / nanosPerMinute) * nanosPerMinute;
|
|
|
|
|
|
// 输出调试信息
|
|
// 输出调试信息
|
|
-// System.out.println("解析的时间: " + dateTime);
|
|
|
|
-// System.out.println("时区转换后的时间: " + zonedDateTime);
|
|
|
|
-// System.out.println("计算的纳秒数: " + nanosecondsSinceEpoch);
|
|
|
|
-// System.out.println("最接近整分的纳秒数: " + roundedNanos);
|
|
|
|
|
|
+// log.info("解析的时间: " + dateTime);
|
|
|
|
+// log.info("时区转换后的时间: " + zonedDateTime);
|
|
|
|
+// log.info("计算的纳秒数: " + nanosecondsSinceEpoch);
|
|
|
|
+// log.info("最接近整分的纳秒数: " + roundedNanos);
|
|
|
|
|
|
return roundedNanos;
|
|
return roundedNanos;
|
|
}
|
|
}
|
|
@@ -153,7 +153,7 @@ public class KprZilaishuiWaterBizFun {
|
|
//TODO 数据库视图采集
|
|
//TODO 数据库视图采集
|
|
public static void initHistoryDb(LocalDateTime startDateTime){
|
|
public static void initHistoryDb(LocalDateTime startDateTime){
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
- System.out.println("自来水历史数据执行:"+startDateTime.format(formatter));
|
|
|
|
|
|
+ log.info("自来水历史数据执行:"+startDateTime.format(formatter));
|
|
if(startDateTime==null){
|
|
if(startDateTime==null){
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -229,7 +229,7 @@ public class KprZilaishuiWaterBizFun {
|
|
+"initHistoryDbNullError");
|
|
+"initHistoryDbNullError");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- System.out.println(startStr+"到"+endStr+"数据整理完成:"+count);
|
|
|
|
|
|
+ log.info(startStr+"到"+endStr+"数据整理完成:"+count);
|
|
}
|
|
}
|
|
currentDateTime = currentDateTime.plusHours(6); // 增加 6 小时
|
|
currentDateTime = currentDateTime.plusHours(6); // 增加 6 小时
|
|
}
|
|
}
|