窗口查询 时间偏移量
This commit is contained in:
parent
96bfd7c2c8
commit
b07063693a
@ -166,8 +166,11 @@ public class DataServiceImpl implements DataService {
|
||||
List<SnapshotValueQueryParam> deviceFieldList = param.getDevices();
|
||||
String interval = param.getInterval();
|
||||
Long offset = calculateRemainder(Long.parseLong(param.getStartTime()), interval);
|
||||
if (offset != 0){
|
||||
String offsetSecond = offset/1000 + "s";
|
||||
interval = interval + ","+offsetSecond;
|
||||
}
|
||||
|
||||
System.out.println("不能被整除的部分 (毫秒): " + result);
|
||||
for (SnapshotValueQueryParam item : deviceFieldList) {
|
||||
//field分为高频和低频查询
|
||||
|
Loading…
Reference in New Issue
Block a user