|
|
@ -33,9 +33,14 @@ public class I2DataTransformer {
|
|
|
|
node.setTimestamp(date);
|
|
|
|
node.setTimestamp(date);
|
|
|
|
|
|
|
|
|
|
|
|
List<Attr> attrs = new ArrayList<>();
|
|
|
|
List<Attr> attrs = new ArrayList<>();
|
|
|
|
|
|
|
|
Attr attr = new Attr();
|
|
|
|
|
|
|
|
attr.setName("Phase");
|
|
|
|
|
|
|
|
attr.setValue(sensor.getPhase());
|
|
|
|
|
|
|
|
attr.setAlarm("FALSE");
|
|
|
|
|
|
|
|
attrs.add(attr);
|
|
|
|
for (I2syncField field : fieldList) {
|
|
|
|
for (I2syncField field : fieldList) {
|
|
|
|
Object value = map.get(field.getFieldName());
|
|
|
|
Object value = map.get(field.getFieldName());
|
|
|
|
Attr attr = new Attr();
|
|
|
|
attr = new Attr();
|
|
|
|
attr.setName(field.getDestFieldName());
|
|
|
|
attr.setName(field.getDestFieldName());
|
|
|
|
attr.setValue(String.valueOf(value));
|
|
|
|
attr.setValue(String.valueOf(value));
|
|
|
|
attr.setAlarm("FALSE");
|
|
|
|
attr.setAlarm("FALSE");
|
|
|
|