|
@@ -34,7 +34,7 @@ public class WindpowerstationdetailService extends SocketToolService {
|
|
|
//public static Map<String,String> comprehensive_target_pointMap = new HashMap<>();
|
|
|
@Autowired
|
|
|
private InitialRunner initialRunner;
|
|
|
- private static int decimal_digit = 0;
|
|
|
+ private static int decimal_digit = 2;
|
|
|
@Resource
|
|
|
private WindpowerinfodayService windpowerinfodayService;
|
|
|
@Resource
|
|
@@ -135,7 +135,16 @@ public class WindpowerstationdetailService extends SocketToolService {
|
|
|
double zhcydl = 99;
|
|
|
double sbklyl = 99;
|
|
|
double jpeyht = 99;
|
|
|
+ double zjrl=0.0;
|
|
|
|
|
|
+ if(windpowerstation.getCapacity()==null){
|
|
|
+ List<Windpowerstation> wps = InitialRunner.wpls;
|
|
|
+ for(Windpowerstation windpowerstationinner:wps){
|
|
|
+ zjrl = zjrl + windpowerstationinner.getCapacity();
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ zjrl = windpowerstation.getCapacity();
|
|
|
+ }
|
|
|
|
|
|
//mttr
|
|
|
mttr = jybm + 10;
|
|
@@ -173,18 +182,25 @@ public class WindpowerstationdetailService extends SocketToolService {
|
|
|
Windpowerinfoday wp=windpowerinfodayService.findListByDate(windpowerstation.getId(),c.getTime());
|
|
|
if(StringUtils.isNotNull(wp))
|
|
|
{
|
|
|
- ylyxs=wp.getMonthlyxs();
|
|
|
- nlyxs=wp.getYearlyxs();
|
|
|
+// ylyxs=wp.getMonthlyxs();
|
|
|
+// nlyxs=wp.getYearlyxs();
|
|
|
//综合场用电率
|
|
|
zhcydl=wp.getDayzhcydl();
|
|
|
//设备可利用率
|
|
|
sbklyl=wp.getDaysbklyl();
|
|
|
- System.out.println(wp.getRecorddate()+ "___" +wp.getMonthlyxs());
|
|
|
- System.out.println(wp.getRecorddate()+ "___" +wp.getYearlyxs());
|
|
|
- System.out.println(wp.getRecorddate()+ "___" +wp.getDayzhcydl());
|
|
|
- System.out.println(wp.getRecorddate()+ "___" +wp.getDaysbklyl());
|
|
|
+// System.out.println(wp.getRecorddate()+ "___" +wp.getMonthlyxs());
|
|
|
+// System.out.println(wp.getRecorddate()+ "___" +wp.getYearlyxs());
|
|
|
+// System.out.println(wp.getRecorddate()+ "___" +wp.getDayzhcydl());
|
|
|
+// System.out.println(wp.getRecorddate()+ "___" +wp.getDaysbklyl());
|
|
|
}
|
|
|
|
|
|
+ // 月利用小时
|
|
|
+ double temp = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_YFDL)).getPointValueInDouble();
|
|
|
+ ylyxs = (new BigDecimal(temp).multiply(new BigDecimal(10))).divide(new BigDecimal(zjrl), 2, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
+ // 年利用小时
|
|
|
+ temp = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_NFDL)).getPointValueInDouble();
|
|
|
+ nlyxs = (new BigDecimal(temp).multiply(new BigDecimal(10))).divide(new BigDecimal(zjrl), 2, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
+
|
|
|
|
|
|
try{
|
|
|
//减排二氧化碳
|