|
@@ -100,11 +100,11 @@ public class WindDirectionService {
|
|
|
|
|
|
PowerPointData data = new PowerPointData();
|
|
|
data.setTime(DateUtils.formatTimestamp(ts));
|
|
|
- if (collect.size()>0){
|
|
|
- data.setFx(fxData.getDoubleValue() * 57.2958);
|
|
|
- } else {
|
|
|
- data.setFx(fxData.getDoubleValue());
|
|
|
- }
|
|
|
+// if (collect.size()>0){
|
|
|
+// data.setFx(fxData.getDoubleValue() * 57.2958);
|
|
|
+// } else {
|
|
|
+// data.setFx(fxData.getDoubleValue());
|
|
|
+// }
|
|
|
data.setSpeed(fsData != null ? fsData.getDoubleValue() : 0);
|
|
|
data.setMxzt(ztData != null ? (int) ztData.getDoubleValue() : 0);
|
|
|
data.setDfwc(dfwcData != null ? dfwcData.getDoubleValue() : 0);
|
|
@@ -355,11 +355,11 @@ public class WindDirectionService {
|
|
|
|
|
|
PowerPointData data = new PowerPointData();
|
|
|
data.setTime(DateUtils.formatTimestamp(ts));
|
|
|
- if (equipments.size() > 0) {
|
|
|
- data.setFx(fxData.getDoubleValue() * 57.2958);
|
|
|
- } else {
|
|
|
- data.setFx(fxData.getDoubleValue());
|
|
|
- }
|
|
|
+// if (equipments.size() > 0) {
|
|
|
+// data.setFx(fxData.getDoubleValue() * 57.2958);
|
|
|
+// } else {
|
|
|
+// data.setFx(fxData.getDoubleValue());
|
|
|
+// }
|
|
|
data.setSpeed(fsData != null ? fsData.getDoubleValue() : 0);
|
|
|
data.setMxzt(ztData != null ? (int) ztData.getDoubleValue() : 0);
|
|
|
data.setDfwc(dfwcData != null ? dfwcData.getDoubleValue() : 0);
|
|
@@ -531,7 +531,7 @@ public class WindDirectionService {
|
|
|
|
|
|
listObj.forEach(obj -> {
|
|
|
int[] count = WindALG.windDeviationRatio(filterls,equipments);//风向、对风误差
|
|
|
- List<Point> scatter = WindALG.windDeviationScatter(filterls,equipments);//风速、风向、对风误差
|
|
|
+ List<Point> scatter = WindALG.windDeviationScatter(filterls,equipments);//获取对风偏差散点——风速、风向、对风误差
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("wtId", obj.getAname());
|
|
|
map.put("count", count);
|