|
@@ -41,6 +41,7 @@ public class ReportService {
|
|
* 曲线偏差率分析
|
|
* 曲线偏差率分析
|
|
*/
|
|
*/
|
|
public void calCurve(Date st, Date et){
|
|
public void calCurve(Date st, Date et){
|
|
|
|
+ log.info("=====曲线偏差率分析");
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
var list = powerService.selectByTime(Constants.DATA_FITTING, st, et);
|
|
var list = powerService.selectByTime(Constants.DATA_FITTING, st, et);
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerfittinganalysis::getStationcn, Collectors.toList()));
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerfittinganalysis::getStationcn, Collectors.toList()));
|
|
@@ -104,6 +105,7 @@ public class ReportService {
|
|
* 静态偏航对风分析
|
|
* 静态偏航对风分析
|
|
*/
|
|
*/
|
|
public void calJTPCDF(Date st, Date et){
|
|
public void calJTPCDF(Date st, Date et){
|
|
|
|
+ log.info("=====静态偏航对风分析");
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
var list = powerService.selectByTime(Constants.DATA_PROCESS, st, et);
|
|
var list = powerService.selectByTime(Constants.DATA_PROCESS, st, et);
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerfittinganalysis::getStationcn, Collectors.toList()));
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerfittinganalysis::getStationcn, Collectors.toList()));
|
|
@@ -165,6 +167,7 @@ public class ReportService {
|
|
* 容量系数分析
|
|
* 容量系数分析
|
|
*/
|
|
*/
|
|
public void calMRLXS(Date st, Date et){
|
|
public void calMRLXS(Date st, Date et){
|
|
|
|
+ log.info("=====容量系数分析");
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
var list = windinfoService.selectByTime(DateUtil.format(st, DateUtil.YYYY_MM), DateUtil.format(et, DateUtil.YYYY_MM));
|
|
var list = windinfoService.selectByTime(DateUtil.format(st, DateUtil.YYYY_MM), DateUtil.format(et, DateUtil.YYYY_MM));
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerwindinfo::getStation, Collectors.toList()));
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerwindinfo::getStation, Collectors.toList()));
|
|
@@ -204,6 +207,7 @@ public class ReportService {
|
|
* 桨距角分析
|
|
* 桨距角分析
|
|
*/
|
|
*/
|
|
public void calBlade(Date st, Date et){
|
|
public void calBlade(Date st, Date et){
|
|
|
|
+ log.info("=====桨距角分析");
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
var list = powerService.selectByTime(Constants.DATA_PROCESS, st, et);
|
|
var list = powerService.selectByTime(Constants.DATA_PROCESS, st, et);
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerfittinganalysis::getStationcn, Collectors.toList()));
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerfittinganalysis::getStationcn, Collectors.toList()));
|
|
@@ -223,16 +227,15 @@ public class ReportService {
|
|
}
|
|
}
|
|
double angle = (item.getYp1() + item.getYp2() + item.getYp3()) / 3;
|
|
double angle = (item.getYp1() + item.getYp2() + item.getYp3()) / 3;
|
|
double avg = new BigDecimal(angle).setScale(2, RoundingMode.CEILING).doubleValue();
|
|
double avg = new BigDecimal(angle).setScale(2, RoundingMode.CEILING).doubleValue();
|
|
- if (item.getFilter() == 0){
|
|
|
|
|
|
+ if (item.getFilter() == 0 && avg < 20){
|
|
//风机正常并网且风速在5-12m
|
|
//风机正常并网且风速在5-12m
|
|
- if (item.getMxzt() == 2 && item.getSpeed() >= 5 && item.getSpeed() <= 12 && avg > 8){
|
|
|
|
|
|
+ if (item.getMxzt() == 2 && item.getSpeed() >= 5 && item.getSpeed() <= 12 && avg > 6){
|
|
countBW += 1;
|
|
countBW += 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//风机在不发电情况下
|
|
//风机在不发电情况下
|
|
- if (item.getMxzt() != 2 && item.getMxzt() != 3 && item.getMxzt() != 10
|
|
|
|
- && item.getMxzt() != 11 && item.getMxzt() != 12 && avg > 60){
|
|
|
|
- if ((90 - avg) > 8){
|
|
|
|
|
|
+ if (item.getFilter() == 2 && avg > 70){
|
|
|
|
+ if ((90 - avg) > 6){
|
|
countTJ += 1;
|
|
countTJ += 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -263,6 +266,7 @@ public class ReportService {
|
|
* 停机时间
|
|
* 停机时间
|
|
*/
|
|
*/
|
|
public void calStopTime(Date st, Date et){
|
|
public void calStopTime(Date st, Date et){
|
|
|
|
+ log.info("=====停机时间");
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
List<Poweranalysisreport> result = new ArrayList<>();
|
|
var list = powerService.selectByTime(Constants.DATA_PREPARE, st, et);
|
|
var list = powerService.selectByTime(Constants.DATA_PREPARE, st, et);
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerfittinganalysis::getStationcn, Collectors.toList()));
|
|
val collect = list.stream().collect(Collectors.groupingBy(Powerfittinganalysis::getStationcn, Collectors.toList()));
|