|
@@ -107,7 +107,7 @@ public class EconomyPointHomePageService {
|
|
|
* @param dateType
|
|
|
* @return
|
|
|
*/
|
|
|
- public Map<String, Object> getEconomyPointHomePageInfo(String foreignKeyId, String regionId, String companyId, String staType, String dateType, String pointCode) throws ParseException {
|
|
|
+ public Map<String, Object> getEconomyPointHomePageInfo(String foreignKeyId, String regionId1, String companyId1, String staType, String dateType, String pointCode) throws ParseException {
|
|
|
|
|
|
Map<String, Object> allmap = new HashMap<>();
|
|
|
//获取当前时间
|
|
@@ -131,7 +131,7 @@ public class EconomyPointHomePageService {
|
|
|
wstimemap = proEconPowerstationInfoDay2Service.getEconFiveLossTime(foreignKeyId, staType, dateType, date);
|
|
|
|
|
|
/** 装机容量 */
|
|
|
- capacity = new BigDecimal(proBasicCompanyService.getProBasicCompanyCapacity(regionId, companyId));
|
|
|
+ capacity = new BigDecimal(proBasicCompanyService.getProBasicCompanyCapacity("", foreignKeyId));
|
|
|
//综合场用电量
|
|
|
zhcydllist = proEconPowerstationInfoDay5Service.getEconZhcydldb(foreignKeyId, staType, dateType, date);
|
|
|
|
|
@@ -141,9 +141,9 @@ public class EconomyPointHomePageService {
|
|
|
//三率曲线
|
|
|
threeRateCurvelist = proEconPowerstationInfoDay4Service.getEconThreeRateCurve(foreignKeyId, staType, dateType, date);
|
|
|
|
|
|
- List<ProEconPointCodeDTO> pointCodeDTO = proEconPointCodeService.getEconPointRanking(regionId, companyId, pointCode,date,dateType);
|
|
|
+ List<ProEconPointCodeDTO> pointCodeDTO = proEconPointCodeService.getEconPointRanking("", foreignKeyId, pointCode,date,dateType);
|
|
|
/** 场站信息 */
|
|
|
- List<ProBasicPowerstation> powerstationList = proBasicPowerstationService.getProBasicPowerstationlist(regionId, companyId, staType);
|
|
|
+ List<ProBasicPowerstation> powerstationList = proBasicPowerstationService.getProBasicPowerstationlist("", foreignKeyId, staType);
|
|
|
wsdlfx = new HashMap<>();//五损电量分析
|
|
|
zhcydl = new ArrayList<>();//综合场用电率
|
|
|
dltjfxList = new ArrayList<>();//电量统计分析
|
|
@@ -208,8 +208,8 @@ public class EconomyPointHomePageService {
|
|
|
private void currfdinfo() {
|
|
|
ProEconPowerstationInfoDay1 fdinfo = wsmap.get("currFiveInfo");
|
|
|
if (null != fdinfo) {
|
|
|
- fdinfomap.put("fdl", fdinfo.getRfdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));
|
|
|
- fdinfomap.put("qfdl", fdinfo.getRqfdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));
|
|
|
+ fdinfomap.put("fdl", fdinfo.getRfdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));
|
|
|
+ fdinfomap.put("qfdl", fdinfo.getRqfdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));
|
|
|
fdinfomap.put("fnlyl", compare0(fdinfo.getRllfdl()) ? compare100(fdinfo.getRfdl().divide(fdinfo.getRllfdl(), 4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100"))) : new BigDecimal(0));
|
|
|
}else {
|
|
|
fdinfomap.put("fdl", new BigDecimal(0));
|
|
@@ -222,8 +222,8 @@ public class EconomyPointHomePageService {
|
|
|
private void monthfdinfo() {
|
|
|
ProEconPowerstationInfoDay1 fdinfo = wsmap.get("currFiveInfo");
|
|
|
if (null != fdinfo) {
|
|
|
- fdinfomap.put("fdl", fdinfo.getYfdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));
|
|
|
- fdinfomap.put("qfdl", fdinfo.getYqfdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));
|
|
|
+ fdinfomap.put("fdl", fdinfo.getYfdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));
|
|
|
+ fdinfomap.put("qfdl", fdinfo.getYqfdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));
|
|
|
fdinfomap.put("fnlyl", compare0(fdinfo.getYllfdl()) ? compare0(fdinfo.getYllfdl()) ? compare100(fdinfo.getYfdl().divide(fdinfo.getYllfdl(), 4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100"))) : new BigDecimal(0) : new BigDecimal(0));
|
|
|
|
|
|
|
|
@@ -237,8 +237,8 @@ public class EconomyPointHomePageService {
|
|
|
private void yearfdinfo() {
|
|
|
ProEconPowerstationInfoDay1 fdinfo = wsmap.get("currFiveInfo");
|
|
|
if (null != fdinfo) {
|
|
|
- fdinfomap.put("fdl", fdinfo.getNfdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));
|
|
|
- fdinfomap.put("qfdl", fdinfo.getNqfdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));
|
|
|
+ fdinfomap.put("fdl", fdinfo.getNfdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));
|
|
|
+ fdinfomap.put("qfdl", fdinfo.getNqfdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));
|
|
|
fdinfomap.put("fnlyl", compare0(fdinfo.getNllfdl()) ? compare0(fdinfo.getNllfdl()) ? compare100(fdinfo.getNfdl().divide(fdinfo.getNllfdl(), 4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100"))) : new BigDecimal(0) : new BigDecimal(0));
|
|
|
|
|
|
} else {
|
|
@@ -295,12 +295,12 @@ public class EconomyPointHomePageService {
|
|
|
|
|
|
dltjfxlist.stream().forEach(i -> {
|
|
|
Map<String, Object> m = new HashMap<>();
|
|
|
- m.put("fdl", i.getRfdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //发电量
|
|
|
- m.put("sldl", (i.getRcwsldwssdl().add(i.getRcwsltqssdl())).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //受累
|
|
|
- m.put("jxdl", i.getRjxssdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //检修
|
|
|
- m.put("xddl", (i.getRxdtjssdl().add(i.getRxdjclssdl())).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));//限电
|
|
|
- m.put("gzdl", i.getRgzssdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //故障
|
|
|
- m.put("xndl", i.getRxnssdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));//性能
|
|
|
+ m.put("fdl", i.getRfdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //发电量
|
|
|
+ m.put("sldl", (i.getRcwsldwssdl().add(i.getRcwsltqssdl())).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //受累
|
|
|
+ m.put("jxdl", i.getRjxssdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //检修
|
|
|
+ m.put("xddl", (i.getRxdtjssdl().add(i.getRxdjclssdl())).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));//限电
|
|
|
+ m.put("gzdl", i.getRgzssdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //故障
|
|
|
+ m.put("xndl", i.getRxnssdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));//性能
|
|
|
m.put("date", DateUtils.toDate1(i.getRecordDate()));
|
|
|
dltjfxList.add(m);
|
|
|
});
|
|
@@ -309,12 +309,12 @@ public class EconomyPointHomePageService {
|
|
|
private void monthDltjfx() {
|
|
|
dltjfxlist.stream().forEach(i -> {
|
|
|
Map<String, Object> m = new HashMap<>();
|
|
|
- m.put("fdl", i.getYfdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //发电量
|
|
|
- m.put("sldl", (i.getYcwsldwssdl().add(i.getRcwsltqssdl())).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //受累
|
|
|
- m.put("jxdl", i.getYjxssdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //检修
|
|
|
- m.put("xddl", (i.getYxdtjssdl().add(i.getRxdjclssdl())).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));//限电
|
|
|
- m.put("gzdl", (i.getYgzssdl()).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //故障
|
|
|
- m.put("xndl", (i.getYxnssdl()).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));//性能
|
|
|
+ m.put("fdl", i.getYfdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //发电量
|
|
|
+ m.put("sldl", (i.getYcwsldwssdl().add(i.getRcwsltqssdl())).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //受累
|
|
|
+ m.put("jxdl", i.getYjxssdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //检修
|
|
|
+ m.put("xddl", (i.getYxdtjssdl().add(i.getRxdjclssdl())).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));//限电
|
|
|
+ m.put("gzdl", (i.getYgzssdl()).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //故障
|
|
|
+ m.put("xndl", (i.getYxnssdl()).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));//性能
|
|
|
m.put("date", DateUtils.toDate1(i.getRecordDate()));
|
|
|
dltjfxList.add(m);
|
|
|
});
|
|
@@ -323,12 +323,12 @@ public class EconomyPointHomePageService {
|
|
|
private void yearDltjfx() {
|
|
|
dltjfxlist.stream().forEach(i -> {
|
|
|
Map<String, Object> m = new HashMap<>();
|
|
|
- m.put("fdl", i.getNfdl().divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //发电量
|
|
|
- m.put("sldl", (i.getNcwsldwssdl().add(i.getRcwsltqssdl())).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //受累
|
|
|
- m.put("jxdl", (i.getNjxssdl()).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //检修
|
|
|
- m.put("xddl", (i.getNxdtjssdl().add(i.getRxdjclssdl())).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));//限电
|
|
|
- m.put("gzdl", (i.getNgzssdl()).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP)); //故障
|
|
|
- m.put("xndl", (i.getNxnssdl()).divide(new BigDecimal(10000), 6, BigDecimal.ROUND_HALF_UP));//性能
|
|
|
+ m.put("fdl", i.getNfdl().divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //发电量
|
|
|
+ m.put("sldl", (i.getNcwsldwssdl().add(i.getRcwsltqssdl())).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //受累
|
|
|
+ m.put("jxdl", (i.getNjxssdl()).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //检修
|
|
|
+ m.put("xddl", (i.getNxdtjssdl().add(i.getRxdjclssdl())).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));//限电
|
|
|
+ m.put("gzdl", (i.getNgzssdl()).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP)); //故障
|
|
|
+ m.put("xndl", (i.getNxnssdl()).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP));//性能
|
|
|
m.put("date", DateUtils.toDate1(i.getRecordDate()));
|
|
|
dltjfxList.add(m);
|
|
|
});
|