|
@@ -41,7 +41,7 @@ public class StatusService {
|
|
|
public static Map<String,List<Windturbine>> linewtmap;
|
|
|
@Resource
|
|
|
private IEdosUtil edosUtil;
|
|
|
-// @Resource
|
|
|
+ // @Resource
|
|
|
// private IEdosUtil edosUtilTd;
|
|
|
@Value("${clauStatus.ai}")
|
|
|
private String clauStatusAi;
|
|
@@ -93,14 +93,18 @@ public class StatusService {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
boolean b = realData.stream().allMatch(pointData -> pointData.getPointValueInDouble() == 3.0);
|
|
|
- if (b){
|
|
|
- try {
|
|
|
+
|
|
|
+ try {
|
|
|
+ if (b){
|
|
|
edosUtil.sendSinglePoint(createWpPoint(new AtomicInteger(1),windpowerstationpointnew));
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ }else{
|
|
|
+ edosUtil.sendSinglePoint(createWpPoint(new AtomicInteger(0),windpowerstationpointnew));
|
|
|
}
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
|