|
@@ -6,6 +6,7 @@ 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.common.spring.InitialRunner;
|
|
|
+import com.gyee.frame.mapper.auto.WindturbineMapper;
|
|
|
import com.gyee.frame.model.auto.*;
|
|
|
import com.gyee.frame.model.custom.export.TsPointData;
|
|
|
import com.gyee.frame.model.custom.weather.Sys;
|
|
@@ -15,6 +16,7 @@ import com.gyee.frame.service.WindTurbineTestingPointDiService;
|
|
|
import com.gyee.frame.service.health.MetricsService;
|
|
|
import com.gyee.frame.service.health.MetricsUniformCodeService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -38,6 +40,8 @@ public class ReliabilityAnalysisController {
|
|
|
private WindTurbineTestingPointAiService windAIService;
|
|
|
@Resource
|
|
|
private WindTurbineTestingPointDiService windDIService;
|
|
|
+ @Autowired
|
|
|
+ private WindturbineMapper windturbineMapper;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -59,8 +63,9 @@ public class ReliabilityAnalysisController {
|
|
|
@RequestParam(name = "interval", required = false) Optional<Integer> interval){
|
|
|
|
|
|
List<Object> list = new ArrayList<>();
|
|
|
+ Windturbine wtmid = windturbineMapper.selectByPrimaryKey(wtId);
|
|
|
|
|
|
- List<String> codes = alertrule2ervice.getUniformCodeByNameAndStation(name, station, wtId);
|
|
|
+ List<String> codes = alertrule2ervice.getUniformCodeByNameAndStation(name, station, wtmid.getModelid());
|
|
|
if (codes == null || codes.size() == 0)
|
|
|
return AjaxResult.successData(AjaxStatus.success.code, list);
|
|
|
|