|
@@ -5,10 +5,8 @@ import com.gyee.frame.common.conf.AjaxStatus;
|
|
|
import com.gyee.frame.common.domain.AjaxResult;
|
|
|
import com.gyee.frame.common.exception.enums.QiNiuErrorEnum;
|
|
|
import com.gyee.frame.common.feign.RemoteServiceBuilder;
|
|
|
-import com.gyee.frame.model.auto.Metrics;
|
|
|
-import com.gyee.frame.model.auto.MetricsUniformCode;
|
|
|
-import com.gyee.frame.model.auto.WindTurbineTestingPointAi2;
|
|
|
-import com.gyee.frame.model.auto.WindTurbineTestingPointDi2;
|
|
|
+import com.gyee.frame.common.spring.InitialRunner;
|
|
|
+import com.gyee.frame.model.auto.*;
|
|
|
import com.gyee.frame.model.custom.export.TsPointData;
|
|
|
import com.gyee.frame.model.custom.weather.Sys;
|
|
|
import com.gyee.frame.service.Alertrule2ervice;
|
|
@@ -79,7 +77,7 @@ public class ReliabilityAnalysisController {
|
|
|
// 查询点的单位和描述属性
|
|
|
String unit = "--";
|
|
|
String desc = "----";
|
|
|
- List<MetricsUniformCode> metricsList = uniformCodeService.getListByStationAndUniforCode(station, windAI.getUniformcode());
|
|
|
+ /*List<MetricsUniformCode> metricsList = uniformCodeService.getListByStationAndUniforCode(station, windAI.getUniformcode());
|
|
|
if (metricsList != null && metricsList.size() > 0) {
|
|
|
MetricsUniformCode metricsUniformCode = metricsList.get(0);
|
|
|
List<Metrics> metrics = metricsService.getMetricsByMetricsId(metricsUniformCode.getMetricid());
|
|
@@ -87,9 +85,11 @@ public class ReliabilityAnalysisController {
|
|
|
unit = metrics.get(0).getUnitname();
|
|
|
desc = metrics.get(1).getMetricname();
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ MetricsCode metrics=uniformCodeService.getListName(wtId,windAI.getUniformcode());
|
|
|
+ String nm = metrics==null?"":metrics.getName();
|
|
|
map.put("unit", unit);
|
|
|
- map.put("name", desc);
|
|
|
+ map.put("name", nm);
|
|
|
map.put("data", data);
|
|
|
|
|
|
list.add(map);
|