|
|
@@ -105,6 +105,7 @@ public class WindDirectionService {
|
|
|
// } else {
|
|
|
// data.setFx(fxData.getDoubleValue());
|
|
|
// }
|
|
|
+ data.setFx(fxData != null ? fxData.getDoubleValue() : 0);
|
|
|
data.setSpeed(fsData != null ? fsData.getDoubleValue() : 0);
|
|
|
data.setMxzt(ztData != null ? (int) ztData.getDoubleValue() : 0);
|
|
|
data.setDfwc(dfwcData != null ? dfwcData.getDoubleValue() : 0);
|
|
|
@@ -176,7 +177,7 @@ public class WindDirectionService {
|
|
|
}
|
|
|
// 过滤非并网值 风机状态不等于2
|
|
|
if (filter == 0 && isfbw && item.getMxzt() != 2) {
|
|
|
- filter = 1;
|
|
|
+ item.setFilter(1);
|
|
|
fjstatus = 1;
|
|
|
timeBW = item.getTime();
|
|
|
} else {
|
|
|
@@ -192,11 +193,11 @@ public class WindDirectionService {
|
|
|
// }
|
|
|
// 按给定风速功率过滤
|
|
|
if (item.getSpeed() < mins || item.getSpeed() > maxs || item.getPower() < minp || item.getPower() > maxp) {
|
|
|
- filter = 1;
|
|
|
+ item.setFilter(1);
|
|
|
}
|
|
|
// 过滤非合理值 并网状态下功率小于等于0
|
|
|
if (filter == 0 && isfhl && item.getSpeed() < 0 && item.getPower() <= minp) {
|
|
|
- filter = 1;
|
|
|
+ item.setFilter(1);
|
|
|
}
|
|
|
// 过滤并网后十分钟
|
|
|
// if (filter == 0 && isbw) {
|
|
|
@@ -360,6 +361,7 @@ public class WindDirectionService {
|
|
|
// } else {
|
|
|
// data.setFx(fxData.getDoubleValue());
|
|
|
// }
|
|
|
+ data.setFx(fxData != null ? fxData.getDoubleValue() : 0);
|
|
|
data.setSpeed(fsData != null ? fsData.getDoubleValue() : 0);
|
|
|
data.setMxzt(ztData != null ? (int) ztData.getDoubleValue() : 0);
|
|
|
data.setDfwc(dfwcData != null ? dfwcData.getDoubleValue() : 0);
|
|
|
@@ -431,7 +433,7 @@ public class WindDirectionService {
|
|
|
}
|
|
|
// 过滤非并网值 风机状态不等于2
|
|
|
if (filter == 0 && isfbw && item.getMxzt() != 2) {
|
|
|
- filter = 1;
|
|
|
+ item.setFilter(1);
|
|
|
fjstatus = 1;
|
|
|
timeBW = item.getTime();
|
|
|
} else {
|
|
|
@@ -447,11 +449,11 @@ public class WindDirectionService {
|
|
|
// }
|
|
|
// // 按给定风速功率过滤
|
|
|
if (item.getSpeed() < mins || item.getSpeed() > maxs || item.getPower() < minp || item.getPower() > maxp) {
|
|
|
- filter = 1;
|
|
|
+ item.setFilter(1);
|
|
|
}
|
|
|
// 过滤非合理值 并网状态下功率小于等于0
|
|
|
if (filter == 0 && isfhl && item.getSpeed() < 0 && item.getPower() <= minp) {
|
|
|
- filter = 1;
|
|
|
+ item.setFilter(1);
|
|
|
}
|
|
|
// 过滤并网后十分钟
|
|
|
// if (filter == 0 && isbw) {
|