用能代码提交

This commit is contained in:
2024-07-24 13:15:59 +08:00
parent 311b2844ba
commit 128925a5d6

View File

@@ -122,7 +122,7 @@ public class StatisticDataRunController {
hashMap.put(insertObj.get(j).get("LineId").toString(), insertObj.get(j)); hashMap.put(insertObj.get(j).get("LineId").toString(), insertObj.get(j));
} }
hashMap.forEach((key, val) -> { hashMap.forEach((key, val) -> {
Long t = (Long) val.get("time") * 1000 - 28800000; Long t = (Long) val.get("time") * 1000;
String tt = Instant.ofEpochMilli((Long) val.get("time") * 1000).toString(); String tt = Instant.ofEpochMilli((Long) val.get("time") * 1000).toString();
String sqlQs = "delete from power_data_add_Real where time< '" + tt + "' and LineId ='" + key + "'"; String sqlQs = "delete from power_data_add_Real where time< '" + tt + "' and LineId ='" + key + "'";
influxDbUtils.deleteMeasurementData(sqlQs); influxDbUtils.deleteMeasurementData(sqlQs);