wangchangsheng 2 years ago
parent
commit
c7e9105182

+ 1 - 1
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/IProEconPowerstationInfoDay1Service.java

@@ -30,7 +30,7 @@ public interface IProEconPowerstationInfoDay1Service extends IService<ProEconPow
     Map<String, ProEconPowerstationInfoDay1> getEconFiveLoss(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date);
 
     /** 场站电量统计 */
-    List<ProEconPowerstationInfoDay1> getEconFiveLosslist(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date);
+    List<ProEconPowerstationInfoDay1> getEconFiveLosslist(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date);
 
 
 }

+ 2 - 1
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/IProEconPowerstationInfoDay2Service.java

@@ -4,6 +4,7 @@ import com.gyee.runeconomy.model.auto.ProEconPowerstationInfoDay1;
 import com.gyee.runeconomy.model.auto.ProEconPowerstationInfoDay2;
 import com.baomidou.mybatisplus.extension.service.IService;
 
+import java.util.Date;
 import java.util.Map;
 
 /**
@@ -16,7 +17,7 @@ import java.util.Map;
  */
 public interface IProEconPowerstationInfoDay2Service extends IService<ProEconPowerstationInfoDay2> {
 
-    Map<String, ProEconPowerstationInfoDay2> getEconFiveLossTime(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date);
+    Map<String, ProEconPowerstationInfoDay2> getEconFiveLossTime(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date);
 
 
 

+ 19 - 1
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/IProEconPowerstationInfoDay4Service.java

@@ -3,6 +3,8 @@ package com.gyee.runeconomy.service.auto;
 import com.gyee.runeconomy.model.auto.ProEconPowerstationInfoDay4;
 import com.baomidou.mybatisplus.extension.service.IService;
 
+import java.util.Date;
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -28,6 +30,22 @@ public interface IProEconPowerstationInfoDay4Service extends IService<ProEconPow
      * @param date
      * @return
      */
-   Map<String, ProEconPowerstationInfoDay4> getEconThreeRate(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date);
+   Map<String, ProEconPowerstationInfoDay4> getEconThreeRate(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date  date);
+
+
+    /**
+     * 三率曲线
+     * @param regionId
+     * @param companyId
+     * @param windpowerstationId
+     * @param projectId
+     * @param lineId
+     * @param staType
+     * @param dateType
+     * @param date
+     * @return
+     */
+
+   List<ProEconPowerstationInfoDay4> getEconThreeRateCurve(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date  date);
 
 }

+ 3 - 2
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/IProEconPowerstationInfoDay5Service.java

@@ -4,6 +4,7 @@ import com.gyee.runeconomy.model.auto.ProEconPowerstationInfoDay5;
 import com.baomidou.mybatisplus.extension.service.IService;
 
 import java.math.BigDecimal;
+import java.util.Date;
 import java.util.List;
 import java.util.Map;
 
@@ -18,9 +19,9 @@ import java.util.Map;
 public interface IProEconPowerstationInfoDay5Service extends IService<ProEconPowerstationInfoDay5> {
 
 
-   Map<String ,ProEconPowerstationInfoDay5> getEconElectricQuantity(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date);
+   Map<String ,ProEconPowerstationInfoDay5> getEconElectricQuantity(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date);
 
 
 
-   List<ProEconPowerstationInfoDay5> getEconZhcydldb(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date);
+   List<ProEconPowerstationInfoDay5> getEconZhcydldb(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date);
 }

+ 2 - 1
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/IProEconPowerstationInfoDay6Service.java

@@ -3,6 +3,7 @@ package com.gyee.runeconomy.service.auto;
 import com.gyee.runeconomy.model.auto.ProEconPowerstationInfoDay6;
 import com.baomidou.mybatisplus.extension.service.IService;
 
+import java.util.Date;
 import java.util.Map;
 
 /**
@@ -15,6 +16,6 @@ import java.util.Map;
  */
 public interface IProEconPowerstationInfoDay6Service extends IService<ProEconPowerstationInfoDay6> {
 
-    Map<String, ProEconPowerstationInfoDay6> getEconPowerOfField(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date);
+    Map<String, ProEconPowerstationInfoDay6> getEconPowerOfField(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date);
 
 }

+ 5 - 5
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/impl/ProEconPowerstationInfoDay1ServiceImpl.java

