You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: connectionstatistics/src/main/java/com/techolution/mauritius/smartwater/connection/controller/ConnectionStatisticsController.java
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,5 +79,56 @@ public class ConnectionStatisticsController {
Copy file name to clipboardExpand all lines: connectionstatistics/src/main/java/com/techolution/mauritius/smartwater/connection/service/ConnectionStatisticsService.java
Stringquery = "select sum(value) from flow where time >='"+startTime+"' and time<'"+endTime+"' and meter_id="+deviceId+" group by time("+groupVal+") fill(0)";// now() - 10d and meter_id = '124' group by time(1d) fill(0)
84
+
Stringquery = "select sum(value) from flow where time >='"+startTime+"' and time<='"+endTime+"' and meter_id="+deviceId+" group by time("+groupVal+") fill(0)";// now() - 10d and meter_id = '124' group by time(1d) fill(0)
Stringquery = "select last(value) from batterylevel where time >='"+startTime+"' and time<='"+endTime+"' and meter_id="+deviceId+" group by time("+groupVal+")";// now() - 10d and meter_id = '124' group by time(1d) fill(0)
0 commit comments