|
@@ -405,7 +405,16 @@ public class DataFittingService {
|
|
|
times.add(time);
|
|
|
});
|
|
|
|
|
|
- List<AlarmVo> list = alarmTsXmlMapper.findTagsByDeviceidInDate(table,uniqueWtIds, times);
|
|
|
+ // 最小值
|
|
|
+ long begin = times.stream().mapToLong(Long::longValue).min().getAsLong();
|
|
|
+ System.out.println("min:" + begin);
|
|
|
+ // 最大值
|
|
|
+ long end = times.stream().mapToLong(Long::longValue).max().getAsLong();
|
|
|
+ System.out.println("max:" + end);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ List<AlarmVo> list = alarmTsXmlMapper.findTagsByDeviceidByDate(table,uniqueWtIds, begin,end);
|
|
|
|
|
|
return list;
|
|
|
}
|