@@ -86,7 +86,7 @@ public class ProEconPowerstationInfoDay1ServiceImpl extends ServiceImpl<ProEconP
         List<ProEconPowerstationInfoDay1> ringlist = new ArrayList<>();
         if (null !=date) {
 //            String ring = DateUtils.toDate1(DateUtils.addMonths(new Date(), -1));
-            Date ring = DateUtils.addMonths(new Date(), -1);
+            Date ring = DateUtils.addMonths(date, -1);
             qw.lambda().eq(ProEconPowerstationInfoDay1::getRecordDate, ring);
             ringlist = baseMapper.selectList(qw);
             resultmap.put("ringFiveInfo", ringlist.size() > 0 ? ringlist.get(0) : null);
@@ -95,7 +95,7 @@ public class ProEconPowerstationInfoDay1ServiceImpl extends ServiceImpl<ProEconP
         //同比
         List<ProEconPowerstationInfoDay1> withlist = new ArrayList<>();
         if (null !=date) {
-            Date with = DateUtils.addYears(new Date(), -1);
+            Date with = DateUtils.addYears(date, -1);
             qw.lambda().eq(ProEconPowerstationInfoDay1::getRecordDate, with);
             withlist = baseMapper.selectList(qw);
             resultmap.put("withFiveInfo", withlist.size() > 0 ? withlist.get(0) : null);
@@ -105,7 +105,7 @@ public class ProEconPowerstationInfoDay1ServiceImpl extends ServiceImpl<ProEconP
     }
 
     @Override
-    public List<ProEconPowerstationInfoDay1> getEconFiveLosslist(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date) {
+    public List<ProEconPowerstationInfoDay1> getEconFiveLosslist(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date) {
         QueryWrapper<ProEconPowerstationInfoDay1> qw = new QueryWrapper<>();
         String location = "";
         if (StringUtils.isNotEmpty(regionId)) {
@@ -138,8 +138,8 @@ public class ProEconPowerstationInfoDay1ServiceImpl extends ServiceImpl<ProEconP
             qw.lambda().eq(ProEconPowerstationInfoDay1::getLocation, location);
         }
 
-        if (StringUtils.isNotEmpty(date)) {
-            String bingdate = DateUtils.toDate1(DateUtils.addDays(new Date(), -10));
+        if (null !=date) {
+            Date bingdate = DateUtils.addDays(date, -10);
 
             qw.lambda().ge(ProEconPowerstationInfoDay1::getRecordDate, bingdate);
             qw.lambda().le(ProEconPowerstationInfoDay1::getRecordDate, date);

+ 6 - 6
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/impl/ProEconPowerstationInfoDay2ServiceImpl.java

@@ -24,7 +24,7 @@ import java.util.*;
 public class ProEconPowerstationInfoDay2ServiceImpl extends ServiceImpl<ProEconPowerstationInfoDay2Mapper, ProEconPowerstationInfoDay2> implements IProEconPowerstationInfoDay2Service {
 
     @Override
-    public Map<String, ProEconPowerstationInfoDay2> getEconFiveLossTime(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date) {
+    public Map<String, ProEconPowerstationInfoDay2> getEconFiveLossTime(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date) {
         Map<String, ProEconPowerstationInfoDay2> resultmap = new HashMap<>();
 
         QueryWrapper<ProEconPowerstationInfoDay2> qw = new QueryWrapper<>();
@@ -60,7 +60,7 @@ public class ProEconPowerstationInfoDay2ServiceImpl extends ServiceImpl<ProEconP
         }
         //当前数据
         List<ProEconPowerstationInfoDay2> currlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
+        if (null != date) {
             qw.lambda().eq(ProEconPowerstationInfoDay2::getRecordDate, date);
             currlist = getBaseMapper().selectList(qw);
             resultmap.put("currTimeInfo",currlist.size()>0?currlist.get(0):null);
@@ -69,8 +69,8 @@ public class ProEconPowerstationInfoDay2ServiceImpl extends ServiceImpl<ProEconP
 
         //环比数据
         List<ProEconPowerstationInfoDay2> ringlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
-            String ring = DateUtils.toDate1(DateUtils.addMonths(new Date(), -1));
+        if (null != date) {
+            Date ring = DateUtils.addMonths(date, -1);
             qw.lambda().eq(ProEconPowerstationInfoDay2::getRecordDate, ring);
             ringlist = getBaseMapper().selectList(qw);
             resultmap.put("ringTimeInfo",ringlist.size()>0?ringlist.get(0):null);
@@ -78,8 +78,8 @@ public class ProEconPowerstationInfoDay2ServiceImpl extends ServiceImpl<ProEconP
 
         //同比
         List<ProEconPowerstationInfoDay2> withlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
-            String with = DateUtils.toDate1(DateUtils.addYears(new Date(), -1));
+        if (null != date) {
+            Date with = DateUtils.addYears(date, -1);
             qw.lambda().eq(ProEconPowerstationInfoDay2::getRecordDate, with);
             withlist = getBaseMapper().selectList(qw);
             resultmap.put("withTimeInfo",withlist.size()>0?withlist.get(0):null);

+ 55 - 6
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/impl/ProEconPowerstationInfoDay4ServiceImpl.java

@@ -25,7 +25,7 @@ import java.util.*;
 public class ProEconPowerstationInfoDay4ServiceImpl extends ServiceImpl<ProEconPowerstationInfoDay4Mapper, ProEconPowerstationInfoDay4> implements IProEconPowerstationInfoDay4Service {
 
     @Override
-    public Map<String, ProEconPowerstationInfoDay4> getEconThreeRate(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date) {
+    public Map<String, ProEconPowerstationInfoDay4> getEconThreeRate(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date) {
 
         Map<String, ProEconPowerstationInfoDay4> resultmap = new HashMap<>();
 
@@ -63,7 +63,7 @@ public class ProEconPowerstationInfoDay4ServiceImpl extends ServiceImpl<ProEconP
 
         //当前数据
         List<ProEconPowerstationInfoDay4> currlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
+        if (null !=date) {
             qw.lambda().eq(ProEconPowerstationInfoDay4::getRecordDate, date);
             currlist = getBaseMapper().selectList(qw);
             resultmap.put("currThreeInfo",currlist.size()>0?currlist.get(0):null);
@@ -72,8 +72,8 @@ public class ProEconPowerstationInfoDay4ServiceImpl extends ServiceImpl<ProEconP
 
         //环比数据
         List<ProEconPowerstationInfoDay4> ringlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
-            String ring = DateUtils.toDate1(DateUtils.addMonths(new Date(), -1));
+        if (null !=date) {
+            Date ring = DateUtils.addMonths(date, -1);
             qw.lambda().eq(ProEconPowerstationInfoDay4::getRecordDate, ring);
             ringlist = getBaseMapper().selectList(qw);
             resultmap.put("ringThreeInfo",ringlist.size()>0?ringlist.get(0):null);
@@ -81,8 +81,8 @@ public class ProEconPowerstationInfoDay4ServiceImpl extends ServiceImpl<ProEconP
 
         //同比
         List<ProEconPowerstationInfoDay4> withlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
-            String with = DateUtils.toDate1(DateUtils.addYears(new Date(), -1));
+        if (null !=date) {
+            Date with =DateUtils.addYears(date, -1);
             qw.lambda().eq(ProEconPowerstationInfoDay4::getRecordDate, with);
             withlist = getBaseMapper().selectList(qw);
             resultmap.put("withThreeInfo",withlist.size()>0?withlist.get(0):null);
@@ -90,4 +90,53 @@ public class ProEconPowerstationInfoDay4ServiceImpl extends ServiceImpl<ProEconP
 
         return resultmap;
     }
+
+    @Override
+    public List<ProEconPowerstationInfoDay4> getEconThreeRateCurve(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date) {
+        QueryWrapper<ProEconPowerstationInfoDay4> qw = new QueryWrapper<>();
+
+        String  location = "";
+        if (StringUtils.isNotEmpty(regionId)) {
+            qw.lambda().eq(ProEconPowerstationInfoDay4::getRegionId, regionId);
+            location = "rg";
+
+        }
+        if (StringUtils.isNotEmpty(companyId)) {
+            qw.lambda().eq(ProEconPowerstationInfoDay4::getCompanyId, companyId);
+            location = "cp";
+        }
+        if (StringUtils.isNotEmpty(windpowerstationId)) {
+            qw.lambda().eq(ProEconPowerstationInfoDay4::getWindpowerstationId, windpowerstationId);
+            location = "wp";
+        }
+        if (StringUtils.isNotEmpty(projectId)) {
+
+            qw.lambda().eq(ProEconPowerstationInfoDay4::getProjectId, projectId);
+            location = "pj";
+        }
+        if (StringUtils.isNotEmpty(lineId)) {
+            qw.lambda().eq(ProEconPowerstationInfoDay4::getLineId, lineId);
+            location = "ln";
+        }
+        if (StringUtils.isNotEmpty(staType)) {
+            qw.lambda().eq(ProEconPowerstationInfoDay4::getForeignKeyId, staType);
+        }
+        if (StringUtils.isNotEmpty(location)) {
+            qw.lambda().eq(ProEconPowerstationInfoDay4::getLocation, location);
+        }
+
+        //当前数据
+        List<ProEconPowerstationInfoDay4> currlist = new ArrayList<>();
+        if (null !=date) {
+
+            Date bingdate = DateUtils.addDays(date, -10);
+
+            qw.lambda().ge(ProEconPowerstationInfoDay4::getRecordDate, bingdate);
+            qw.lambda().le(ProEconPowerstationInfoDay4::getRecordDate, date);
+        }
+
+        List<ProEconPowerstationInfoDay4> list = baseMapper.selectList(qw);
+
+        return list;
+    }
 }

+ 9 - 9
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/impl/ProEconPowerstationInfoDay5ServiceImpl.java

@@ -26,7 +26,7 @@ import java.util.*;
 public class ProEconPowerstationInfoDay5ServiceImpl extends ServiceImpl<ProEconPowerstationInfoDay5Mapper, ProEconPowerstationInfoDay5> implements IProEconPowerstationInfoDay5Service {
 
     @Override
-    public Map<String, ProEconPowerstationInfoDay5> getEconElectricQuantity(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date) {
+    public Map<String, ProEconPowerstationInfoDay5> getEconElectricQuantity(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date) {
         Map<String, ProEconPowerstationInfoDay5> resultmap = new HashMap<>();
 
         QueryWrapper<ProEconPowerstationInfoDay5> qw = new QueryWrapper<>();
@@ -63,7 +63,7 @@ public class ProEconPowerstationInfoDay5ServiceImpl extends ServiceImpl<ProEconP
 
         //当前数据
         List<ProEconPowerstationInfoDay5> currlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
+        if (null !=date) {
             qw.lambda().eq(ProEconPowerstationInfoDay5::getRecordDate, date);
             currlist = getBaseMapper().selectList(qw);
             resultmap.put("currDlInfo",currlist.size()>0?currlist.get(0):null);
@@ -72,8 +72,8 @@ public class ProEconPowerstationInfoDay5ServiceImpl extends ServiceImpl<ProEconP
 
         //环比数据
         List<ProEconPowerstationInfoDay5> ringlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
-            String ring = DateUtils.toDate1(DateUtils.addMonths(new Date(), -1));
+        if (null !=date) {
+            Date ring = DateUtils.addMonths(date, -1);
             qw.lambda().eq(ProEconPowerstationInfoDay5::getRecordDate, ring);
             ringlist = getBaseMapper().selectList(qw);
             resultmap.put("ringDlInfo",ringlist.size()>0?ringlist.get(0):null);
@@ -81,8 +81,8 @@ public class ProEconPowerstationInfoDay5ServiceImpl extends ServiceImpl<ProEconP
 
         //同比
         List<ProEconPowerstationInfoDay5> withlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
-            String with = DateUtils.toDate1(DateUtils.addYears(new Date(), -1));
+        if (null !=date) {
+            Date with = DateUtils.addYears(new Date(), -1);
             qw.lambda().eq(ProEconPowerstationInfoDay5::getRecordDate, with);
             withlist = getBaseMapper().selectList(qw);
             resultmap.put("withDlInfo",withlist.size()>0?withlist.get(0):null);
@@ -92,7 +92,7 @@ public class ProEconPowerstationInfoDay5ServiceImpl extends ServiceImpl<ProEconP
     }
 
     @Override
-    public List<ProEconPowerstationInfoDay5> getEconZhcydldb(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date) {
+    public List<ProEconPowerstationInfoDay5> getEconZhcydldb(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date) {
 
         QueryWrapper<ProEconPowerstationInfoDay5> qw = new QueryWrapper<>();
 
@@ -126,8 +126,8 @@ public class ProEconPowerstationInfoDay5ServiceImpl extends ServiceImpl<ProEconP
             qw.lambda().eq(ProEconPowerstationInfoDay5::getLocation, location);
         }
 
-        if (StringUtils.isNotEmpty(date)) {
-            String bingdate = DateUtils.toDate1(DateUtils.addDays(new Date(), -7));
+        if (null !=date) {
+            Date bingdate = DateUtils.addDays(date, -7);
 
             qw.lambda().ge(ProEconPowerstationInfoDay5::getRecordDate, bingdate);
             qw.lambda().le(ProEconPowerstationInfoDay5::getRecordDate, date);

+ 6 - 6
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/impl/ProEconPowerstationInfoDay6ServiceImpl.java

@@ -24,7 +24,7 @@ import java.util.*;
 public class ProEconPowerstationInfoDay6ServiceImpl extends ServiceImpl<ProEconPowerstationInfoDay6Mapper, ProEconPowerstationInfoDay6> implements IProEconPowerstationInfoDay6Service {
 
     @Override
-    public Map<String, ProEconPowerstationInfoDay6> getEconPowerOfField(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, String date) {
+    public Map<String, ProEconPowerstationInfoDay6> getEconPowerOfField(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType, Date date) {
         Map<String, ProEconPowerstationInfoDay6> resultmap = new HashMap<>();
 
         QueryWrapper<ProEconPowerstationInfoDay6> qw = new QueryWrapper<>();
@@ -62,7 +62,7 @@ public class ProEconPowerstationInfoDay6ServiceImpl extends ServiceImpl<ProEconP
 
         //当前数据
         List<ProEconPowerstationInfoDay6> currlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
+        if (null !=date) {
             qw.lambda().eq(ProEconPowerstationInfoDay6::getRecordDate, date);
             currlist = getBaseMapper().selectList(qw);
             resultmap.put("currGlInfo",currlist.size()>0?currlist.get(0):null);
@@ -71,8 +71,8 @@ public class ProEconPowerstationInfoDay6ServiceImpl extends ServiceImpl<ProEconP
 
         //环比数据
         List<ProEconPowerstationInfoDay6> ringlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
-            String ring = DateUtils.toDate1(DateUtils.addMonths(new Date(), -1));
+        if (null !=date) {
+            Date ring =DateUtils.addMonths(date, -1);
             qw.lambda().eq(ProEconPowerstationInfoDay6::getRecordDate, ring);
             ringlist = getBaseMapper().selectList(qw);
             resultmap.put("ringGlInfo",ringlist.size()>0?ringlist.get(0):null);
@@ -80,8 +80,8 @@ public class ProEconPowerstationInfoDay6ServiceImpl extends ServiceImpl<ProEconP
 
         //同比
         List<ProEconPowerstationInfoDay6> withlist = new ArrayList<>();
-        if (StringUtils.isNotEmpty(date)) {
-            String with = DateUtils.toDate1(DateUtils.addYears(new Date(), -1));
+        if (null !=date) {
+            Date with = DateUtils.addYears(date, -1);
             qw.lambda().eq(ProEconPowerstationInfoDay6::getRecordDate, with);
             withlist = getBaseMapper().selectList(qw);
             resultmap.put("withGlInfo",withlist.size()>0?withlist.get(0):null);

+ 103 - 15
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/homepage/EconomyPointHomePageService.java

@@ -10,7 +10,6 @@ import org.springframework.stereotype.Service;
 
 import java.math.BigDecimal;
 import java.text.ParseException;
-import java.text.SimpleDateFormat;
 import java.util.*;
 
 /**
@@ -72,13 +71,22 @@ public class EconomyPointHomePageService {
     /** 电量统计分析 */
     private List<ProEconPowerstationInfoDay1> dltjfxlist = new ArrayList<>();
 
+    private List<ProEconPowerstationInfoDay4> threeRateCurvelist = new ArrayList<>();//三率曲线数据
+
     private BigDecimal capacity = null;
 
     private Map<String,BigDecimal> wsdlfx = null;//五损电量分析
 
     private Map<String,BigDecimal> zhcydl = null;//综合场用电率
 
-    private List<Map<String,BigDecimal>> dltjfxList = null;//电量统计分析
+    private List<Map<String,Object>> dltjfxList = null;//电量统计分析
+
+    private List<Map<String,Object>> slqxList = null;//三率曲线
+
+    private Map<String,Object> fdinfomap = null;//发电(风能利用率、发电量、欠发电量)
+
+
+
 
 
 
@@ -100,14 +108,13 @@ public class EconomyPointHomePageService {
      */
     public EconHomePagePointRateDTO getEconomyPointHomePageInfo(String regionId, String companyId, String windpowerstationId, String projectId, String lineId, String staType, String dateType) throws ParseException {
         //获取当前时间
-        String date = DateUtils.toDate1(new Date());
-        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
-        Date date3 =  sdf.parse(date);
+        String strdate = DateUtils.toDate1(new Date());
+        Date date = DateUtils.parseDate(strdate);
 
 
 
         /** 五损 */
-        wsmap = proEconPowerstationInfoDay1Service.getEconFiveLoss(regionId, companyId, windpowerstationId, projectId, lineId, staType, dateType, date3);
+        wsmap = proEconPowerstationInfoDay1Service.getEconFiveLoss(regionId, companyId, windpowerstationId, projectId, lineId, staType, dateType, date);
 
         /** 三率 */
         slmap = proEconPowerstationInfoDay4Service.getEconThreeRate(regionId, companyId, windpowerstationId, projectId, lineId, staType, dateType, date);
@@ -121,20 +128,24 @@ public class EconomyPointHomePageService {
         /**  五损时间 */
         wstimemap = proEconPowerstationInfoDay2Service.getEconFiveLossTime(regionId, companyId, windpowerstationId, projectId, lineId, staType, dateType, date);
 
-        //装机容量
+        /** 装机容量 */
         capacity = proBasicCompanyService.getProBasicCompanyCapacity(regionId, companyId);
-        //综合场用电量
+        //综合场用电量
         zhcydllist =  proEconPowerstationInfoDay5Service.getEconZhcydldb(regionId, companyId, windpowerstationId, projectId, lineId, staType, dateType, date);
 
         //电量统计分析
         dltjfxlist = proEconPowerstationInfoDay1Service.getEconFiveLosslist(regionId, companyId, windpowerstationId, projectId, lineId, staType, dateType, date);
 
-
-        /**  场站信息 */
+        //三率曲线
+        threeRateCurvelist = proEconPowerstationInfoDay4Service.getEconThreeRateCurve(regionId, companyId, windpowerstationId, projectId, lineId, staType, dateType, date);
+                /**  场站信息 */
         List<ProBasicPowerstation> powerstationList =  proBasicPowerstationService.getProBasicPowerstationlist(regionId,companyId,windpowerstationId,staType);
         wsdlfx = new HashMap<>();//五损电量分析
         zhcydl= new HashMap<>();//综合场用电率
         dltjfxList = new ArrayList<>();//电量统计分析
+        fdinfomap =  new HashMap<>();//(风能利用率、发电量、欠发电量)
+
+
         switch (dateType) {
 
             case "r":
@@ -144,6 +155,7 @@ public class EconomyPointHomePageService {
                 currFiveDlFx();
                 currZhcydl();
                 currDltjfx();
+                currThreeRateCurve();
 
 
                 break;
@@ -154,6 +166,7 @@ public class EconomyPointHomePageService {
                 monthFiveDlFx();
                 monthZhcydl();
                 monthDltjfx();
+                monthThreeRateCurve();
 
 
                 break;
@@ -164,15 +177,87 @@ public class EconomyPointHomePageService {
                 yearFiveDlFx();
                 yearZhcydl();
                 yearDltjfx();
-
+                yearThreeRateCurve();
                 break;
-
         }
 
         return dto;
     }
 
 
+
+   /** (风能利用率、发电量、欠发电量) */
+    private void currfdinfo() {
+        ProEconPowerstationInfoDay1 fdinfo = wsmap.get("currFiveInfo");
+        if(null != fdinfo){
+            fdinfomap.put("fdl",fdinfo.getRfdl());
+            fdinfomap.put("qfdl",fdinfo.getRqfdl());
+            fdinfomap.put("fnlyl",fdinfo.getRfdl().divide(fdinfo.getRllfdl(), 4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100")));
+
+        }
+
+    }
+    private void monthfdinfo() {
+        ProEconPowerstationInfoDay1 fdinfo = wsmap.get("currFiveInfo");
+        if(null != fdinfo){
+            fdinfomap.put("fdl",fdinfo.getYfdl());
+            fdinfomap.put("qfdl",fdinfo.getYqfdl());
+            fdinfomap.put("fnlyl",fdinfo.getYfdl().divide(fdinfo.getYllfdl(), 4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100")));
+
+
+        }
+    }
+    private void yearfdinfo() {
+        ProEconPowerstationInfoDay1 fdinfo = wsmap.get("currFiveInfo");
+        if(null != fdinfo){
+            fdinfomap.put("fdl",fdinfo.getNfdl());
+            fdinfomap.put("qfdl",fdinfo.getNqfdl());
+            fdinfomap.put("fnlyl",fdinfo.getNfdl().divide(fdinfo.getNllfdl(), 4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100")));
+
+        }
+    }
+
+
+
+    /**
+     * 三率曲线
+     */
+    private void currThreeRateCurve() {
+        threeRateCurvelist.stream().forEach(i->{
+            Map<String, Object> m = new HashMap<>();
+            m.put("fejsl",i.getRfwjsl());
+            m.put("ztzhjsl",i.getRztzhjsl());
+            m.put("gzxqjsl",i.getRgzxqjsl());
+            m.put("date",i.getRecordDate());
+            slqxList.add(null);
+        });
+
+    }
+    private void monthThreeRateCurve() {
+        threeRateCurvelist.stream().forEach(i->{
+            Map<String, Object> m = new HashMap<>();
+            m.put("fejsl",i.getYfwjsl());
+            m.put("ztzhjsl",i.getYztzhjsl());
+            m.put("gzxqjsl",i.getYgzxqjsl());
+            m.put("date",i.getRecordDate());
+            slqxList.add(null);
+        });
+    }
+
+    private void yearThreeRateCurve() {
+        threeRateCurvelist.stream().forEach(i->{
+            Map<String, Object> m = new HashMap<>();
+            m.put("fejsl",i.getNfwjsl());
+            m.put("ztzhjsl",i.getNztzhjsl());
+            m.put("gzxqjsl",i.getNgzxqjsl());
+            m.put("date",i.getRecordDate());
+            slqxList.add(null);
+        });
+    }
+
+
+
+
     /**
      * 电量统计分析
      */
@@ -180,39 +265,42 @@ public class EconomyPointHomePageService {
     private void currDltjfx() {
 
         dltjfxlist.stream().forEach(i -> {
-            Map<String, BigDecimal> m = new HashMap<>();
+            Map<String, Object> m = new HashMap<>();
             m.put("fdl", i.getRfdl()); //发电量
             m.put("sldl", i.getRcwsldwssdl().add(i.getRcwsltqssdl()));  //受累
             m.put("jxdl", i.getRjxssdl()); //检修
             m.put("xddl", i.getRxdtjssdl().add(i.getRxdjclssdl()));//限电
             m.put("fgzdl", i.getRgzssdl());      //故障
             m.put("xndl", i.getRxnssdl());//性能
+            m.put("date",DateUtils.toDate1(i.getRecordDate()));
             dltjfxList.add(m);
         });
     }
 
     private void monthDltjfx() {
         dltjfxlist.stream().forEach(i -> {
-            Map<String, BigDecimal> m = new HashMap<>();
+            Map<String, Object> m = new HashMap<>();
             m.put("fdl", i.getYfdl()); //发电量
             m.put("sldl", i.getYcwsldwssdl().add(i.getRcwsltqssdl()));  //受累
             m.put("jxdl", i.getYjxssdl()); //检修
             m.put("xddl", i.getYxdtjssdl().add(i.getRxdjclssdl()));//限电
             m.put("fgzdl", i.getYgzssdl());      //故障
             m.put("xndl", i.getYxnssdl());//性能
+            m.put("date",DateUtils.toDate1(i.getRecordDate()));
             dltjfxList.add(m);
         });
     }
 
     private void yearDltjfx() {
         dltjfxlist.stream().forEach(i -> {
-            Map<String, BigDecimal> m = new HashMap<>();
+            Map<String, Object> m = new HashMap<>();
             m.put("fdl", i.getNfdl()); //发电量
             m.put("sldl", i.getNcwsldwssdl().add(i.getRcwsltqssdl()));  //受累
             m.put("jxdl", i.getNjxssdl()); //检修
             m.put("xddl", i.getNxdtjssdl().add(i.getRxdjclssdl()));//限电
             m.put("fgzdl", i.getNgzssdl());      //故障
             m.put("xndl", i.getNxnssdl());//性能
+            m.put("date",DateUtils.toDate1(i.getRecordDate()));
             dltjfxList.add(m);
         });
     }