|
@@ -1,16 +1,21 @@
|
|
|
package com.gyee.frame.service;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.gyee.common.model.StringUtils;
|
|
|
import com.gyee.frame.common.base.BaseService;
|
|
|
import com.gyee.frame.common.dataSources.DataSource;
|
|
|
import com.gyee.frame.common.dataSources.DataSourceType;
|
|
|
import com.gyee.frame.mapper.auto.WindpowerstationPGMapper;
|
|
|
import com.gyee.frame.model.auto.WindpowerstationPG;
|
|
|
import com.gyee.frame.model.auto.WindpowerstationPGExample;
|
|
|
+import com.gyee.frame.util.MathUtil;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.LinkedHashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@Service
|
|
|
public class WindpowerstationPGService implements BaseService<WindpowerstationPG, WindpowerstationPGExample> {
|
|
@@ -87,6 +92,639 @@ public class WindpowerstationPGService implements BaseService<WindpowerstationPG
|
|
|
return list;
|
|
|
|
|
|
}
|
|
|
+ @DataSource(value = DataSourceType.SLAVE)
|
|
|
+ public List<Map> hso() {
|
|
|
+// QueryWrapper<WindpowerstationPGPG> qw = new QueryWrapper<>();
|
|
|
+// List<WindpowerstationPGPG> list = baseMapper.selectList(qw);
|
|
|
+
|
|
|
+ List<WindpowerstationPG> list=new ArrayList<>();
|
|
|
+ WindpowerstationPGExample example=new WindpowerstationPGExample();
|
|
|
+ example.setOrderByClause(" id asc");
|
|
|
+ list= windpowerstationPGMapper.selectByExample(example);
|
|
|
+
|
|
|
+ //产业光伏
|
|
|
+ List<WindpowerstationPG> sxgf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xjgf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> sdgf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xzgf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> nmgf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xsgf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> hbgf = new ArrayList<>();
|
|
|
+ //产业风电
|
|
|
+ List<WindpowerstationPG> sxfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xjfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> sdfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xzfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> nmfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xsfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> hbfd = new ArrayList<>();
|
|
|
+
|
|
|
+ //产业光伏装机容量
|
|
|
+ List<Double> sxgfzjrl = new ArrayList<>();
|
|
|
+ List<Double> xjgfzjrl = new ArrayList<>();
|
|
|
+ List<Double> sdgfzjrl = new ArrayList<>();
|
|
|
+ List<Double> xzgfzjrl = new ArrayList<>();
|
|
|
+ List<Double> nmgfzjrl = new ArrayList<>();
|
|
|
+ List<Double> xsgfzjrl = new ArrayList<>();
|
|
|
+ List<Double> hbgfzjrl = new ArrayList<>();
|
|
|
+
|
|
|
+ //产业风电装机容量
|
|
|
+ List<Double> sxfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> xjfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> sdfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> xzfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> nmfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> xsfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> hbfdzjrl = new ArrayList<>();
|
|
|
+
|
|
|
+ //清洁能源公司光伏
|
|
|
+ List<WindpowerstationPG> sxqjnygf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xjqjnygf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> sdqjnygf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xzqjnygf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> nmqjnygf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xsqjnygf = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> hbqjnygf = new ArrayList<>();
|
|
|
+
|
|
|
+ //清洁能源公司风电
|
|
|
+ List<WindpowerstationPG> sxqjnyfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xjqjnyfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> sdqjnyfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xzqjnyfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> nmqjnyfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> xsqjnyfd = new ArrayList<>();
|
|
|
+ List<WindpowerstationPG> hbqjnyfd = new ArrayList<>();
|
|
|
+
|
|
|
+ //清洁能源公司光伏装机容量
|
|
|
+ List<Double> sxqjnygfzjrl = new ArrayList<>();
|
|
|
+ List<Double> xjqjnygfzjrl = new ArrayList<>();
|
|
|
+ List<Double> sdqjnygfzjrl = new ArrayList<>();
|
|
|
+ List<Double> xzqjnygfzjrl = new ArrayList<>();
|
|
|
+ List<Double> nmqjnygfzjrl = new ArrayList<>();
|
|
|
+ List<Double> xsqjnygfzjrl = new ArrayList<>();
|
|
|
+ List<Double> hbqjnygfzjrl = new ArrayList<>();
|
|
|
+
|
|
|
+ //清洁能源公司光伏装机容量
|
|
|
+ List<Double> sxqjnyfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> xjqjnyfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> sdqjnyfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> xzqjnyfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> nmqjnyfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> xsqjnyfdzjrl = new ArrayList<>();
|
|
|
+ List<Double> hbqjnyfdzjrl = new ArrayList<>();
|
|
|
+
|
|
|
+ if (!list.isEmpty()) {
|
|
|
+ for (WindpowerstationPG w1 : list) {
|
|
|
+ if (StringUtils.notEmp(w1.getRegionid())) {
|
|
|
+ //产业光伏
|
|
|
+ if (w1.getRegionid().endsWith("XJ") & w1.getId().endsWith("GDC")) {
|
|
|
+ WindpowerstationPG vo = new WindpowerstationPG();
|
|
|
+ vo.setId(w1.getId());
|
|
|
+ vo.setAname(w1.getAname());
|
|
|
+ vo.setCapacity(w1.getCapacity());
|
|
|
+ vo.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo.setCompanyid(w1.getCompanyid());
|
|
|
+ vo.setRegionid(w1.getRegionid());
|
|
|
+ xjgf.add(vo);
|
|
|
+ xjgfzjrl.add(vo.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("SX") & w1.getId().endsWith("GDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ sxgf.add(vo1); //45条数据
|
|
|
+ sxgfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("XS") & w1.getId().endsWith("GDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ xsgf.add(vo1);
|
|
|
+ xsgfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("NM") & w1.getId().endsWith("GDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ nmgf.add(vo1);
|
|
|
+ nmgfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("HB") & w1.getId().endsWith("GDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ hbgf.add(vo1);
|
|
|
+ hbgfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("SD") & w1.getId().endsWith("GDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ sdgf.add(vo1);
|
|
|
+ sdgfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("XZ") & w1.getId().endsWith("GDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ xzgf.add(vo1);
|
|
|
+ xzgfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ //产业风电
|
|
|
+ if (w1.getRegionid().endsWith("XJ") & w1.getId().endsWith("FDC")) {
|
|
|
+ WindpowerstationPG vo = new WindpowerstationPG();
|
|
|
+ vo.setId(w1.getId());
|
|
|
+ vo.setAname(w1.getAname());
|
|
|
+ vo.setCapacity(w1.getCapacity());
|
|
|
+ vo.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo.setCompanyid(w1.getCompanyid());
|
|
|
+ vo.setRegionid(w1.getRegionid());
|
|
|
+ xjfd.add(vo);
|
|
|
+ xjfdzjrl.add(vo.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("SX") & w1.getId().endsWith("FDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ sxfd.add(vo1); //45条数据
|
|
|
+ sxfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("XS") & w1.getId().endsWith("FDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ xsfd.add(vo1);
|
|
|
+ xsfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("NM") & w1.getId().endsWith("FDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ nmfd.add(vo1);
|
|
|
+ nmfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("HB") & w1.getId().endsWith("FDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ hbfd.add(vo1);
|
|
|
+ hbfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("SD") & w1.getId().endsWith("FDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ sdfd.add(vo1);
|
|
|
+ sdfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("XZ") & w1.getId().endsWith("FDC")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ xzfd.add(vo1);
|
|
|
+ xzfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+
|
|
|
+ //清洁能源公司光伏
|
|
|
+ if (w1.getRegionid().endsWith("XJ") & w1.getId().endsWith("GDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo = new WindpowerstationPG();
|
|
|
+ vo.setId(w1.getId());
|
|
|
+ vo.setAname(w1.getAname());
|
|
|
+ vo.setCapacity(w1.getCapacity());
|
|
|
+ vo.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo.setCompanyid(w1.getCompanyid());
|
|
|
+ vo.setRegionid(w1.getRegionid());
|
|
|
+ xjqjnygf.add(vo);
|
|
|
+ xjqjnygfzjrl.add(vo.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("SX") & w1.getId().endsWith("GDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ sxqjnygf.add(vo1);
|
|
|
+ sxqjnygfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("XS") & w1.getId().endsWith("GDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ xsqjnygf.add(vo1);
|
|
|
+ xsqjnygfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("NM") & w1.getId().endsWith("GDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ nmqjnygf.add(vo1);
|
|
|
+ nmqjnygfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("HB") & w1.getId().endsWith("GDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ hbqjnygf.add(vo1);
|
|
|
+ hbqjnygfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("SD") & w1.getId().endsWith("GDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ sdqjnygf.add(vo1);
|
|
|
+ sdqjnygfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("XZ") & w1.getId().endsWith("GDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ xzqjnygf.add(vo1);
|
|
|
+ xzqjnygfzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+
|
|
|
+ //清洁能源公司风电
|
|
|
+ if (w1.getRegionid().endsWith("XJ") & w1.getId().endsWith("FDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo = new WindpowerstationPG();
|
|
|
+ vo.setId(w1.getId());
|
|
|
+ vo.setAname(w1.getAname());
|
|
|
+ vo.setCapacity(w1.getCapacity());
|
|
|
+ vo.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo.setCompanyid(w1.getCompanyid());
|
|
|
+ vo.setRegionid(w1.getRegionid());
|
|
|
+ xjqjnyfd.add(vo);
|
|
|
+ xjqjnyfdzjrl.add(vo.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("SX") & w1.getId().endsWith("FDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ sxqjnyfd.add(vo1);
|
|
|
+ sxqjnyfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("XS") & w1.getId().endsWith("FDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ xsqjnyfd.add(vo1);
|
|
|
+ xsqjnyfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("NM") & w1.getId().endsWith("FDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ nmqjnyfd.add(vo1);
|
|
|
+ nmqjnyfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("HB") & w1.getId().endsWith("FDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ hbqjnyfd.add(vo1);
|
|
|
+ hbqjnyfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("SD") & w1.getId().endsWith("FDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ sdqjnyfd.add(vo1);
|
|
|
+ sdqjnyfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+ if (w1.getRegionid().endsWith("XZ") & w1.getId().endsWith("FDC") & w1.getCompanyid().endsWith("QJNY")) {
|
|
|
+ WindpowerstationPG vo1 = new WindpowerstationPG();
|
|
|
+ vo1.setId(w1.getId());
|
|
|
+ vo1.setAname(w1.getAname());
|
|
|
+ vo1.setCapacity(w1.getCapacity());
|
|
|
+ vo1.setCapacityunit(w1.getCapacityunit());
|
|
|
+ vo1.setCompanyid(w1.getCompanyid());
|
|
|
+ vo1.setRegionid(w1.getRegionid());
|
|
|
+ xzqjnyfd.add(vo1);
|
|
|
+ xzqjnyfdzjrl.add(vo1.getCapacity());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //产业光伏装机容量
|
|
|
+ Double sxsum = sxgfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xjsum = xjgfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xssum = xsgfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double nmsum = nmgfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double hbsum = hbgfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xzsum = xzgfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double sdsum = sdgfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+
|
|
|
+ //产业风电装机容量
|
|
|
+ Double sxfdsum = sxfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xjfdsum = xjfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xsfdsum = xsfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double nmfdsum = nmfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double hbfdsum = hbfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xzfdsum = xzfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double sdfdsum = sdfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+
|
|
|
+
|
|
|
+ //产业
|
|
|
+// tcjh.put("sxcygf", sxgf.size()); //45
|
|
|
+// tcjh.put("sxcygfzjrl", MathUtil.twoBit(sxsum));
|
|
|
+// tcjh.put("sxcyfd", sxfd.size());
|
|
|
+// tcjh.put("sxcyfdzjrl", MathUtil.twoBit(sxfdsum));
|
|
|
+// tcjh.put("sxcyzzjrl", MathUtil.twoBit(sxsum+sxfdsum));
|
|
|
+
|
|
|
+// tcjh.put("xjcygf", xjgf.size()); //3
|
|
|
+// tcjh.put("xjcygfzjrl", MathUtil.twoBit(xjsum));
|
|
|
+// tcjh.put("xjcyfd", xjfd.size());
|
|
|
+// tcjh.put("xjcyfdzjrl", MathUtil.twoBit(xjfdsum));
|
|
|
+// tcjh.put("xjcyzzjrl", MathUtil.twoBit(xjsum+xjfdsum));
|
|
|
+
|
|
|
+ //"xs"为陕西
|
|
|
+// tcjh.put("xscygf", xsgf.size());
|
|
|
+// tcjh.put("xscygfzjrl", MathUtil.twoBit(xssum));
|
|
|
+// tcjh.put("xscyfd", xsfd.size());
|
|
|
+// tcjh.put("xscyfdzjrl", MathUtil.twoBit(xsfdsum));
|
|
|
+// tcjh.put("xscyzzjrl", MathUtil.twoBit(xssum+xsfdsum));
|
|
|
+
|
|
|
+// tcjh.put("nmcygf", nmgf.size());
|
|
|
+// tcjh.put("nmcygfzjrl", MathUtil.twoBit(nmsum));
|
|
|
+// tcjh.put("nmcyfd", nmfd.size());
|
|
|
+// tcjh.put("nmcyfdzjrl", MathUtil.twoBit(nmfdsum));
|
|
|
+// tcjh.put("nmcyzzjrl", MathUtil.twoBit(nmsum+nmfdsum));
|
|
|
+
|
|
|
+// tcjh.put("hbcygf", hbgf.size());
|
|
|
+// tcjh.put("hbcygfzjrl", MathUtil.twoBit(hbsum));
|
|
|
+// tcjh.put("hbcyfd", hbfd.size());
|
|
|
+// tcjh.put("hbcyfdzjrl", MathUtil.twoBit(hbfdsum));
|
|
|
+// tcjh.put("hbcyzzjrl", MathUtil.twoBit(hbsum+hbfdsum));
|
|
|
+
|
|
|
+// tcjh.put("xzcygf", xzgf.size());
|
|
|
+// tcjh.put("xzcygfzjrl", MathUtil.twoBit(xzsum));
|
|
|
+// tcjh.put("xzcyfd", xzfd.size());
|
|
|
+// tcjh.put("xzcyfdzjrl", MathUtil.twoBit(xzfdsum));
|
|
|
+// tcjh.put("xzcyzzjrl", MathUtil.twoBit(xzsum+xzfdsum));
|
|
|
+
|
|
|
+// tcjh.put("sdcygf", sdgf.size());
|
|
|
+// tcjh.put("sdcygfzjrl", MathUtil.twoBit(sdsum));
|
|
|
+// tcjh.put("sdcyfd", sdfd.size());
|
|
|
+// tcjh.put("sdcyfdzjrl", MathUtil.twoBit(sdfdsum));
|
|
|
+// tcjh.put("sdcyzzjrl", MathUtil.twoBit(sdsum+sdfdsum));
|
|
|
+ //清洁能源公司装机容量
|
|
|
+ Double sxqjnysum = sxqjnygfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xjqjnysum = xjqjnygfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xsqjnysum = xsqjnygfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double nmqjnysum = nmqjnygfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double hbqjnysum = hbqjnygfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xzqjnysum = xzqjnygfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double sdqjnysum = sdqjnygfzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+
|
|
|
+ //清洁能源公司风电装机容量
|
|
|
+ Double sxqjnyfdsum = sxqjnyfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xjqjnyfdsum = xjqjnyfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xsqjnyfdsum = xsqjnyfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double nmqjnyfdsum = nmqjnyfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double hbqjnyfdsum = hbqjnyfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double xzqjnyfdsum = xzqjnyfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+ Double sdqjnyfdsum = sdqjnyfdzjrl.stream().reduce(Double::sum).orElse((double) 0);
|
|
|
+
|
|
|
+ //清洁能源公司
|
|
|
+
|
|
|
+// tcjh.put("sxgsgf", sxqjnygf.size());
|
|
|
+// tcjh.put("sxgsgfzjrl", MathUtil.twoBit(sxqjnysum));
|
|
|
+// tcjh.put("sxgsfd", sxqjnyfd.size());
|
|
|
+// tcjh.put("sxgsfdzjrl", MathUtil.twoBit(sxqjnyfdsum));
|
|
|
+// tcjh.put("sxgszzjrl", MathUtil.twoBit(sxqjnysum+sxqjnyfdsum));
|
|
|
+
|
|
|
+// tcjh.put("xjgsgf", xjqjnygf.size());
|
|
|
+// tcjh.put("xjgsgfzjrl", MathUtil.twoBit(xjqjnysum));
|
|
|
+// tcjh.put("xjgsfd", xjqjnyfd.size());
|
|
|
+// tcjh.put("xjgsfdzjrl", MathUtil.twoBit(xjqjnyfdsum));
|
|
|
+// tcjh.put("xjgszzjrl", MathUtil.twoBit(xjqjnysum+xjqjnyfdsum));
|
|
|
+//
|
|
|
+// tcjh.put("xsgsgf", xsqjnygf.size());
|
|
|
+// tcjh.put("xsgsgfzjrl", MathUtil.twoBit(xsqjnysum));
|
|
|
+// tcjh.put("xsgsfd", xsqjnyfd.size());
|
|
|
+// tcjh.put("xsgsfdzjrl", MathUtil.twoBit(xsqjnyfdsum));
|
|
|
+// tcjh.put("xsgszzjrl", MathUtil.twoBit(xsqjnysum+xsqjnyfdsum));
|
|
|
+
|
|
|
+// tcjh.put("nmgsgf", nmqjnygf.size());
|
|
|
+// tcjh.put("nmgsgfzjrl", MathUtil.twoBit(nmqjnysum));
|
|
|
+// tcjh.put("nmgsfd", nmqjnyfd.size());
|
|
|
+// tcjh.put("nmgsfdzjrl", MathUtil.twoBit(nmqjnyfdsum));
|
|
|
+// tcjh.put("nmgszzjrl", MathUtil.twoBit(nmqjnysum+nmqjnyfdsum));
|
|
|
+
|
|
|
+// tcjh.put("hbgsgf", hbqjnygf.size());
|
|
|
+// tcjh.put("hbgsgfzjrl", MathUtil.twoBit(hbqjnysum));
|
|
|
+// tcjh.put("hbgsfd", hbqjnyfd.size());
|
|
|
+// tcjh.put("hbgsfdzjrl", MathUtil.twoBit(hbqjnyfdsum));
|
|
|
+// tcjh.put("hbgszzjrl", MathUtil.twoBit(hbqjnysum+hbqjnyfdsum));
|
|
|
+
|
|
|
+// tcjh.put("xzgsgf", xzqjnygf.size());
|
|
|
+// tcjh.put("xzgsgfzjrl", MathUtil.twoBit(xzqjnysum));
|
|
|
+// tcjh.put("xzgsfd", xzqjnyfd.size());
|
|
|
+// tcjh.put("xzgsfdzjrl", MathUtil.twoBit(xzqjnyfdsum));
|
|
|
+// tcjh.put("xzgszzjrl", MathUtil.twoBit(xzqjnysum+xzqjnyfdsum));
|
|
|
+
|
|
|
+// tcjh.put("sdgsgf", sdqjnygf.size());
|
|
|
+// tcjh.put("sdgsgfzjrl", MathUtil.twoBit(sdqjnysum));
|
|
|
+// tcjh.put("sdgsfd", sdqjnyfd.size());
|
|
|
+// tcjh.put("sdgsfdzjrl", MathUtil.twoBit(sdqjnyfdsum));
|
|
|
+// tcjh.put("sdgszjrl", MathUtil.twoBit(sdqjnysum+sdqjnyfdsum));
|
|
|
+
|
|
|
+
|
|
|
+ Map<String, Object> tcsx = new LinkedHashMap<>();
|
|
|
+ tcsx.put("name", "山西");
|
|
|
+ tcsx.put("sxcygf", sxgf.size()); //45
|
|
|
+ tcsx.put("sxcygfzjrl", MathUtil.twoBit(sxsum));
|
|
|
+ tcsx.put("sxcyfd", sxfd.size());
|
|
|
+ tcsx.put("sxcyfdzjrl", MathUtil.twoBit(sxfdsum));
|
|
|
+ tcsx.put("sxcyzzjrl", MathUtil.twoBit(sxsum + sxfdsum));
|
|
|
+ tcsx.put("sxgsgf", sxqjnygf.size());
|
|
|
+ tcsx.put("sxgsgfzjrl", MathUtil.twoBit(sxqjnysum));
|
|
|
+ tcsx.put("sxgsfd", sxqjnyfd.size());
|
|
|
+ tcsx.put("sxgsfdzjrl", MathUtil.twoBit(sxqjnyfdsum));
|
|
|
+ tcsx.put("sxgszzjrl", MathUtil.twoBit(sxqjnysum + sxqjnyfdsum));
|
|
|
+
|
|
|
+ Map<String, Object> tcxj = new LinkedHashMap<>();
|
|
|
+ tcxj.put("name", "新疆");
|
|
|
+ tcxj.put("xjcygf", xjgf.size()); //3
|
|
|
+ tcxj.put("xjcygfzjrl", MathUtil.twoBit(xjsum));
|
|
|
+ tcxj.put("xjcyfd", xjfd.size());
|
|
|
+ tcxj.put("xjcyfdzjrl", MathUtil.twoBit(xjfdsum));
|
|
|
+ tcxj.put("xjcyzzjrl", MathUtil.twoBit(xjsum + xjfdsum));
|
|
|
+ tcxj.put("xjgsgf", xjqjnygf.size());
|
|
|
+ tcxj.put("xjgsgfzjrl", MathUtil.twoBit(xjqjnysum));
|
|
|
+ tcxj.put("xjgsfd", xjqjnyfd.size());
|
|
|
+ tcxj.put("xjgsfdzjrl", MathUtil.twoBit(xjqjnyfdsum));
|
|
|
+ tcxj.put("xjgszzjrl", MathUtil.twoBit(xjqjnysum + xjqjnyfdsum));
|
|
|
+
|
|
|
+ Map<String, Object> tcxs = new LinkedHashMap<>();
|
|
|
+ tcxs.put("name", "陕西");
|
|
|
+ tcxs.put("xscygf", xsgf.size());
|
|
|
+ tcxs.put("xscygfzjrl", MathUtil.twoBit(xssum));
|
|
|
+ tcxs.put("xscyfd", xsfd.size());
|
|
|
+ tcxs.put("xscyfdzjrl", MathUtil.twoBit(xsfdsum));
|
|
|
+ tcxs.put("xscyzzjrl", MathUtil.twoBit(xssum + xsfdsum));
|
|
|
+ tcxs.put("xsgsgf", xsqjnygf.size());
|
|
|
+ tcxs.put("xsgsgfzjrl", MathUtil.twoBit(xsqjnysum));
|
|
|
+ tcxs.put("xsgsfd", xsqjnyfd.size());
|
|
|
+ tcxs.put("xsgsfdzjrl", MathUtil.twoBit(xsqjnyfdsum));
|
|
|
+ tcxs.put("xsgszzjrl", MathUtil.twoBit(xsqjnysum + xsqjnyfdsum));
|
|
|
+
|
|
|
+ Map<String, Object> tcnm = new LinkedHashMap<>();
|
|
|
+ tcnm.put("name", "内蒙");
|
|
|
+ tcnm.put("nmcygf", nmgf.size());
|
|
|
+ tcnm.put("nmcygfzjrl", MathUtil.twoBit(nmsum));
|
|
|
+ tcnm.put("nmcyfd", nmfd.size());
|
|
|
+ tcnm.put("nmcyfdzjrl", MathUtil.twoBit(nmfdsum));
|
|
|
+ tcnm.put("nmcyzzjrl", MathUtil.twoBit(nmsum + nmfdsum));
|
|
|
+ tcnm.put("nmgsgf", nmqjnygf.size());
|
|
|
+ tcnm.put("nmgsgfzjrl", MathUtil.twoBit(nmqjnysum));
|
|
|
+ tcnm.put("nmgsfd", nmqjnyfd.size());
|
|
|
+ tcnm.put("nmgsfdzjrl", MathUtil.twoBit(nmqjnyfdsum));
|
|
|
+ tcnm.put("nmgszzjrl", MathUtil.twoBit(nmqjnysum + nmqjnyfdsum));
|
|
|
+
|
|
|
+ Map<String, Object> tchb = new LinkedHashMap<>();
|
|
|
+ tchb.put("name", "河北");
|
|
|
+ tchb.put("hbcygf", hbgf.size());
|
|
|
+ tchb.put("hbcygfzjrl", MathUtil.twoBit(hbsum));
|
|
|
+ tchb.put("hbcyfd", hbfd.size());
|
|
|
+ tchb.put("hbcyfdzjrl", MathUtil.twoBit(hbfdsum));
|
|
|
+ tchb.put("hbcyzzjrl", MathUtil.twoBit(hbsum + hbfdsum));
|
|
|
+ tchb.put("hbgsgf", hbqjnygf.size());
|
|
|
+ tchb.put("hbgsgfzjrl", MathUtil.twoBit(hbqjnysum));
|
|
|
+ tchb.put("hbgsfd", hbqjnyfd.size());
|
|
|
+ tchb.put("hbgsfdzjrl", MathUtil.twoBit(hbqjnyfdsum));
|
|
|
+ tchb.put("hbgszzjrl", MathUtil.twoBit(hbqjnysum + hbqjnyfdsum));
|
|
|
+
|
|
|
+ Map<String, Object> tcxz = new LinkedHashMap<>();
|
|
|
+ tcxz.put("name", "西藏");
|
|
|
+ tcxz.put("xzcygf", xzgf.size());
|
|
|
+ tcxz.put("xzcygfzjrl", MathUtil.twoBit(xzsum));
|
|
|
+ tcxz.put("xzcyfd", xzfd.size());
|
|
|
+ tcxz.put("xzcyfdzjrl", MathUtil.twoBit(xzfdsum));
|
|
|
+ tcxz.put("xzcyzzjrl", MathUtil.twoBit(xzsum + xzfdsum));
|
|
|
+ tcxz.put("xzgsgf", xzqjnygf.size());
|
|
|
+ tcxz.put("xzgsgfzjrl", MathUtil.twoBit(xzqjnysum));
|
|
|
+ tcxz.put("xzgsfd", xzqjnyfd.size());
|
|
|
+ tcxz.put("xzgsfdzjrl", MathUtil.twoBit(xzqjnyfdsum));
|
|
|
+ tcxz.put("xzgszzjrl", MathUtil.twoBit(xzqjnysum + xzqjnyfdsum));
|
|
|
+
|
|
|
+ Map<String, Object> tcsd = new LinkedHashMap<>();
|
|
|
+ tcsd.put("name", "山东");
|
|
|
+ tcsd.put("sdcygf", sdgf.size());
|
|
|
+ tcsd.put("sdcygfzjrl", MathUtil.twoBit(sdsum));
|
|
|
+ tcsd.put("sdcyfd", sdfd.size());
|
|
|
+ tcsd.put("sdcyfdzjrl", MathUtil.twoBit(sdfdsum));
|
|
|
+ tcsd.put("sdcyzzjrl", MathUtil.twoBit(sdsum + sdfdsum));
|
|
|
+ tcsd.put("sdgsgf", sdqjnygf.size());
|
|
|
+ tcsd.put("sdgsgfzjrl", MathUtil.twoBit(sdqjnysum));
|
|
|
+ tcsd.put("sdgsfd", sdqjnyfd.size());
|
|
|
+ tcsd.put("sdgsfdzjrl", MathUtil.twoBit(sdqjnyfdsum));
|
|
|
+ tcsd.put("sdgszjrl", MathUtil.twoBit(sdqjnysum + sdqjnyfdsum));
|
|
|
+
|
|
|
+ List<Map> tcjh = new ArrayList<>();
|
|
|
+ tcjh.add(tcsx);
|
|
|
+ tcjh.add(tcxj);
|
|
|
+ tcjh.add(tcnm);
|
|
|
+ tcjh.add(tcxz);
|
|
|
+ tcjh.add(tcsd);
|
|
|
+ tcjh.add(tcxs);
|
|
|
+ tcjh.add(tchb);
|
|
|
+
|
|
|
+ return tcjh;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|