|
@@ -32,7 +32,7 @@ public class WindPowerInfo4Service {
|
|
|
private IProEconPowerstationInfoDay4Service proEconPowerstationInfoDay4Service;
|
|
|
|
|
|
@Resource
|
|
|
- private IProEconStateTransitionRatesService proEconStateTransitionRatesService;
|
|
|
+ private IProEconEquipmentInfoDay5Service proEconEquipmentInfoDay5Service;
|
|
|
|
|
|
@Resource
|
|
|
private IProEconFaultLiminatedefectsService proEconFaultLiminatedefectsService;
|
|
@@ -776,7 +776,7 @@ public class WindPowerInfo4Service {
|
|
|
///*******************************************日信息统计*********************************************************/
|
|
|
//MTTR、MTTF、MTBF
|
|
|
|
|
|
- if (!wtls.isEmpty()) {
|
|
|
+ if (null!=wtls && !wtls.isEmpty()) {
|
|
|
ProBasicEquipment wt = wtls.get(0);
|
|
|
if (StringUtils.notEmp(pepid2) && StringUtils.notEmp(pepid3)) {
|
|
|
//故障小时
|
|
@@ -807,20 +807,20 @@ public class WindPowerInfo4Service {
|
|
|
switch (types) {
|
|
|
case "0":
|
|
|
//日场站统计
|
|
|
- QueryWrapper<ProEconStateTransitionRates> queryWrapper = new QueryWrapper<>();
|
|
|
+ QueryWrapper<ProEconEquipmentInfoDay5> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("record_date",DateUtils.truncate(begin))
|
|
|
.eq("windpwoer_id",wt.getWindpowerstationId());
|
|
|
- List<ProEconStateTransitionRates> pestrls = proEconStateTransitionRatesService.list(queryWrapper);
|
|
|
+ List<ProEconEquipmentInfoDay5> pestrls = proEconEquipmentInfoDay5Service.list(queryWrapper);
|
|
|
// .stream()
|
|
|
// .filter(i -> i.getRecordDate().compareTo(begin) == 0 && i.getWindpwoerId().equals(wt.getWindpowerstationId())
|
|
|
// ).collect(Collectors.toList());
|
|
|
//大于3米20分钟转换及时次数
|
|
|
- DoubleSummaryStatistics timerate8_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate8).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate8_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate8).summaryStatistics();
|
|
|
//大于3米20分钟转换及时次数合计
|
|
|
double timerate8_sum = timerate8_summary.getSum();
|
|
|
|
|
|
//大于3米状态转换总次数次数
|
|
|
- DoubleSummaryStatistics timerate14_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate14).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate14_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate14).summaryStatistics();
|
|
|
//大于3米状态转换总次数合计
|
|
|
double timerate14_sum = timerate14_summary.getSum();
|
|
|
|
|
@@ -829,16 +829,16 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate8_sum).divide(new BigDecimal(timerate14_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setRztzhjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setRztzhjsl(100.0);
|
|
|
+ pewp.setRztzhjsl(0.0);
|
|
|
}
|
|
|
|
|
|
//20分钟复位及时次数
|
|
|
- DoubleSummaryStatistics timerate19_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate19).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate19_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate19).summaryStatistics();
|
|
|
//20分钟复位及时次数合计
|
|
|
double timerate19_sum = timerate19_summary.getSum();
|
|
|
|
|
|
//总复位次数
|
|
|
- DoubleSummaryStatistics timerate20_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate20).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate20_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate20).summaryStatistics();
|
|
|
//总复位次数合计
|
|
|
double timerate20_sum = timerate20_summary.getSum();
|
|
|
|
|
@@ -847,7 +847,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate19_sum).divide(new BigDecimal(timerate20_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setRfwjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setRfwjsl(100.0);
|
|
|
+ pewp.setRfwjsl(0.0);
|
|
|
}
|
|
|
QueryWrapper<ProEconFaultLiminatedefects> queryWrapper2 = new QueryWrapper<>();
|
|
|
queryWrapper2.eq("date_time",DateUtils.truncate(begin))
|
|
@@ -871,7 +871,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(right_sum).divide(new BigDecimal(fault_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setRgzxqjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setRgzxqjsl(100.0);
|
|
|
+ pewp.setRgzxqjsl(0.0);
|
|
|
}
|
|
|
//日场站统计
|
|
|
case "1":
|
|
@@ -879,17 +879,17 @@ public class WindPowerInfo4Service {
|
|
|
queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("record_date",DateUtils.truncate(begin))
|
|
|
.eq("project_id",wt.getProjectId());
|
|
|
- pestrls = proEconStateTransitionRatesService.list(queryWrapper);
|
|
|
+ pestrls = proEconEquipmentInfoDay5Service.list(queryWrapper);
|
|
|
// .stream()
|
|
|
// .filter(i -> i.getRecordDate().compareTo(begin) == 0 && i.getProjectId().equals(wt.getProjectId())
|
|
|
// ).collect(Collectors.toList());
|
|
|
//大于3米20分钟转换及时次数
|
|
|
- timerate8_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate8).summaryStatistics();
|
|
|
+ timerate8_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate8).summaryStatistics();
|
|
|
//大于3米20分钟转换及时次数合计
|
|
|
timerate8_sum = timerate8_summary.getSum();
|
|
|
|
|
|
//大于3米状态转换总次数次数
|
|
|
- timerate14_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate14).summaryStatistics();
|
|
|
+ timerate14_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate14).summaryStatistics();
|
|
|
//大于3米状态转换总次数合计
|
|
|
timerate14_sum = timerate14_summary.getSum();
|
|
|
|
|
@@ -898,16 +898,16 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate8_sum).divide(new BigDecimal(timerate14_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setRztzhjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setRztzhjsl(100.0);
|
|
|
+ pewp.setRztzhjsl(0.0);
|
|
|
}
|
|
|
|
|
|
//20分钟复位及时次数
|
|
|
- timerate19_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate19).summaryStatistics();
|
|
|
+ timerate19_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate19).summaryStatistics();
|
|
|
//20分钟复位及时次数合计
|
|
|
timerate19_sum = timerate19_summary.getSum();
|
|
|
|
|
|
//总复位次数
|
|
|
- timerate20_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate20).summaryStatistics();
|
|
|
+ timerate20_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate20).summaryStatistics();
|
|
|
//总复位次数合计
|
|
|
timerate20_sum = timerate20_summary.getSum();
|
|
|
|
|
@@ -916,7 +916,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate19_sum).divide(new BigDecimal(timerate20_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setRfwjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setRfwjsl(100.0);
|
|
|
+ pewp.setRfwjsl(0.0);
|
|
|
}
|
|
|
queryWrapper2 = new QueryWrapper<>();
|
|
|
queryWrapper2.eq("date_time",DateUtils.truncate(begin))
|
|
@@ -940,7 +940,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(right_sum).divide(new BigDecimal(fault_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setRgzxqjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setRgzxqjsl(100.0);
|
|
|
+ pewp.setRgzxqjsl(0.0);
|
|
|
}
|
|
|
//日工程统计
|
|
|
case "2":
|
|
@@ -948,17 +948,17 @@ public class WindPowerInfo4Service {
|
|
|
queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("record_date",DateUtils.truncate(begin))
|
|
|
.eq("line_id",wt.getLineId());
|
|
|
- pestrls = proEconStateTransitionRatesService.list(queryWrapper);
|
|
|
+ pestrls = proEconEquipmentInfoDay5Service.list(queryWrapper);
|
|
|
// .stream()
|
|
|
// .filter(i -> i.getRecordDate().compareTo(begin) == 0 && i.getLineId().equals(wt.getLineId())
|
|
|
// ).collect(Collectors.toList());
|
|
|
//大于3米20分钟转换及时次数
|
|
|
- timerate8_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate8).summaryStatistics();
|
|
|
+ timerate8_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate8).summaryStatistics();
|
|
|
//大于3米20分钟转换及时次数合计
|
|
|
timerate8_sum = timerate8_summary.getSum();
|
|
|
|
|
|
//大于3米状态转换总次数次数
|
|
|
- timerate14_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate14).summaryStatistics();
|
|
|
+ timerate14_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate14).summaryStatistics();
|
|
|
//大于3米状态转换总次数合计
|
|
|
timerate14_sum = timerate14_summary.getSum();
|
|
|
|
|
@@ -967,16 +967,16 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate8_sum).divide(new BigDecimal(timerate14_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setRztzhjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setRztzhjsl(100.0);
|
|
|
+ pewp.setRztzhjsl(0.0);
|
|
|
}
|
|
|
|
|
|
//20分钟复位及时次数
|
|
|
- timerate19_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate19).summaryStatistics();
|
|
|
+ timerate19_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate19).summaryStatistics();
|
|
|
//20分钟复位及时次数合计
|
|
|
timerate19_sum = timerate19_summary.getSum();
|
|
|
|
|
|
//总复位次数
|
|
|
- timerate20_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate20).summaryStatistics();
|
|
|
+ timerate20_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate20).summaryStatistics();
|
|
|
//总复位次数合计
|
|
|
timerate20_sum = timerate20_summary.getSum();
|
|
|
|
|
@@ -985,7 +985,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate19_sum).divide(new BigDecimal(timerate20_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setRfwjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setRfwjsl(100.0);
|
|
|
+ pewp.setRfwjsl(0.0);
|
|
|
}
|
|
|
queryWrapper2 = new QueryWrapper<>();
|
|
|
queryWrapper2.eq("date_time",DateUtils.truncate(begin))
|
|
@@ -1010,7 +1010,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(right_sum).divide(new BigDecimal(fault_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setRgzxqjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setRgzxqjsl(100.0);
|
|
|
+ pewp.setRgzxqjsl(0.0);
|
|
|
}
|
|
|
//日线路统计
|
|
|
default:
|
|
@@ -1072,9 +1072,9 @@ public class WindPowerInfo4Service {
|
|
|
case "0":
|
|
|
//月场站统计
|
|
|
|
|
|
- QueryWrapper<ProEconStateTransitionRates> queryWrapper = new QueryWrapper<>();
|
|
|
+ QueryWrapper<ProEconEquipmentInfoDay5> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.ge("record_date",monthbegin).le("record_date",end).eq("windpwoer_id",wt.getWindpowerstationId());
|
|
|
- List<ProEconStateTransitionRates> pestrls = proEconStateTransitionRatesService.list(queryWrapper);
|
|
|
+ List<ProEconEquipmentInfoDay5> pestrls = proEconEquipmentInfoDay5Service.list(queryWrapper);
|
|
|
// .stream()
|
|
|
// .filter(i ->
|
|
|
// (i.getRecordDate().compareTo(monthbegin) == 0 || i.getRecordDate().after(monthbegin))
|
|
@@ -1082,12 +1082,12 @@ public class WindPowerInfo4Service {
|
|
|
// && i.getWindpwoerId().equals(wt.getWindpowerstationId())
|
|
|
// ).collect(Collectors.toList());
|
|
|
//大于3米20分钟转换及时次数
|
|
|
- DoubleSummaryStatistics timerate8_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate8).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate8_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate8).summaryStatistics();
|
|
|
//大于3米20分钟转换及时次数合计
|
|
|
double timerate8_sum = timerate8_summary.getSum();
|
|
|
|
|
|
//大于3米状态转换总次数次数
|
|
|
- DoubleSummaryStatistics timerate14_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate14).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate14_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate14).summaryStatistics();
|
|
|
//大于3米状态转换总次数合计
|
|
|
double timerate14_sum = timerate14_summary.getSum();
|
|
|
|
|
@@ -1096,16 +1096,16 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate8_sum).divide(new BigDecimal(timerate14_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setYztzhjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setYztzhjsl(100.0);
|
|
|
+ pewp.setYztzhjsl(0.0);
|
|
|
}
|
|
|
|
|
|
//20分钟复位及时次数
|
|
|
- DoubleSummaryStatistics timerate19_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate19).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate19_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate19).summaryStatistics();
|
|
|
//20分钟复位及时次数合计
|
|
|
double timerate19_sum = timerate19_summary.getSum();
|
|
|
|
|
|
//总复位次数
|
|
|
- DoubleSummaryStatistics timerate20_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate20).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate20_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate20).summaryStatistics();
|
|
|
//总复位次数合计
|
|
|
double timerate20_sum = timerate20_summary.getSum();
|
|
|
|
|
@@ -1114,7 +1114,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate19_sum).divide(new BigDecimal(timerate20_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setYfwjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setYfwjsl(100.0);
|
|
|
+ pewp.setYfwjsl(0.0);
|
|
|
}
|
|
|
QueryWrapper<ProEconFaultLiminatedefects> queryWrapper2 = new QueryWrapper<>();
|
|
|
queryWrapper2.ge("date_time",monthbegin).le("date_time",end).eq("windpowerstation_id",wt.getWindpowerstationId());
|
|
@@ -1140,7 +1140,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(right_sum).divide(new BigDecimal(fault_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setYgzxqjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setYgzxqjsl(100.0);
|
|
|
+ pewp.setYgzxqjsl(0.0);
|
|
|
}
|
|
|
//月场站统计
|
|
|
case "1":
|
|
@@ -1148,7 +1148,7 @@ public class WindPowerInfo4Service {
|
|
|
|
|
|
queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.ge("record_date",monthbegin).le("record_date",end).eq("project_id",wt.getProjectId());
|
|
|
- pestrls = proEconStateTransitionRatesService.list(queryWrapper);
|
|
|
+ pestrls = proEconEquipmentInfoDay5Service.list(queryWrapper);
|
|
|
// .stream()
|
|
|
// .filter(i ->
|
|
|
// (i.getRecordDate().compareTo(monthbegin) == 0 || i.getRecordDate().after(monthbegin))
|
|
@@ -1156,12 +1156,12 @@ public class WindPowerInfo4Service {
|
|
|
// && i.getProjectId().equals(wt.getProjectId())
|
|
|
// ).collect(Collectors.toList());
|
|
|
//大于3米20分钟转换及时次数
|
|
|
- timerate8_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate8).summaryStatistics();
|
|
|
+ timerate8_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate8).summaryStatistics();
|
|
|
//大于3米20分钟转换及时次数合计
|
|
|
timerate8_sum = timerate8_summary.getSum();
|
|
|
|
|
|
//大于3米状态转换总次数次数
|
|
|
- timerate14_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate14).summaryStatistics();
|
|
|
+ timerate14_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate14).summaryStatistics();
|
|
|
//大于3米状态转换总次数合计
|
|
|
timerate14_sum = timerate14_summary.getSum();
|
|
|
|
|
@@ -1170,16 +1170,16 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate8_sum).divide(new BigDecimal(timerate14_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setYztzhjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setYztzhjsl(100.0);
|
|
|
+ pewp.setYztzhjsl(0.0);
|
|
|
}
|
|
|
|
|
|
//20分钟复位及时次数
|
|
|
- timerate19_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate19).summaryStatistics();
|
|
|
+ timerate19_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate19).summaryStatistics();
|
|
|
//20分钟复位及时次数合计
|
|
|
timerate19_sum = timerate19_summary.getSum();
|
|
|
|
|
|
//总复位次数
|
|
|
- timerate20_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate20).summaryStatistics();
|
|
|
+ timerate20_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate20).summaryStatistics();
|
|
|
//总复位次数合计
|
|
|
timerate20_sum = timerate20_summary.getSum();
|
|
|
|
|
@@ -1188,7 +1188,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate19_sum).divide(new BigDecimal(timerate20_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setYfwjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setYfwjsl(100.0);
|
|
|
+ pewp.setYfwjsl(0.0);
|
|
|
}
|
|
|
queryWrapper2 = new QueryWrapper<>();
|
|
|
queryWrapper2.ge("date_time",monthbegin).le("date_time",end).eq("project_id",wt.getProjectId());
|
|
@@ -1214,14 +1214,14 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(right_sum).divide(new BigDecimal(fault_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setYgzxqjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setYgzxqjsl(100.0);
|
|
|
+ pewp.setYgzxqjsl(0.0);
|
|
|
}
|
|
|
//月工程统计
|
|
|
case "2":
|
|
|
//月线路统计
|
|
|
queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.ge("record_date",monthbegin).le("record_date",end).eq("line_id",wt.getLineId());
|
|
|
- pestrls = proEconStateTransitionRatesService.list(queryWrapper);
|
|
|
+ pestrls = proEconEquipmentInfoDay5Service.list(queryWrapper);
|
|
|
// .stream()
|
|
|
// .filter(i ->
|
|
|
// (i.getRecordDate().compareTo(monthbegin) == 0 || i.getRecordDate().after(monthbegin))
|
|
@@ -1229,12 +1229,12 @@ public class WindPowerInfo4Service {
|
|
|
// && i.getLineId().equals(wt.getLineId())
|
|
|
// ).collect(Collectors.toList());
|
|
|
//大于3米20分钟转换及时次数
|
|
|
- timerate8_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate8).summaryStatistics();
|
|
|
+ timerate8_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate8).summaryStatistics();
|
|
|
//大于3米20分钟转换及时次数合计
|
|
|
timerate8_sum = timerate8_summary.getSum();
|
|
|
|
|
|
//大于3米状态转换总次数次数
|
|
|
- timerate14_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate14).summaryStatistics();
|
|
|
+ timerate14_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate14).summaryStatistics();
|
|
|
//大于3米状态转换总次数合计
|
|
|
timerate14_sum = timerate14_summary.getSum();
|
|
|
|
|
@@ -1243,16 +1243,16 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate8_sum).divide(new BigDecimal(timerate14_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setYztzhjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setYztzhjsl(100.0);
|
|
|
+ pewp.setYztzhjsl(0.0);
|
|
|
}
|
|
|
|
|
|
//20分钟复位及时次数
|
|
|
- timerate19_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate19).summaryStatistics();
|
|
|
+ timerate19_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate19).summaryStatistics();
|
|
|
//20分钟复位及时次数合计
|
|
|
timerate19_sum = timerate19_summary.getSum();
|
|
|
|
|
|
//总复位次数
|
|
|
- timerate20_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate20).summaryStatistics();
|
|
|
+ timerate20_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate20).summaryStatistics();
|
|
|
//总复位次数合计
|
|
|
timerate20_sum = timerate20_summary.getSum();
|
|
|
|
|
@@ -1261,7 +1261,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate19_sum).divide(new BigDecimal(timerate20_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setYfwjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setYfwjsl(100.0);
|
|
|
+ pewp.setYfwjsl(0.0);
|
|
|
}
|
|
|
queryWrapper2 = new QueryWrapper<>();
|
|
|
queryWrapper2.ge("date_time",monthbegin).le("date_time",end).eq("line_Id",wt.getLineId());
|
|
@@ -1287,7 +1287,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(right_sum).divide(new BigDecimal(fault_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setYgzxqjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setYgzxqjsl(100.0);
|
|
|
+ pewp.setYgzxqjsl(0.0);
|
|
|
}
|
|
|
//月线路统计
|
|
|
default:
|
|
@@ -1350,9 +1350,9 @@ public class WindPowerInfo4Service {
|
|
|
switch (types) {
|
|
|
case "0":
|
|
|
//年场站统计
|
|
|
- QueryWrapper<ProEconStateTransitionRates> queryWrapper = new QueryWrapper<>();
|
|
|
+ QueryWrapper<ProEconEquipmentInfoDay5> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.ge("record_date",yearbegin).le("record_date",end).eq("windpwoer_id",wt.getWindpowerstationId());
|
|
|
- List<ProEconStateTransitionRates> pestrls = proEconStateTransitionRatesService.list(queryWrapper);
|
|
|
+ List<ProEconEquipmentInfoDay5> pestrls = proEconEquipmentInfoDay5Service.list(queryWrapper);
|
|
|
// .stream()
|
|
|
// .filter(i ->
|
|
|
// (i.getRecordDate().compareTo(yearbegin) == 0 || i.getRecordDate().after(yearbegin))
|
|
@@ -1360,12 +1360,12 @@ public class WindPowerInfo4Service {
|
|
|
// && i.getWindpwoerId().equals(wt.getWindpowerstationId())
|
|
|
// ).collect(Collectors.toList());
|
|
|
//大于3米20分钟转换及时次数
|
|
|
- DoubleSummaryStatistics timerate8_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate8).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate8_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate8).summaryStatistics();
|
|
|
//大于3米20分钟转换及时次数合计
|
|
|
double timerate8_sum = timerate8_summary.getSum();
|
|
|
|
|
|
//大于3米状态转换总次数次数
|
|
|
- DoubleSummaryStatistics timerate14_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate14).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate14_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate14).summaryStatistics();
|
|
|
//大于3米状态转换总次数合计
|
|
|
double timerate14_sum = timerate14_summary.getSum();
|
|
|
|
|
@@ -1374,16 +1374,16 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate8_sum).divide(new BigDecimal(timerate14_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setNztzhjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setNztzhjsl(100.0);
|
|
|
+ pewp.setNztzhjsl(0.0);
|
|
|
}
|
|
|
|
|
|
//20分钟复位及时次数
|
|
|
- DoubleSummaryStatistics timerate19_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate19).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate19_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate19).summaryStatistics();
|
|
|
//20分钟复位及时次数合计
|
|
|
double timerate19_sum = timerate19_summary.getSum();
|
|
|
|
|
|
//总复位次数
|
|
|
- DoubleSummaryStatistics timerate20_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate20).summaryStatistics();
|
|
|
+ DoubleSummaryStatistics timerate20_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate20).summaryStatistics();
|
|
|
//总复位次数合计
|
|
|
double timerate20_sum = timerate20_summary.getSum();
|
|
|
|
|
@@ -1392,7 +1392,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate19_sum).divide(new BigDecimal(timerate20_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setNfwjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setNfwjsl(100.0);
|
|
|
+ pewp.setNfwjsl(0.0);
|
|
|
}
|
|
|
|
|
|
QueryWrapper<ProEconFaultLiminatedefects> queryWrapper2 = new QueryWrapper<>();
|
|
@@ -1419,14 +1419,14 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(right_sum).divide(new BigDecimal(fault_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setNgzxqjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setNgzxqjsl(100.0);
|
|
|
+ pewp.setNgzxqjsl(0.0);
|
|
|
}
|
|
|
//年场站统计
|
|
|
case "1":
|
|
|
//年工程统计
|
|
|
queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.ge("record_date",yearbegin).le("record_date",end).eq("windpwoer_id",wt.getWindpowerstationId());
|
|
|
- pestrls = proEconStateTransitionRatesService.list(queryWrapper);
|
|
|
+ pestrls = proEconEquipmentInfoDay5Service.list(queryWrapper);
|
|
|
// .stream()
|
|
|
// .filter(i ->
|
|
|
// (i.getRecordDate().compareTo(yearbegin) == 0 || i.getRecordDate().after(yearbegin))
|
|
@@ -1434,12 +1434,12 @@ public class WindPowerInfo4Service {
|
|
|
// && i.getProjectId().equals(wt.getProjectId())
|
|
|
// ).collect(Collectors.toList());
|
|
|
//大于3米20分钟转换及时次数
|
|
|
- timerate8_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate8).summaryStatistics();
|
|
|
+ timerate8_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate8).summaryStatistics();
|
|
|
//大于3米20分钟转换及时次数合计
|
|
|
timerate8_sum = timerate8_summary.getSum();
|
|
|
|
|
|
//大于3米状态转换总次数次数
|
|
|
- timerate14_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate14).summaryStatistics();
|
|
|
+ timerate14_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate14).summaryStatistics();
|
|
|
//大于3米状态转换总次数合计
|
|
|
timerate14_sum = timerate14_summary.getSum();
|
|
|
|
|
@@ -1448,16 +1448,16 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate8_sum).divide(new BigDecimal(timerate14_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setNztzhjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setNztzhjsl(100.0);
|
|
|
+ pewp.setNztzhjsl(0.0);
|
|
|
}
|
|
|
|
|
|
//20分钟复位及时次数
|
|
|
- timerate19_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate19).summaryStatistics();
|
|
|
+ timerate19_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate19).summaryStatistics();
|
|
|
//20分钟复位及时次数合计
|
|
|
timerate19_sum = timerate19_summary.getSum();
|
|
|
|
|
|
//总复位次数
|
|
|
- timerate20_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate20).summaryStatistics();
|
|
|
+ timerate20_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate20).summaryStatistics();
|
|
|
//总复位次数合计
|
|
|
timerate20_sum = timerate20_summary.getSum();
|
|
|
|
|
@@ -1466,7 +1466,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate19_sum).divide(new BigDecimal(timerate20_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setNfwjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setNfwjsl(100.0);
|
|
|
+ pewp.setNfwjsl(0.0);
|
|
|
}
|
|
|
|
|
|
queryWrapper2 = new QueryWrapper<>();
|
|
@@ -1493,14 +1493,14 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(right_sum).divide(new BigDecimal(fault_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setNgzxqjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setNgzxqjsl(100.0);
|
|
|
+ pewp.setNgzxqjsl(0.0);
|
|
|
}
|
|
|
//年工程统计
|
|
|
case "2":
|
|
|
//年线路统计
|
|
|
queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.ge("record_date",yearbegin).le("record_date",end).eq("line_id",wt.getLineId());
|
|
|
- pestrls = proEconStateTransitionRatesService.list(queryWrapper);
|
|
|
+ pestrls = proEconEquipmentInfoDay5Service.list(queryWrapper);
|
|
|
// .stream()
|
|
|
// .filter(i ->
|
|
|
// (i.getRecordDate().compareTo(yearbegin) == 0 || i.getRecordDate().after(yearbegin))
|
|
@@ -1508,12 +1508,12 @@ public class WindPowerInfo4Service {
|
|
|
// && i.getLineId().equals(wt.getLineId())
|
|
|
// ).collect(Collectors.toList());
|
|
|
//大于3米20分钟转换及时次数
|
|
|
- timerate8_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate8).summaryStatistics();
|
|
|
+ timerate8_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate8).summaryStatistics();
|
|
|
//大于3米20分钟转换及时次数合计
|
|
|
timerate8_sum = timerate8_summary.getSum();
|
|
|
|
|
|
//大于3米状态转换总次数次数
|
|
|
- timerate14_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate14).summaryStatistics();
|
|
|
+ timerate14_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate14).summaryStatistics();
|
|
|
//大于3米状态转换总次数合计
|
|
|
timerate14_sum = timerate14_summary.getSum();
|
|
|
|
|
@@ -1522,16 +1522,16 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate8_sum).divide(new BigDecimal(timerate14_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setNztzhjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setNztzhjsl(100.0);
|
|
|
+ pewp.setNztzhjsl(0.0);
|
|
|
}
|
|
|
|
|
|
//20分钟复位及时次数
|
|
|
- timerate19_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate19).summaryStatistics();
|
|
|
+ timerate19_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate19).summaryStatistics();
|
|
|
//20分钟复位及时次数合计
|
|
|
timerate19_sum = timerate19_summary.getSum();
|
|
|
|
|
|
//总复位次数
|
|
|
- timerate20_summary = pestrls.stream().mapToDouble(ProEconStateTransitionRates::getTimerate20).summaryStatistics();
|
|
|
+ timerate20_summary = pestrls.stream().mapToDouble(ProEconEquipmentInfoDay5::getTimerate20).summaryStatistics();
|
|
|
//总复位次数合计
|
|
|
timerate20_sum = timerate20_summary.getSum();
|
|
|
|
|
@@ -1540,7 +1540,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(timerate19_sum).divide(new BigDecimal(timerate20_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setNfwjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setNfwjsl(100.0);
|
|
|
+ pewp.setNfwjsl(0.0);
|
|
|
}
|
|
|
queryWrapper2 = new QueryWrapper<>();
|
|
|
queryWrapper2.ge("date_time",monthbegin).le("date_time",end).eq("line_id",wt.getLineId());
|
|
@@ -1566,7 +1566,7 @@ public class WindPowerInfo4Service {
|
|
|
double temp = new BigDecimal(right_sum).divide(new BigDecimal(fault_sum), 2, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
pewp.setNgzxqjsl(temp);
|
|
|
} else {
|
|
|
- pewp.setNgzxqjsl(100.0);
|
|
|
+ pewp.setNgzxqjsl(0.0);
|
|
|
}
|
|
|
//年线路统计
|
|
|
default:
|