|
@@ -512,10 +512,10 @@ public class DatatrainingService {
|
|
|
if (wtpAimap.containsKey(up82_part_state_clx)) {
|
|
|
Windturbinetestingpointnew ai = wtpAimap.get(up82_part_state_clx);
|
|
|
PointData point = new PointData();
|
|
|
- point.setEdnaId(ai.getId());
|
|
|
+ point.setEdnaId(ai.getCode());
|
|
|
point.setPointValueInDouble(value);
|
|
|
point.setPointTime(new BigDecimal(now.getTime()).divide(new BigDecimal(1000), 0, RoundingMode.HALF_EVEN).longValue());
|
|
|
- ednaApiUtil.updatePoint(point);
|
|
|
+ ednaApiUtil.sendSinglePoint(point);
|
|
|
}
|
|
|
}
|
|
|
catch (Exception e)
|
|
@@ -531,7 +531,7 @@ public class DatatrainingService {
|
|
|
point.setEdnaId(ai.getCode());
|
|
|
point.setPointValueInDouble(value);
|
|
|
point.setPointTime(new BigDecimal(now.getTime()).divide(new BigDecimal(1000), 0, RoundingMode.HALF_EVEN).longValue());
|
|
|
- ednaApiUtil.updatePoint(point);
|
|
|
+ ednaApiUtil.sendSinglePoint(point);
|
|
|
}
|
|
|
}
|
|
|
|