|
|
@@ -57,7 +57,7 @@ public class ScadaPlatformData {
|
|
|
* @return influxdb对象
|
|
|
*/
|
|
|
public Point toPoint(List<Device> devices) {
|
|
|
- if (StringUtils.isAnyBlank(n, v) || t == null || !NumberUtils.isParsable(v)) return null;
|
|
|
+ if (StringUtils.isAnyBlank(n, v) || !NumberUtils.isParsable(v)) return null;
|
|
|
//获取设备
|
|
|
Device device = devices.stream()
|
|
|
.filter(d -> d.getTags().stream().map(DeviceTag::getTag).anyMatch(n::equals))
|