|
@@ -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));
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
- 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())) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
- 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();
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- 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();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- 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);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
|
+ 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 = 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<>();
|
|
|
|
|
|
|
|
|
+ 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());
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
@@ -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;
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
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"));
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ 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);
|
|
|
}
|