|
@@ -339,7 +339,10 @@ public class PowerCurveFittingByTimeService {
|
|
|
for (ProBasicEquipment wt : CacheContext.wtls) {
|
|
|
String windturbineId = wt.getId();
|
|
|
|
|
|
-
|
|
|
+ if(wt.getWindpowerstationId().contains(WpType.GDC.id))
|
|
|
+ {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
Map<String, ProBasicEquipmentPoint> windturbinetestingpointnewMap = CacheContext.wtpAimap.get(wt.getId());
|
|
|
//设备有功功率
|
|
|
String pointIdGL = windturbinetestingpointnewMap.get(ContantXk.CJ_SSGL).getNemCode();
|
|
@@ -520,7 +523,7 @@ public class PowerCurveFittingByTimeService {
|
|
|
cfmmonth.setStandardDeviationRate(pcl(windMap.get(key).getYsjglPoints(), monthStandardPoints, modelpower));
|
|
|
|
|
|
mainls.add(cfmmonth);
|
|
|
- // proEconCurveFittMonthMainService.save(cfmmonth);
|
|
|
+ // proEconCurveFittMonthMainService.save(cfmmonth);
|
|
|
|
|
|
//*********************************************当月曲线偏差记录**********************************************************/
|
|
|
List<ProEconCurveFittMonthSub> subls=new ArrayList<>();
|
|
@@ -593,7 +596,10 @@ public class PowerCurveFittingByTimeService {
|
|
|
for (ProBasicEquipment wt : CacheContext.wtls) {
|
|
|
String windturbineId = wt.getId();
|
|
|
|
|
|
-
|
|
|
+ if(wt.getWindpowerstationId().contains(WpType.GDC.id))
|
|
|
+ {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
Map<String, ProBasicEquipmentPoint> windturbinetestingpointnewMap = CacheContext.wtpAimap.get(wt.getId());
|
|
|
//设备有功功率
|
|
|
String pointIdGL = windturbinetestingpointnewMap.get(ContantXk.CJ_SSGL).getNemCode();
|
|
@@ -653,7 +659,7 @@ public class PowerCurveFittingByTimeService {
|
|
|
|
|
|
|
|
|
//拟合年功率曲线
|
|
|
- // curveFittingBuilder(begin, end, dimension, scale, windMap.get(key).getPointIdGL(), windMap.get(key).getPointIdFS(), windMap.get(key).getPointIdZT(), windMap.get(key).getNsjglPoints(), windMap.get(key).getNzyglPoints(), key);
|
|
|
+ // curveFittingBuilder(begin, end, dimension, scale, windMap.get(key).getPointIdGL(), windMap.get(key).getPointIdFS(), windMap.get(key).getPointIdZT(), windMap.get(key).getNsjglPoints(), windMap.get(key).getNzyglPoints(), key);
|
|
|
QueryWrapper<ProEconWtPowerCurveFitting> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("windturbine_id",key);
|
|
|
List<ProEconWtPowerCurveFitting> wtpowerls= proEconWtPowerCurveFittingService.list(queryWrapper)
|
|
@@ -798,7 +804,7 @@ public class PowerCurveFittingByTimeService {
|
|
|
cfmyear.setStandardDeviationRate(pcl(windMap.get(key).getNsjglPoints(), yearStandardPoints, modelpower));
|
|
|
|
|
|
mainls.add(cfmyear);
|
|
|
- // proEconCurveFittYearMainService.save(cfmyear);
|
|
|
+ // proEconCurveFittYearMainService.save(cfmyear);
|
|
|
|
|
|
//*********************************************当年曲线偏差记录**********************************************************/
|
|
|
List<ProEconCurveFittYearSub> subls=new ArrayList<>();
|
|
@@ -828,14 +834,14 @@ public class PowerCurveFittingByTimeService {
|
|
|
|
|
|
|
|
|
public ProEconCurveFittingSub pLCBuild(String key, Date current, Map<String, CureFittingVo> windMap, Double modelpower, double speed,
|
|
|
- List<PointVo> bzglpowerPoints, List<PointVo> lastMonthPoints, List<PointVo> lastYearPoints, List<PointVo> lastStandardPoints
|
|
|
+ List<PointVo> bzglpowerPoints, List<PointVo> lastMonthPoints, List<PointVo> lastYearPoints, List<PointVo> lastStandardPoints
|
|
|
) {
|
|
|
|
|
|
- String speedStr = String.valueOf(speed);
|
|
|
+// String speedStr = String.valueOf(speed);
|
|
|
|
|
|
//*********************************************当日曲线偏差子表记录**********************************************************/
|
|
|
QueryWrapper<ProEconCurveFittingSub> queryWrapper2 = new QueryWrapper<>();
|
|
|
- queryWrapper2.eq("record_date",current).eq("speed",speedStr).eq("windturbine_id",key);
|
|
|
+ queryWrapper2.eq("record_date",current).eq("speed",speed).eq("windturbine_id",key);
|
|
|
Optional<ProEconCurveFittingSub> cfmso = proEconCurveFittingSubService.list(queryWrapper2)
|
|
|
.stream()
|
|
|
// .filter(i -> i.getWindturbineId().equals(key)
|
|
@@ -853,7 +859,7 @@ public class PowerCurveFittingByTimeService {
|
|
|
|
|
|
cfms = new ProEconCurveFittingSub();
|
|
|
cfms.setWindturbineId(key);
|
|
|
- cfms.setSpeed(String.valueOf(speed));
|
|
|
+ cfms.setSpeed(speed);
|
|
|
cfms.setRecordDate(DateUtils.truncate(current));
|
|
|
|
|
|
|
|
@@ -876,13 +882,13 @@ public class PowerCurveFittingByTimeService {
|
|
|
}
|
|
|
|
|
|
public ProEconCurveFittMonthSub pLCBuild(String key, String stringyear, String stringmonth, Map<String, CureFittingVo> windMap, Double modelpower, double speed,
|
|
|
- List<PointVo> bzglpowerPoints, List<PointVo> lastMonthPoints, List<PointVo> lastYearPoints, List<PointVo> lastStandardPoints
|
|
|
+ List<PointVo> bzglpowerPoints, List<PointVo> lastMonthPoints, List<PointVo> lastYearPoints, List<PointVo> lastStandardPoints
|
|
|
) {
|
|
|
- String speedStr = String.valueOf(speed);
|
|
|
+// String speedStr = String.valueOf(speed);
|
|
|
|
|
|
//*********************************************当月曲线偏差子表记录**********************************************************/
|
|
|
QueryWrapper<ProEconCurveFittMonthSub> queryWrapper2 = new QueryWrapper<>();
|
|
|
- queryWrapper2.eq("year",stringyear).eq("month",stringmonth).eq("speed",speedStr).eq("windturbine_id",key);
|
|
|
+ queryWrapper2.eq("year",stringyear).eq("month",stringmonth).eq("speed",speed).eq("windturbine_id",key);
|
|
|
Optional<ProEconCurveFittMonthSub> cfmsmontho = proEconCurveFittMonthSubService.list(queryWrapper2).stream()
|
|
|
// .filter(i -> i.getWindturbineId().equals(key)
|
|
|
// && i.getYear().equals(stringyear) && i.getMonth().equals(stringmonth) && i.getSpeed().equals(speedStr))
|
|
@@ -902,7 +908,7 @@ public class PowerCurveFittingByTimeService {
|
|
|
cfmsmonth.setWindturbineId(key);
|
|
|
cfmsmonth.setYear(stringyear);
|
|
|
cfmsmonth.setMonth(stringmonth);
|
|
|
- cfmsmonth.setSpeed(String.valueOf(speed));
|
|
|
+ cfmsmonth.setSpeed(speed);
|
|
|
|
|
|
|
|
|
|
|
@@ -926,13 +932,13 @@ public class PowerCurveFittingByTimeService {
|
|
|
}
|
|
|
|
|
|
public ProEconCurveFittYearSub pLCBuild(String key, String stringyear, Map<String, CureFittingVo> windMap, Double modelpower, double speed,
|
|
|
- List<PointVo> bzglpowerPoints, List<PointVo> lastMonthPoints, List<PointVo> lastYearPoints, List<PointVo> lastStandardPoints
|
|
|
+ List<PointVo> bzglpowerPoints, List<PointVo> lastMonthPoints, List<PointVo> lastYearPoints, List<PointVo> lastStandardPoints
|
|
|
) {
|
|
|
- String speedStr = String.valueOf(speed);
|
|
|
+// String speedStr = String.valueOf(speed);
|
|
|
|
|
|
//*********************************************当年曲线偏差子表记录**********************************************************/
|
|
|
QueryWrapper<ProEconCurveFittYearSub> queryWrapper = new QueryWrapper<>();
|
|
|
- queryWrapper.eq("year",stringyear).eq("speed",speedStr).eq("windturbine_id",key);
|
|
|
+ queryWrapper.eq("year",stringyear).eq("speed",speed).eq("windturbine_id",key);
|
|
|
Optional<ProEconCurveFittYearSub> cfmsyearo = proEconCurveFittYearSubService.list(queryWrapper).stream()
|
|
|
// .filter(i -> i.getWindturbineId().equals(key)
|
|
|
// && i.getYear().equals(stringyear) && i.getSpeed().equals(speedStr))
|
|
@@ -950,22 +956,22 @@ public class PowerCurveFittingByTimeService {
|
|
|
cfmsyear = new ProEconCurveFittYearSub();
|
|
|
cfmsyear.setWindturbineId(key);
|
|
|
cfmsyear.setYear(stringyear);
|
|
|
- cfmsyear.setSpeed(String.valueOf(speed));
|
|
|
+ cfmsyear.setSpeed(speed);
|
|
|
|
|
|
- // proEconCurveFittYearSubService.save(cfmsyear);
|
|
|
+ // proEconCurveFittYearSubService.save(cfmsyear);
|
|
|
|
|
|
//年---实际/最优
|
|
|
- cfmsyear.setDeviationRate1(pcl2(windMap.get(key).getYsjglPoints(), windMap.get(key).getYzyglPoints(), modelpower, speed));
|
|
|
+ cfmsyear.setDeviationRate1(pcl2(windMap.get(key).getNsjglPoints(), windMap.get(key).getNzyglPoints(), modelpower, speed));
|
|
|
//年---实际/保证
|
|
|
- cfmsyear.setDeviationRate2(pcl2(windMap.get(key).getYsjglPoints(), bzglpowerPoints, modelpower, speed));
|
|
|
+ cfmsyear.setDeviationRate2(pcl2(windMap.get(key).getNsjglPoints(), bzglpowerPoints, modelpower, speed));
|
|
|
//年---最优/保证
|
|
|
- cfmsyear.setDeviationRate3(pcl2(windMap.get(key).getYzyglPoints(), bzglpowerPoints, modelpower, speed));
|
|
|
+ cfmsyear.setDeviationRate3(pcl2(windMap.get(key).getNzyglPoints(), bzglpowerPoints, modelpower, speed));
|
|
|
//年---实际/上月实际
|
|
|
- cfmsyear.setMonthDeviationRate(pcl2(windMap.get(key).getYsjglPoints(), lastMonthPoints, modelpower, speed));
|
|
|
+ cfmsyear.setMonthDeviationRate(pcl2(windMap.get(key).getNsjglPoints(), lastMonthPoints, modelpower, speed));
|
|
|
//年---实际/同期实际
|
|
|
- cfmsyear.setYearDeviationRate(pcl2(windMap.get(key).getYsjglPoints(), lastYearPoints, modelpower, speed));
|
|
|
+ cfmsyear.setYearDeviationRate(pcl2(windMap.get(key).getNsjglPoints(), lastYearPoints, modelpower, speed));
|
|
|
//年---实际/标杆实际
|
|
|
- cfmsyear.setStandardDeviationRate(pcl2(windMap.get(key).getYsjglPoints(), lastStandardPoints, modelpower, speed));
|
|
|
+ cfmsyear.setStandardDeviationRate(pcl2(windMap.get(key).getNsjglPoints(), lastStandardPoints, modelpower, speed));
|
|
|
|
|
|
// proEconCurveFittYearSubService.save(cfmsyear);
|
|
|
return cfmsyear;
|
|
@@ -1091,7 +1097,7 @@ public class PowerCurveFittingByTimeService {
|
|
|
item.setYear(String.valueOf(year));
|
|
|
item.setMonth(String.valueOf(month));
|
|
|
wtcfls.add(item);
|
|
|
- // proEconWtCurveFittingMonthService.save(item);
|
|
|
+ // proEconWtCurveFittingMonthService.save(item);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1165,7 +1171,7 @@ public class PowerCurveFittingByTimeService {
|
|
|
item.setOptimalPower(zyglls.get(i).getY());
|
|
|
item.setYear(String.valueOf(year));
|
|
|
wtcfls.add(item);
|
|
|
- // proEconWtCurveFittingYearService.save(item);
|
|
|
+ // proEconWtCurveFittingYearService.save(item);
|
|
|
}
|
|
|
|
|
|
}
|