|
|
@@ -61,6 +61,9 @@ public class SpecificService {
|
|
|
@Resource
|
|
|
private IStationInfoMonthService stationInfoMonthService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private IProEconBrownoutsEvent2Service proEconBrownoutsEvent2Service;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 获取专题分析上面部分
|
|
|
@@ -1116,6 +1119,8 @@ public class SpecificService {
|
|
|
qw2.eq("to_char(record_date,'yyyy-MM')", yearmonth);
|
|
|
qw.groupBy("to_char(record_date,'yyyy-MM'),foreign_key_id");
|
|
|
List<ProEconPowerstationInfoDay4> dyList = proEconPowerstationInfoDay4Service.list(qw);
|
|
|
+ String yearmon = "month" ;
|
|
|
+ Map<String, Double> fwXq = proEconBrownoutsEvent2Service.getFwXq(yearmonth,yearmon);
|
|
|
List<StationInfoMonth> list = stationInfoMonthService.list(qw2);
|
|
|
if (StringUtils.isNotEmpty(dyList)) {
|
|
|
dyList.stream().forEach(i -> {
|
|
|
@@ -1128,9 +1133,9 @@ public class SpecificService {
|
|
|
leftVo.setMtbf(0.0);
|
|
|
leftVo.setMttr(0.0);
|
|
|
}
|
|
|
- leftVo.setFwjsl(DoubleUtils.keepPrecision(i.getYfwjsl().doubleValue(), 2));
|
|
|
+ leftVo.setFwjsl(fwXq.get("维护"));
|
|
|
leftVo.setZtzhl(DoubleUtils.keepPrecision(i.getYztzhjsl().doubleValue(), 2));
|
|
|
- leftVo.setXqjsl(DoubleUtils.keepPrecision(i.getYgzxqjsl().doubleValue(), 2));
|
|
|
+ leftVo.setXqjsl(fwXq.get("故障"));
|
|
|
|
|
|
monthresultList.add(leftVo);
|
|
|
});
|
|
|
@@ -1246,6 +1251,8 @@ public class SpecificService {
|
|
|
qw.groupBy("to_char(record_date,'yyyy'),foreign_key_id");
|
|
|
qw2.groupBy("to_char(record_date,'yyyy'),station_id");
|
|
|
List<ProEconPowerstationInfoDay4> dyList = proEconPowerstationInfoDay4Service.list(qw);
|
|
|
+ String yearmon = "year" ;
|
|
|
+ Map<String, Double> fwXq = proEconBrownoutsEvent2Service.getFwXq(yearmonth,yearmon);
|
|
|
List<StationInfoMonth> list = stationInfoMonthService.list(qw2);
|
|
|
if (StringUtils.isNotEmpty(dyList)) {
|
|
|
dyList.stream().forEach(i -> {
|
|
|
@@ -1258,9 +1265,9 @@ public class SpecificService {
|
|
|
rightVo.setMtbf(0.0);
|
|
|
rightVo.setMttr(0.0);
|
|
|
}
|
|
|
- rightVo.setFwjsl(DoubleUtils.keepPrecision(i.getNfwjsl().doubleValue(), 2));
|
|
|
+ rightVo.setFwjsl(fwXq.get("维护"));
|
|
|
rightVo.setZtzhl(DoubleUtils.keepPrecision(i.getNztzhjsl().doubleValue(), 2));
|
|
|
- rightVo.setXqjsl(DoubleUtils.keepPrecision(i.getNgzxqjsl().doubleValue(), 2));
|
|
|
+ rightVo.setXqjsl(fwXq.get("故障"));
|
|
|
|
|
|
yearresultList.add(rightVo);
|
|
|
});
|