|
@@ -16,7 +16,6 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-import javax.xml.crypto.Data;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.math.RoundingMode;
|
|
|
import java.text.SimpleDateFormat;
|
|
@@ -1846,17 +1845,19 @@ public class GenreSetPushService {
|
|
|
int daynum = c.get(Calendar.DAY_OF_MONTH);
|
|
|
|
|
|
/**********************************************首页电量统计**********************************************************/
|
|
|
- Calendar cal = Calendar.getInstance();
|
|
|
- cal.setTime(new Date());
|
|
|
- int year = cal.get(Calendar.YEAR);
|
|
|
-
|
|
|
- List<ProjectPlan> pjls = projectPlanService.getProjectPlanList(String.valueOf(year));
|
|
|
+// Calendar cal = Calendar.getInstance();
|
|
|
+// cal.setTime(new Date());
|
|
|
+// int year = cal.get(Calendar.YEAR);
|
|
|
+//
|
|
|
+// List<ProjectPlan> pjls = projectPlanService.getProjectPlanList(String.valueOf(year));
|
|
|
+//
|
|
|
+// // 获取计划发电量信息
|
|
|
+// Map<String, Map<String, Double>> planmap = new HashMap<>();
|
|
|
+//
|
|
|
+// setPlanInfoByType(planmap, pjls, id);
|
|
|
|
|
|
// 获取计划发电量信息
|
|
|
- Map<String, Map<String, Double>> planmap = new HashMap<>();
|
|
|
-
|
|
|
- setPlanInfoByType(planmap, pjls, id);
|
|
|
-
|
|
|
+ Map<String, Map<String, Double>> planmap = InitialRunner.planmap;
|
|
|
|
|
|
Map<String, Double> sftjmap = new HashMap<>();//省份装机容量和台数统计
|
|
|
for (Windpowerstation wp : wplist) {
|
|
@@ -1994,95 +1995,78 @@ public class GenreSetPushService {
|
|
|
sftjmap.put(wp.getCompanyid() + "_zjrl", temp);
|
|
|
}
|
|
|
|
|
|
- if (wp.getId().endsWith("GDC") && InitialRunner.gp_sqmap.containsKey(wp.getId())) {
|
|
|
-// if(AccessConfig.getWpmap().containsKey(wp.getId()))
|
|
|
-// {
|
|
|
-// jr_gf_zjrl=jr_gf_zjrl+wp.getCapacity();
|
|
|
-// jr_gfts=jr_gfts++;
|
|
|
-// }
|
|
|
-//
|
|
|
-// qjny_gf_zjrl=qjny_gf_zjrl+wp.getCapacity();
|
|
|
-// qjny_gfts=qjny_gfts++;
|
|
|
|
|
|
- List<Square> sqls = InitialRunner.gp_sqmap.get(wp.getId());
|
|
|
- for (Square sq : sqls) {
|
|
|
- if (sq.getTypes().equals(ZC)) {
|
|
|
- if (StringUtils.notEmp(wp.getPhoto()) && sftjmap.containsKey(wp.getPhoto() + "_zc_zjts")) {
|
|
|
|
|
|
- double temp = sftjmap.get(wp.getPhoto() + "_zc_zjts");
|
|
|
- if (InitialRunner.sq_nbqmap.containsKey(sq.getId())) {
|
|
|
- List<Inverter> nbqls = InitialRunner.sq_nbqmap.get(sq.getId());
|
|
|
- temp = temp + nbqls.size();
|
|
|
-
|
|
|
-// qjny_gf_zcts=qjny_gf_zcts + nbqls.size();
|
|
|
+// if (wp.getId().endsWith("GDC") && InitialRunner.gp_sqmap.containsKey(wp.getId())) {
|
|
|
+//// if(AccessConfig.getWpmap().containsKey(wp.getId()))
|
|
|
+//// {
|
|
|
+//// jr_gf_zjrl=jr_gf_zjrl+wp.getCapacity();
|
|
|
+//// jr_gfts=jr_gfts++;
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// qjny_gf_zjrl=qjny_gf_zjrl+wp.getCapacity();
|
|
|
+//// qjny_gfts=qjny_gfts++;
|
|
|
//
|
|
|
+// List<Square> sqls = InitialRunner.gp_sqmap.get(wp.getId());
|
|
|
+// for (Square sq : sqls) {
|
|
|
+// if (sq.getTypes().equals(ZC)) {
|
|
|
+// if (StringUtils.notEmp(wp.getPhoto()) && sftjmap.containsKey(wp.getPhoto() + "_zc_zjts")) {
|
|
|
//
|
|
|
-// if(AccessConfig.getWpmap().containsKey(wp.getId()))
|
|
|
-// {
|
|
|
-// jr_gf_zcts=jr_gf_zcts + nbqls.size();
|
|
|
+// double temp = sftjmap.get(wp.getPhoto() + "_zc_zjts");
|
|
|
+// if (InitialRunner.sq_nbqmap.containsKey(sq.getId())) {
|
|
|
+// List<Inverter> nbqls = InitialRunner.sq_nbqmap.get(sq.getId());
|
|
|
+// temp = temp + nbqls.size();
|
|
|
//
|
|
|
-// }
|
|
|
- }
|
|
|
-
|
|
|
- sftjmap.put(wp.getPhoto() + "_zc_zjts", temp);
|
|
|
- } else {
|
|
|
- double temp = wp.getQuantity();
|
|
|
- sftjmap.put(wp.getPhoto() + "_zc_zjts", temp);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- } else {
|
|
|
- if (StringUtils.notEmp(wp.getPhoto()) && sftjmap.containsKey(wp.getPhoto() + "_jz_zjts")) {
|
|
|
-
|
|
|
- double temp = sftjmap.get(wp.getPhoto() + "_jz_zjts");
|
|
|
- if (InitialRunner.sq_nbqmap.containsKey(sq.getId())) {
|
|
|
- List<Inverter> nbqls = InitialRunner.sq_nbqmap.get(sq.getId());
|
|
|
- temp = temp + nbqls.size();
|
|
|
-
|
|
|
-// qjny_gf_jzts=qjny_gf_jzts + nbqls.size();
|
|
|
-// if(AccessConfig.getWpmap().containsKey(wp.getId()))
|
|
|
-// {
|
|
|
-// jr_gf_jzts=jr_gf_jzts + nbqls.size();
|
|
|
-// }
|
|
|
- }
|
|
|
- sftjmap.put(wp.getPhoto() + "_jz_zjts", temp);
|
|
|
- } else {
|
|
|
- double temp = wp.getQuantity();
|
|
|
- sftjmap.put(wp.getPhoto() + "_jz_zjts", temp);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
-
|
|
|
- if (StringUtils.notEmp(wp.getPhoto()) && sftjmap.containsKey(wp.getPhoto() + "_zjts")) {
|
|
|
-
|
|
|
- double temp = sftjmap.get(wp.getPhoto() + "_zjts");
|
|
|
- temp = temp + wp.getQuantity();
|
|
|
-
|
|
|
-
|
|
|
- sftjmap.put(wp.getPhoto() + "_zjts", temp);
|
|
|
- } else {
|
|
|
- double temp = wp.getQuantity();
|
|
|
- sftjmap.put(wp.getPhoto() + "_zjts", temp);
|
|
|
- }
|
|
|
-
|
|
|
-// if(AccessConfig.getWpmap().containsKey(wp.getId()))
|
|
|
-// {
|
|
|
-// jr_fd_zjrl=jr_fd_zjrl+wp.getCapacity();
|
|
|
-// jr_fjts=jr_fjts++;
|
|
|
+// }
|
|
|
+//
|
|
|
+// sftjmap.put(wp.getPhoto() + "_zc_zjts", temp);
|
|
|
+// } else {
|
|
|
+// double temp = wp.getQuantity();
|
|
|
+// sftjmap.put(wp.getPhoto() + "_zc_zjts", temp);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// } else {
|
|
|
+// if (StringUtils.notEmp(wp.getPhoto()) && sftjmap.containsKey(wp.getPhoto() + "_jz_zjts")) {
|
|
|
+//
|
|
|
+// double temp = sftjmap.get(wp.getPhoto() + "_jz_zjts");
|
|
|
+// if (InitialRunner.sq_nbqmap.containsKey(sq.getId())) {
|
|
|
+// List<Inverter> nbqls = InitialRunner.sq_nbqmap.get(sq.getId());
|
|
|
+// temp = temp + nbqls.size();
|
|
|
+//
|
|
|
+//// qjny_gf_jzts=qjny_gf_jzts + nbqls.size();
|
|
|
+//// if(AccessConfig.getWpmap().containsKey(wp.getId()))
|
|
|
+//// {
|
|
|
+//// jr_gf_jzts=jr_gf_jzts + nbqls.size();
|
|
|
+//// }
|
|
|
+// }
|
|
|
+// sftjmap.put(wp.getPhoto() + "_jz_zjts", temp);
|
|
|
+// } else {
|
|
|
+// double temp = wp.getQuantity();
|
|
|
+// sftjmap.put(wp.getPhoto() + "_jz_zjts", temp);
|
|
|
+// }
|
|
|
+// }
|
|
|
// }
|
|
|
-// qjny_fjts=qjny_fjts++;
|
|
|
-// qjny_fd_zjrl=qjny_fd_zjrl+wp.getCapacity();
|
|
|
+// } else {
|
|
|
//
|
|
|
-// qjny_fj_ts=qjny_fj_ts + wp.getQuantity();
|
|
|
-// if(AccessConfig.getWpmap().containsKey(wp.getId()))
|
|
|
-// {
|
|
|
-// jr_fj_ts=jr_fj_ts + wp.getQuantity();
|
|
|
+// if (StringUtils.notEmp(wp.getPhoto()) && sftjmap.containsKey(wp.getPhoto() + "_zjts")) {
|
|
|
+//
|
|
|
+// double temp = sftjmap.get(wp.getPhoto() + "_zjts");
|
|
|
+// temp = temp + wp.getQuantity();
|
|
|
+//
|
|
|
+//
|
|
|
+// sftjmap.put(wp.getPhoto() + "_zjts", temp);
|
|
|
+// } else {
|
|
|
+// double temp = wp.getQuantity();
|
|
|
+// sftjmap.put(wp.getPhoto() + "_zjts", temp);
|
|
|
// }
|
|
|
- }
|
|
|
+//
|
|
|
+//
|
|
|
+// }
|
|
|
|
|
|
}
|
|
|
|
|
|
+ sftjmap.putAll(InitialRunner.gftjmap);
|
|
|
|
|
|
Map<String, Double> newpointmap = new HashMap<>();
|
|
|
|
|
@@ -2522,14 +2506,24 @@ public class GenreSetPushService {
|
|
|
|
|
|
/*************************************************风场指标*************************************************************/
|
|
|
|
|
|
- Map<String, Object> tqmap = weatherService.getWeatherRealInfo(id);
|
|
|
+// Map<String, Object> tqmap = weatherService.getWeatherRealInfo(id);
|
|
|
+// map.put("tqmap", tqmap);
|
|
|
+//
|
|
|
+//
|
|
|
+// Map<String, Object> weathermap = weatherDay5Service.getWeatherRealDay5Info(id);
|
|
|
+// map.put("tqmap5", weathermap);
|
|
|
+// Map<String, Object> xtmap = tooltipAjax();
|
|
|
+// map.put("xtmap", xtmap);
|
|
|
+
|
|
|
+ Map<String, Object> tqmap = new HashMap();
|
|
|
map.put("tqmap", tqmap);
|
|
|
|
|
|
|
|
|
- Map<String, Object> weathermap = weatherDay5Service.getWeatherRealDay5Info(id);
|
|
|
+ Map<String, Object> weathermap = new HashMap();
|
|
|
map.put("tqmap5", weathermap);
|
|
|
Map<String, Object> xtmap = tooltipAjax();
|
|
|
map.put("xtmap", xtmap);
|
|
|
+
|
|
|
/*************************************************基础指标*************************************************************/
|
|
|
Map<String, Object> jczbmap = new HashMap<>();
|
|
|
|
|
@@ -2635,20 +2629,42 @@ public class GenreSetPushService {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ List<String> pointid=new ArrayList<>();
|
|
|
// if (id.equals(QY+QS)) {
|
|
|
// 减排二氧化碳
|
|
|
+ double jpeyht = 0.0;
|
|
|
Windpowerstationpointnew temppoint = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(id, Constant.TPOINT_JPEYHT);
|
|
|
- double jpeyht = (realApiUtil.getRealData(temppoint).getPointValueInDouble());
|
|
|
+ pointid.add(temppoint.getCode());
|
|
|
+
|
|
|
// 节约标煤
|
|
|
+ double jybm = 0.0;
|
|
|
temppoint = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(id, Constant.TPOINT_JYBM);
|
|
|
- double jybm = (realApiUtil.getRealData(temppoint).getPointValueInDouble());
|
|
|
+
|
|
|
+ pointid.add(temppoint.getCode());
|
|
|
// 减排二氧化硫
|
|
|
+ double jpeyhl =0.0;
|
|
|
temppoint = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(id, Constant.TPOINT_JPEYHL);
|
|
|
- double jpeyhl = (realApiUtil.getRealData(temppoint).getPointValueInDouble());
|
|
|
+
|
|
|
+ pointid.add(temppoint.getCode());
|
|
|
// 节约水
|
|
|
+ double jys =0.0;
|
|
|
temppoint = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(id, Constant.TPOINT_JYS);
|
|
|
- double jys = (realApiUtil.getRealData(temppoint).getPointValueInDouble());
|
|
|
+
|
|
|
+ pointid.add(temppoint.getCode());
|
|
|
+
|
|
|
+ // 安全天数
|
|
|
+ double aqts = 0.0;
|
|
|
+ temppoint = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(id, Constant.TPOINT_AQTS);
|
|
|
+ pointid.add(temppoint.getCode());
|
|
|
+ List<PointData> pointidlist = realApiUtil.getRealData(pointid);
|
|
|
+
|
|
|
+ if (!pointidlist.isEmpty() && pointidlist.size() == pointid.size()) {
|
|
|
+ jpeyht = (pointidlist.get(0).getPointValueInDouble());
|
|
|
+ jybm = (pointidlist.get(1).getPointValueInDouble());
|
|
|
+ jpeyhl = (pointidlist.get(2).getPointValueInDouble());
|
|
|
+ jys = (pointidlist.get(3).getPointValueInDouble());
|
|
|
+ aqts = (pointidlist.get(4).getPointValueInDouble());
|
|
|
+ }
|
|
|
|
|
|
// Double gfsjgl = realApiUtil.getRealData(windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(GF, Constant.TPOINT_WP_SJGL)).getPointValueInDouble();
|
|
|
//
|
|
@@ -2659,13 +2675,13 @@ public class GenreSetPushService {
|
|
|
jczbmap.put("jybm", StringUtils.round(jybm, 2));
|
|
|
jczbmap.put("jpeyhl", StringUtils.round(jpeyhl, 2));
|
|
|
jczbmap.put("jys", StringUtils.round(jys, 2));
|
|
|
+ jczbmap.put("aqts", StringUtils.round(aqts, 2));
|
|
|
|
|
|
// }
|
|
|
|
|
|
- // 安全天数
|
|
|
- Windpowerstationpointnew temppoint1 = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(id, Constant.TPOINT_AQTS);
|
|
|
- Double aqts = realApiUtil.getRealData(temppoint1).getPointValueInDouble();
|
|
|
- jczbmap.put("aqts", StringUtils.round(aqts, 2));
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if (bzgl == 0.0) {
|
|
|
bzgl = 1.0;
|
|
|
}
|
|
@@ -4251,115 +4267,30 @@ public class GenreSetPushService {
|
|
|
Map<String, Windpowerstationpointnew> map;
|
|
|
|
|
|
|
|
|
-// WindPowerStationTestingPoint2 yxts = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WT_YXTS);
|
|
|
-// WindPowerStationTestingPoint2 djts = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WT_DJTS);
|
|
|
-// WindPowerStationTestingPoint2 jxts = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WT_WHTJ);
|
|
|
-// WindPowerStationTestingPoint2 tjts = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WT_GZTJ);
|
|
|
-// WindPowerStationTestingPoint2 lxts = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WT_TXZD);
|
|
|
-//
|
|
|
-// PointData ptValue = realApiUtil.getRealData(yxts);
|
|
|
-// retValue.put("yxts", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-//
|
|
|
-// ptValue = realApiUtil.getRealData(djts);
|
|
|
-// retValue.put("djts", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-//
|
|
|
-// ptValue = realApiUtil.getRealData(jxts);
|
|
|
-// retValue.put("jxts", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-//
|
|
|
-// ptValue = realApiUtil.getRealData(tjts);
|
|
|
-// retValue.put("tjts", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-//
|
|
|
-// ptValue = realApiUtil.getRealData(lxts);
|
|
|
-// retValue.put("lxts", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-//
|
|
|
-// if (wpId.endsWith("GDC")) {
|
|
|
-// WindPowerStationTestingPoint2 wd = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WP_FCCFTWD);
|
|
|
-//
|
|
|
-// if (StringUtils.notEmp(wd)) {
|
|
|
-// ptValue = realApiUtil.getRealData(wd);
|
|
|
-// retValue.put("cftwd", StringUtils.round(ptValue.getPointValueInDouble(), 2));
|
|
|
-// } else {
|
|
|
-// retValue.put("cftwd", 0.0);
|
|
|
-// }
|
|
|
-//
|
|
|
-// }
|
|
|
PointData ptValue = null;
|
|
|
- Windpowerstationpointnew wd = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WP_FCCFTWD);
|
|
|
- ptValue = realApiUtil.getRealData(wd);
|
|
|
- retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
- Windpowerstationpointnew fs = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WP_SSFS);
|
|
|
- ptValue = realApiUtil.getRealData(fs);
|
|
|
- retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
|
|
|
+ List<String> pointid=new ArrayList<>();
|
|
|
|
|
|
if (V2Config.getHbmaps().containsKey(wpId + "_KEY")) {
|
|
|
retValue.put("hb", V2Config.getHbmaps().get(wpId + "_KEY"));
|
|
|
}
|
|
|
-// if (wpId.equals(WpEnum.MHS_FDC.name())) {
|
|
|
-//
|
|
|
-//
|
|
|
-// retValue.put("hb", 1893.0);
|
|
|
-//
|
|
|
-// } else if (wpId.equals(WpEnum.NSS_FDC.name())) {
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.NSSWD);
|
|
|
-// retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// retValue.put("hb", 1810.0);
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.NSSPJFS);
|
|
|
-// retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// } else if (wpId.equals(WpEnum.QS_FDC.name())) {
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.QSWD);
|
|
|
-// retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// retValue.put("hb", 1573.0);
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.QSPJFS);
|
|
|
-// retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-//
|
|
|
-// } else if (wpId.equals(WpEnum.SBQ_FDC.name())) {
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.SBQFGL_AI000305);
|
|
|
-// retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// retValue.put("hb", 1357.0);
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.JSFW_SBSSFS);
|
|
|
-// retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// } else if (wpId.equals(WpEnum.DWK_GDC.name())) {
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.DWKWD);
|
|
|
-// retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// retValue.put("hb", 1100.0);
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.DWKPJFS);
|
|
|
-// retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// } else if (wpId.equals(WpEnum.PL_GDC.name())) {
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.PLWD);
|
|
|
-// retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// retValue.put("hb", 1080.0);
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.PLPJFS);
|
|
|
-// retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// } else if (wpId.equals(WpEnum.MCH_GDC.name())) {
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.MCHWD);
|
|
|
-// retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// retValue.put("hb", 1360.0);
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.MCHPJFS);
|
|
|
-// retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// } else if (wpId.equals(WpEnum.XH_GDC.name())) {
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.XHWD);
|
|
|
-// retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// retValue.put("hb", 1385.0);
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.XHPJFS);
|
|
|
-// retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// } else if (wpId.equals(WpEnum.HZJ_GDC.name())) {
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.HZJWD);
|
|
|
-// retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// retValue.put("hb", 1385.0);
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.HZJPJFS);
|
|
|
-// retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// } else if (wpId.equals(WpEnum.XS_FDC.name())) {
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.XSWD);
|
|
|
-// retValue.put("dqwd", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// retValue.put("hb", 2210.0);
|
|
|
-// ptValue = realApiUtil.getRealData(ConstantTR.XSPJFS);
|
|
|
-// retValue.put("ssfs", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
-// }
|
|
|
+
|
|
|
+ Windpowerstationpointnew wd = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WP_FCCFTWD);
|
|
|
+ pointid.add(wd.getCode());
|
|
|
+
|
|
|
+ Windpowerstationpointnew fs = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WP_SSFS);
|
|
|
+ pointid.add(fs.getCode());
|
|
|
|
|
|
Windpowerstationpointnew glpoint = windPowerstationTestingPoint2Service.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WP_SJGL);
|
|
|
- ptValue = realApiUtil.getRealData(glpoint.getCode());
|
|
|
- retValue.put("gl", StringUtils.round(ptValue.getPointValueInDouble(), 0));
|
|
|
+ pointid.add(glpoint.getCode());
|
|
|
+
|
|
|
+ List<PointData> wxsslist = realApiUtil.getRealData(pointid);
|
|
|
+
|
|
|
+ if (!wxsslist.isEmpty() && wxsslist.size() == pointid.size()) {
|
|
|
+ retValue.put("dqwd", StringUtils.round(wxsslist.get(0).getPointValueInDouble(), 0));
|
|
|
+ retValue.put("ssfs", StringUtils.round(wxsslist.get(1).getPointValueInDouble(), 0));
|
|
|
+ retValue.put("gl", StringUtils.round(wxsslist.get(2).getPointValueInDouble(), 0));
|
|
|
+ }
|
|
|
}
|
|
|
resultmap.put(wpId, retValue);
|
|
|
}
|