|
@@ -0,0 +1,633 @@
|
|
|
+package com.gyee.runeconomy.service.monitor;
|
|
|
+/*
|
|
|
+@author 谢生杰
|
|
|
+@date 2023/3/28-8:49
|
|
|
+*/
|
|
|
+
|
|
|
+import com.gyee.common.contant.ContantXk;
|
|
|
+import com.gyee.common.model.PointData;
|
|
|
+import com.gyee.common.util.DoubleUtils;
|
|
|
+import com.gyee.common.vo.monitor.MatrixPowerVo;
|
|
|
+import com.gyee.common.vo.monitor.MatrixVo;
|
|
|
+import com.gyee.runeconomy.init.CacheContext;
|
|
|
+import com.gyee.runeconomy.model.auto.*;
|
|
|
+import com.gyee.runeconomy.util.StringUtils;
|
|
|
+import com.gyee.runeconomy.util.realtimesource.IEdosUtil;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.*;
|
|
|
+import java.util.concurrent.atomic.AtomicInteger;
|
|
|
+import java.util.concurrent.atomic.AtomicReference;
|
|
|
+import java.util.stream.Collectors;
|
|
|
+
|
|
|
+@Service
|
|
|
+public class MatrixService {
|
|
|
+ @Resource
|
|
|
+ private IEdosUtil edosUtil;
|
|
|
+
|
|
|
+ public Map<String, Object> matrixMX(String company, String type) throws Exception {
|
|
|
+ List<ProBasicPowerstation> wpls = CacheContext.wpls;
|
|
|
+
|
|
|
+ Map<String, Double> modelpower = CacheContext.modelpower;
|
|
|
+
|
|
|
+ if (company.endsWith("ZGS")) {
|
|
|
+ wpls = wpls.stream().filter(wp -> wp.getCompanyId().equals(company)).collect(Collectors.toList());
|
|
|
+ }
|
|
|
+ if (type.equals("-1")) {
|
|
|
+ wpls = wpls.stream().filter(wp -> wp.getWindType().equals("-1")).collect(Collectors.toList());
|
|
|
+ } else if (type.equals("-2")) {
|
|
|
+ wpls = wpls.stream().filter(wp -> wp.getWindType().equals("-2")).collect(Collectors.toList());
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> wppointmap = CacheContext.wppointmap;
|
|
|
+ Map<String, Map<String, ProBasicEquipmentPoint>> wtpAimap = CacheContext.wtpAimap;
|
|
|
+ Map<String, List<ProBasicEquipment>> wpwtmap = CacheContext.wpwtmap;
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> subwppointmap = CacheContext.subwppointmap;
|
|
|
+
|
|
|
+ List<ProBasicSubStation> subwpls = CacheContext.subwpls;
|
|
|
+
|
|
|
+ List<MatrixPowerVo> powerVos = new ArrayList<>();
|
|
|
+ AtomicInteger jrts = new AtomicInteger();
|
|
|
+ AtomicInteger dfts = new AtomicInteger();
|
|
|
+ AtomicInteger sdtj = new AtomicInteger();
|
|
|
+ AtomicInteger zcyx = new AtomicInteger();
|
|
|
+ AtomicInteger jclyx = new AtomicInteger();
|
|
|
+ AtomicInteger gztj = new AtomicInteger();
|
|
|
+ AtomicInteger gzsl = new AtomicInteger();
|
|
|
+ AtomicInteger jxtj = new AtomicInteger();
|
|
|
+ AtomicInteger jxsl = new AtomicInteger();
|
|
|
+ AtomicInteger xdjcl = new AtomicInteger();
|
|
|
+ AtomicInteger xdtj = new AtomicInteger();
|
|
|
+ AtomicInteger dwsl = new AtomicInteger();
|
|
|
+ AtomicInteger hjsl = new AtomicInteger();
|
|
|
+ AtomicInteger lx = new AtomicInteger();
|
|
|
+ AtomicInteger wz = new AtomicInteger();
|
|
|
+ AtomicReference<Double> qf0 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> qf1 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> qf2 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> qf3 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> qf4 = new AtomicReference<>((double) 0);
|
|
|
+ wpls.stream().forEach(wp -> {
|
|
|
+ List<MatrixVo> volist = new ArrayList<>();
|
|
|
+ List<String> wpPoints = new ArrayList<>();
|
|
|
+ List<String> wtPoints = new ArrayList<>();
|
|
|
+ Map<String, ProBasicPowerstationPoint> pointMap = wppointmap.get(wp.getId());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.DJTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SDTJTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.XNTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.QXJCLTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.GZTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.CNSLGZTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.JXTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.CNSLJXTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.XDTJTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.XDJCLTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.CWSLDWTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.CWSLTQTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.LXTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.TXZDTSMX).getNemCode());
|
|
|
+ if (wp.getWindType().equals("-1")) {
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSPJFS).getNemCode());
|
|
|
+ } else if (wp.getWindType().equals("-2")) {
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSPJGZD).getNemCode());
|
|
|
+ }
|
|
|
+
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSZBZGL).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSZNHGLZS).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSZGL).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.ZYCGL).getNemCode());
|
|
|
+ List<ProBasicEquipment> equipments = wpwtmap.get(wp.getId());
|
|
|
+ equipments.stream().forEach(wt -> {
|
|
|
+ Map<String, ProBasicEquipmentPoint> equipmentPointMap = wtpAimap.get(wt.getId());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.MXZT).getNemCode());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.CJ_SSGL).getNemCode());
|
|
|
+ if (wt.getEquipmentCategory() == -1) {
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.CJ_SSFS).getNemCode());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.CJ_SSZS).getNemCode());
|
|
|
+ } else if (wt.getEquipmentCategory() == -2) {
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.JLDL).getNemCode());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.JLDY).getNemCode());
|
|
|
+ }
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.SSQFZT).getNemCode());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.RQFDL).getNemCode());
|
|
|
+ });
|
|
|
+ try {
|
|
|
+ List<PointData> wpRealdatas = edosUtil.getRealData(wpPoints);
|
|
|
+ List<PointData> wtRealdatas = edosUtil.getRealData(wtPoints);
|
|
|
+ MatrixPowerVo powerVo = new MatrixPowerVo();
|
|
|
+ powerVo.setWpid(wp.getId());
|
|
|
+ powerVo.setWpname(wp.getAname());
|
|
|
+ if (wp.getWindType().equals("-1")){
|
|
|
+ powerVo.setCzlx("-1");
|
|
|
+ }else if(wp.getWindType().equals("-2")){
|
|
|
+ powerVo.setCzlx("-2");
|
|
|
+ }
|
|
|
+ powerVo.setJrts(wp.getJrwindQuantityHs() + wp.getJrwindQuantityLd() + wp.getJrquantityJz() + wp.getJrquantityZc());
|
|
|
+ powerVo.setDjts(wpRealdatas.get(0).getPointValueInDouble() + wpRealdatas.get(1).getPointValueInDouble());
|
|
|
+ powerVo.setBwts(wpRealdatas.get(2).getPointValueInDouble() + wpRealdatas.get(3).getPointValueInDouble());
|
|
|
+ powerVo.setGzts(wpRealdatas.get(4).getPointValueInDouble() + wpRealdatas.get(5).getPointValueInDouble());
|
|
|
+ powerVo.setJxts(wpRealdatas.get(6).getPointValueInDouble() + wpRealdatas.get(7).getPointValueInDouble());
|
|
|
+ powerVo.setXdts(wpRealdatas.get(8).getPointValueInDouble() + wpRealdatas.get(9).getPointValueInDouble());
|
|
|
+ powerVo.setSlts(wpRealdatas.get(10).getPointValueInDouble() + wpRealdatas.get(11).getPointValueInDouble());
|
|
|
+ powerVo.setLxts(wpRealdatas.get(12).getPointValueInDouble() + wpRealdatas.get(13).getPointValueInDouble());
|
|
|
+ powerVo.setSpped(wpRealdatas.get(13).getPointValueInDouble());
|
|
|
+ powerVo.setBzgl(wpRealdatas.get(14).getPointValueInDouble());
|
|
|
+ powerVo.setLlgl(wpRealdatas.get(15).getPointValueInDouble());
|
|
|
+ powerVo.setSjgl(wpRealdatas.get(16).getPointValueInDouble());
|
|
|
+ powerVo.setYcgl(wpRealdatas.get(17).getPointValueInDouble());
|
|
|
+
|
|
|
+ AtomicReference<Double> cxgl = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> agc = new AtomicReference<>((double) 0);
|
|
|
+ List<ProBasicSubStation> subStations = subwpls.stream().filter(sub -> sub.getWindpowerstationId().equals(wp.getId())).collect(Collectors.toList());
|
|
|
+ subStations.stream().forEach(sub->{
|
|
|
+ Map<String, ProBasicPowerstationPoint> powerstationPointMap = subwppointmap.get(sub.getId());
|
|
|
+ ProBasicPowerstationPoint cxglPoint = powerstationPointMap.get(ContantXk.TPOINT_WP_CXGL);
|
|
|
+
|
|
|
+ ProBasicPowerstationPoint agcPoint = powerstationPointMap.get(ContantXk.TPOINT_WP_AGC);
|
|
|
+ cxgl.updateAndGet(v -> {
|
|
|
+ try {
|
|
|
+ return new Double((double) (v + edosUtil.getRealData(cxglPoint).getPointValueInDouble()));
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return v;
|
|
|
+ });
|
|
|
+ agc.updateAndGet(v -> {
|
|
|
+ try {
|
|
|
+ return new Double((double) (v + edosUtil.getRealData(agcPoint).getPointValueInDouble()));
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return v;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ powerVo.setCxgl(cxgl.get());
|
|
|
+ powerVo.setAgc(agc.get());
|
|
|
+
|
|
|
+ jrts.addAndGet(powerVo.getJrts());
|
|
|
+ dfts.addAndGet((int) wpRealdatas.get(0).getPointValueInDouble());
|
|
|
+ sdtj.addAndGet((int) wpRealdatas.get(1).getPointValueInDouble());
|
|
|
+ zcyx.addAndGet((int) wpRealdatas.get(2).getPointValueInDouble());
|
|
|
+ jclyx.addAndGet((int) wpRealdatas.get(3).getPointValueInDouble());
|
|
|
+ gztj.addAndGet((int) wpRealdatas.get(4).getPointValueInDouble());
|
|
|
+ gzsl.addAndGet((int) wpRealdatas.get(5).getPointValueInDouble());
|
|
|
+ jxtj.addAndGet((int) wpRealdatas.get(6).getPointValueInDouble());
|
|
|
+ jxsl.addAndGet((int) wpRealdatas.get(7).getPointValueInDouble());
|
|
|
+ xdtj.addAndGet((int) wpRealdatas.get(8).getPointValueInDouble());
|
|
|
+ xdjcl.addAndGet((int) wpRealdatas.get(9).getPointValueInDouble());
|
|
|
+ dwsl.addAndGet((int) wpRealdatas.get(10).getPointValueInDouble());
|
|
|
+ hjsl.addAndGet((int) wpRealdatas.get(11).getPointValueInDouble());
|
|
|
+ lx.addAndGet((int) wpRealdatas.get(12).getPointValueInDouble());
|
|
|
+ wz.addAndGet((int) wpRealdatas.get(13).getPointValueInDouble());
|
|
|
+ int index = 6;
|
|
|
+ for (int j = 0; j < equipments.size(); j++) {
|
|
|
+ MatrixVo vo = new MatrixVo();
|
|
|
+ vo.setWtid(equipments.get(j).getId());
|
|
|
+ vo.setWtname(equipments.get(j).getAname());
|
|
|
+ vo.setStatus(wtRealdatas.get(j * index).getPointValueInDouble());
|
|
|
+ vo.setPower(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 1).getPointValueInDouble(), 2));
|
|
|
+
|
|
|
+ if (equipments.get(j).getEquipmentCategory() == -1) {
|
|
|
+ vo.setSpeed(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 2).getPointValueInDouble(), 2));
|
|
|
+ vo.setTransfer(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 3).getPointValueInDouble(), 2));
|
|
|
+ } else if (equipments.get(j).getEquipmentCategory() == -2) {
|
|
|
+ vo.setCurrent(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 2).getPointValueInDouble(), 2));
|
|
|
+ vo.setVoltage(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 3).getPointValueInDouble(), 2));
|
|
|
+ }
|
|
|
+ vo.setSsqfzt(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 4).getPointValueInDouble(), 2));
|
|
|
+ vo.setQfdl(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 5).getPointValueInDouble(), 2));
|
|
|
+ vo.setRate(DoubleUtils.keepPrecision(modelpower.containsKey(equipments.get(j).getId())?vo.getPower() / modelpower.get(equipments.get(j).getId()) * 100:0, 2));
|
|
|
+ volist.add(vo);
|
|
|
+ }
|
|
|
+ powerVo.setWtlist(volist);
|
|
|
+ qf0.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(0)).mapToDouble(MatrixVo::getQfdl).sum())));
|
|
|
+ qf1.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(1)).mapToDouble(MatrixVo::getQfdl).sum())));
|
|
|
+ qf2.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(2)).mapToDouble(MatrixVo::getQfdl).sum())));
|
|
|
+ qf3.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(3)).mapToDouble(MatrixVo::getQfdl).sum())));
|
|
|
+ qf4.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(4)).mapToDouble(MatrixVo::getQfdl).sum())));
|
|
|
+ powerVos.add(powerVo);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ Map<String, Object> dataMap = new HashMap<>();
|
|
|
+ dataMap.put("jrts", jrts.doubleValue());
|
|
|
+ dataMap.put("dfts", dfts.doubleValue());
|
|
|
+ dataMap.put("sdtj", sdtj.doubleValue());
|
|
|
+ dataMap.put("djts", dfts.doubleValue() + sdtj.doubleValue());
|
|
|
+ dataMap.put("zcyx", zcyx.doubleValue());
|
|
|
+ dataMap.put("jclyx", jclyx.doubleValue());
|
|
|
+ dataMap.put("bwts", zcyx.doubleValue() + jclyx.doubleValue());
|
|
|
+ dataMap.put("gztj", gztj.doubleValue());
|
|
|
+ dataMap.put("gzsl", gzsl.doubleValue());
|
|
|
+ dataMap.put("gzts", gztj.doubleValue() + gzsl.doubleValue());
|
|
|
+ dataMap.put("jxtj", jxtj.doubleValue());
|
|
|
+ dataMap.put("jxsl", jxsl.doubleValue());
|
|
|
+ dataMap.put("jxts", jxtj.doubleValue() + jxsl.doubleValue());
|
|
|
+ dataMap.put("xdtj", xdtj.doubleValue());
|
|
|
+ dataMap.put("xdjcl", xdjcl.doubleValue());
|
|
|
+ dataMap.put("xdts", xdtj.doubleValue() + xdjcl.doubleValue());
|
|
|
+ dataMap.put("dwsl", dwsl.doubleValue());
|
|
|
+ dataMap.put("hjsl", hjsl.doubleValue());
|
|
|
+ dataMap.put("slts", dwsl.doubleValue() + hjsl.doubleValue());
|
|
|
+ dataMap.put("lx", lx.doubleValue());
|
|
|
+ dataMap.put("wz", wz.doubleValue());
|
|
|
+ dataMap.put("lxz", lx.doubleValue() + wz.doubleValue());
|
|
|
+ dataMap.put("qf0", DoubleUtils.keepPrecision(qf0.get(), 2));
|
|
|
+ dataMap.put("qf1", DoubleUtils.keepPrecision(qf1.get(), 2));
|
|
|
+ dataMap.put("qf2", DoubleUtils.keepPrecision(qf2.get(), 2));
|
|
|
+ dataMap.put("qf3", DoubleUtils.keepPrecision(qf3.get(), 2));
|
|
|
+ dataMap.put("qf4", DoubleUtils.keepPrecision(qf4.get(), 2));
|
|
|
+ dataMap.put("powerVos", powerVos);
|
|
|
+ return dataMap;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ public Map<String, Object> basic(String company, String type) {
|
|
|
+
|
|
|
+ List<ProBasicPowerstation> wpls = CacheContext.wpls;
|
|
|
+
|
|
|
+
|
|
|
+ if (company.endsWith("ZGS")) {
|
|
|
+ wpls = wpls.stream().filter(wp -> wp.getCompanyId().equals(company)).collect(Collectors.toList());
|
|
|
+ }
|
|
|
+ if (type.equals("-1")) {
|
|
|
+ wpls = wpls.stream().filter(wp -> wp.getWindType().equals("-1")).collect(Collectors.toList());
|
|
|
+ } else if (type.equals("-2")) {
|
|
|
+ wpls = wpls.stream().filter(wp -> wp.getWindType().equals("-2")).collect(Collectors.toList());
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> wppointmap = CacheContext.wppointmap;
|
|
|
+ Map<String, Map<String, ProBasicEquipmentPoint>> wtpAimap = CacheContext.wtpAimap;
|
|
|
+ Map<String, List<ProBasicEquipment>> wpwtmap = CacheContext.wpwtmap;
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> subwppointmap = CacheContext.subwppointmap;
|
|
|
+
|
|
|
+ List<ProBasicSubStation> subwpls = CacheContext.subwpls;
|
|
|
+
|
|
|
+ List<MatrixPowerVo> powerVos = new ArrayList<>();
|
|
|
+ AtomicInteger jrts = new AtomicInteger();
|
|
|
+ AtomicInteger djts = new AtomicInteger();
|
|
|
+ AtomicInteger bwts = new AtomicInteger();
|
|
|
+ AtomicInteger gzts = new AtomicInteger();
|
|
|
+ AtomicInteger jxts = new AtomicInteger();
|
|
|
+ AtomicInteger xdts = new AtomicInteger();
|
|
|
+ AtomicInteger slts = new AtomicInteger();
|
|
|
+ AtomicInteger lxts = new AtomicInteger();
|
|
|
+ AtomicInteger gfjrts = new AtomicInteger();
|
|
|
+ AtomicInteger gfdjts = new AtomicInteger();
|
|
|
+ AtomicInteger gfbwts = new AtomicInteger();
|
|
|
+ AtomicInteger gfgzts = new AtomicInteger();
|
|
|
+ AtomicInteger gfjxts = new AtomicInteger();
|
|
|
+ AtomicInteger gfxdts = new AtomicInteger();
|
|
|
+ AtomicInteger gfslts = new AtomicInteger();
|
|
|
+ AtomicInteger gflxts = new AtomicInteger();
|
|
|
+
|
|
|
+ wpls.stream().forEach(wp -> {
|
|
|
+ List<MatrixVo> volist = new ArrayList<>();
|
|
|
+ List<String> wpPoints = new ArrayList<>();
|
|
|
+ List<String> wtPoints = new ArrayList<>();
|
|
|
+ Map<String, ProBasicPowerstationPoint> pointMap = wppointmap.get(wp.getId());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.DJTS).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.YXTS).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.GZTJTS).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.JXTJTS).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.XDTS).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SLTS).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.TXZDTS).getNemCode());
|
|
|
+
|
|
|
+ if (wp.getWindType().equals("-1")) {
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSPJFS).getNemCode());
|
|
|
+ } else if (wp.getWindType().equals("-2")) {
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSPJGZD).getNemCode());
|
|
|
+ }
|
|
|
+
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSZBZGL).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSZNHGLZS).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSZGL).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.ZYCGL).getNemCode());
|
|
|
+ List<ProBasicEquipment> equipments = wpwtmap.get(wp.getId());
|
|
|
+ equipments.stream().forEach(wt -> {
|
|
|
+ Map<String, ProBasicEquipmentPoint> equipmentPointMap = wtpAimap.get(wt.getId());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.SBZT).getNemCode());
|
|
|
+
|
|
|
+ });
|
|
|
+ try {
|
|
|
+ List<PointData> wpRealdatas = edosUtil.getRealData(wpPoints);
|
|
|
+ List<PointData> wtRealdatas = edosUtil.getRealData(wtPoints);
|
|
|
+ MatrixPowerVo powerVo = new MatrixPowerVo();
|
|
|
+ powerVo.setWpid(wp.getId());
|
|
|
+ powerVo.setWpname(wp.getAname());
|
|
|
+ if (wp.getWindType().equals("-1")){
|
|
|
+ powerVo.setCzlx("-1");
|
|
|
+ }else if(wp.getWindType().equals("-2")){
|
|
|
+ powerVo.setCzlx("-2");
|
|
|
+ }
|
|
|
+ powerVo.setJrts(wp.getJrwindQuantityHs() + wp.getJrwindQuantityLd() + wp.getJrquantityJz() + wp.getJrquantityZc());
|
|
|
+ powerVo.setDjts(wpRealdatas.get(0).getPointValueInDouble());
|
|
|
+ powerVo.setBwts(wpRealdatas.get(1).getPointValueInDouble());
|
|
|
+ powerVo.setGzts(wpRealdatas.get(2).getPointValueInDouble());
|
|
|
+ powerVo.setJxts(wpRealdatas.get(3).getPointValueInDouble());
|
|
|
+ powerVo.setXdts(wpRealdatas.get(4).getPointValueInDouble());
|
|
|
+ powerVo.setSlts(wpRealdatas.get(5).getPointValueInDouble());
|
|
|
+ powerVo.setLxts(wpRealdatas.get(6).getPointValueInDouble());
|
|
|
+ powerVo.setSpped(wpRealdatas.get(7).getPointValueInDouble());
|
|
|
+ powerVo.setBzgl(wpRealdatas.get(8).getPointValueInDouble());
|
|
|
+ powerVo.setLlgl(wpRealdatas.get(9).getPointValueInDouble());
|
|
|
+ powerVo.setSjgl(wpRealdatas.get(10).getPointValueInDouble());
|
|
|
+ powerVo.setYcgl(wpRealdatas.get(11).getPointValueInDouble());
|
|
|
+ AtomicReference<Double> cxgl = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> agc = new AtomicReference<>((double) 0);
|
|
|
+ List<ProBasicSubStation> subStations = subwpls.stream().filter(sub -> sub.getWindpowerstationId().equals(wp.getId())).collect(Collectors.toList());
|
|
|
+ subStations.stream().forEach(sub->{
|
|
|
+ Map<String, ProBasicPowerstationPoint> powerstationPointMap = subwppointmap.get(sub.getId());
|
|
|
+ ProBasicPowerstationPoint cxglPoint = powerstationPointMap.get(ContantXk.TPOINT_WP_CXGL);
|
|
|
+
|
|
|
+ ProBasicPowerstationPoint agcPoint = powerstationPointMap.get(ContantXk.TPOINT_WP_AGC);
|
|
|
+ cxgl.updateAndGet(v -> {
|
|
|
+ try {
|
|
|
+ return new Double((double) (v + edosUtil.getRealData(cxglPoint).getPointValueInDouble()));
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return v;
|
|
|
+ });
|
|
|
+ agc.updateAndGet(v -> {
|
|
|
+ try {
|
|
|
+ return new Double((double) (v + edosUtil.getRealData(agcPoint).getPointValueInDouble()));
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return v;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ powerVo.setCxgl(cxgl.get());
|
|
|
+ powerVo.setAgc(agc.get());
|
|
|
+
|
|
|
+ if (wp.getId().contains("_FDC_")){
|
|
|
+ jrts.addAndGet(powerVo.getJrts());
|
|
|
+ djts.addAndGet((int) wpRealdatas.get(0).getPointValueInDouble());
|
|
|
+ bwts.addAndGet((int) wpRealdatas.get(1).getPointValueInDouble());
|
|
|
+ gzts.addAndGet((int) wpRealdatas.get(2).getPointValueInDouble());
|
|
|
+ jxts.addAndGet((int) wpRealdatas.get(3).getPointValueInDouble());
|
|
|
+ xdts.addAndGet((int) wpRealdatas.get(4).getPointValueInDouble());
|
|
|
+ slts.addAndGet((int) wpRealdatas.get(5).getPointValueInDouble());
|
|
|
+ lxts.addAndGet((int) wpRealdatas.get(6).getPointValueInDouble());
|
|
|
+ }else if (wp.getId().contains("_GDC_")) {
|
|
|
+ gfjrts.addAndGet(powerVo.getJrts());
|
|
|
+ gfdjts.addAndGet((int) wpRealdatas.get(0).getPointValueInDouble());
|
|
|
+ gfbwts.addAndGet((int) wpRealdatas.get(1).getPointValueInDouble());
|
|
|
+ gfgzts.addAndGet((int) wpRealdatas.get(2).getPointValueInDouble());
|
|
|
+ gfjxts.addAndGet((int) wpRealdatas.get(3).getPointValueInDouble());
|
|
|
+ gfxdts.addAndGet((int) wpRealdatas.get(4).getPointValueInDouble());
|
|
|
+ gfslts.addAndGet((int) wpRealdatas.get(5).getPointValueInDouble());
|
|
|
+ gflxts.addAndGet((int) wpRealdatas.get(6).getPointValueInDouble());
|
|
|
+ }
|
|
|
+ for (int j = 0; j < equipments.size(); j++) {
|
|
|
+ MatrixVo vo = new MatrixVo();
|
|
|
+ vo.setWtid(equipments.get(j).getId());
|
|
|
+ vo.setWtname(equipments.get(j).getAname());
|
|
|
+ vo.setStatus(wtRealdatas.get(j).getPointValueInDouble());
|
|
|
+
|
|
|
+ volist.add(vo);
|
|
|
+ }
|
|
|
+ powerVo.setWtlist(volist);
|
|
|
+
|
|
|
+ powerVos.add(powerVo);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+ Map<String, Object> dataMap = new HashMap<>();
|
|
|
+ dataMap.put("jrts", jrts.doubleValue());
|
|
|
+ dataMap.put("djts", djts.doubleValue());
|
|
|
+ dataMap.put("bwts", bwts.doubleValue());
|
|
|
+ dataMap.put("gzts", gzts.doubleValue());
|
|
|
+ dataMap.put("jxts", jxts.doubleValue());
|
|
|
+ dataMap.put("xdts", xdts.doubleValue());
|
|
|
+ dataMap.put("slts", slts.doubleValue());
|
|
|
+ dataMap.put("lxts", lxts.doubleValue());
|
|
|
+ dataMap.put("gfjrts", gfjrts.doubleValue());
|
|
|
+ dataMap.put("gfdjts", gfdjts.doubleValue());
|
|
|
+ dataMap.put("gfbwts", gfbwts.doubleValue());
|
|
|
+ dataMap.put("gfgzts", gfgzts.doubleValue());
|
|
|
+ dataMap.put("gfjxts", gfjxts.doubleValue());
|
|
|
+ dataMap.put("gfxdts", gfxdts.doubleValue());
|
|
|
+ dataMap.put("gfslts", gfslts.doubleValue());
|
|
|
+ dataMap.put("gflxts", gflxts.doubleValue());
|
|
|
+
|
|
|
+ dataMap.put("powerVos", powerVos);
|
|
|
+ return dataMap;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public Map<String, Object> single(String wpid) throws Exception {
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> wppointmap = CacheContext.wppointmap;
|
|
|
+ Map<String, ProBasicPowerstation> wpmap = CacheContext.wpmap;
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> subwppointmap = CacheContext.subwppointmap;
|
|
|
+ List<ProBasicSubStation> subwpls = CacheContext.subwpls;
|
|
|
+ Map<String, ProBasicPowerstationPoint> pointMap = wppointmap.get(wpid);
|
|
|
+ ProBasicPowerstation powerstation = wpmap.get(wpid);
|
|
|
+ List<String> wpPoints = new ArrayList<>();
|
|
|
+
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.DJTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SDTJTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.XNTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.QXJCLTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.GZTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.CNSLGZTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.JXTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.CNSLJXTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.XDTJTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.XDJCLTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.CWSLDWTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.CWSLTQTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.LXTSMX).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.TXZDTSMX).getNemCode());
|
|
|
+ if (powerstation.getWindType().equals("-1")) {
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSPJFS).getNemCode());
|
|
|
+ } else if (powerstation.getWindType().equals("-2")) {
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSPJGZD).getNemCode());
|
|
|
+ }
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSZBZGL).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSZNHGLZS).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.SSZGL).getNemCode());
|
|
|
+ wpPoints.add(pointMap.get(ContantXk.ZYCGL).getNemCode());
|
|
|
+
|
|
|
+ List<PointData> realData = edosUtil.getRealData(wpPoints);
|
|
|
+ resultMap.put("jrts",powerstation.getJrquantityJz()+powerstation.getJrquantityJz()+powerstation.getJrwindQuantityLd()+powerstation.getJrwindQuantityHs());
|
|
|
+ resultMap.put("dfts",realData.get(0).getPointValueInDouble());
|
|
|
+ resultMap.put("sdtjts",realData.get(1).getPointValueInDouble());
|
|
|
+ resultMap.put("djts",realData.get(0).getPointValueInDouble()+realData.get(1).getPointValueInDouble());
|
|
|
+
|
|
|
+ resultMap.put("zcyxts",realData.get(2).getPointValueInDouble());
|
|
|
+ resultMap.put("jclyxts",realData.get(3).getPointValueInDouble());
|
|
|
+ resultMap.put("bwts",realData.get(2).getPointValueInDouble()+realData.get(3).getPointValueInDouble());
|
|
|
+
|
|
|
+ resultMap.put("gztjts",realData.get(4).getPointValueInDouble());
|
|
|
+ resultMap.put("gzslts",realData.get(5).getPointValueInDouble());
|
|
|
+ resultMap.put("gzts",realData.get(4).getPointValueInDouble()+realData.get(5).getPointValueInDouble());
|
|
|
+
|
|
|
+ resultMap.put("jxtjts",realData.get(6).getPointValueInDouble());
|
|
|
+ resultMap.put("jxslts",realData.get(7).getPointValueInDouble());
|
|
|
+ resultMap.put("jxts",realData.get(6).getPointValueInDouble()+realData.get(7).getPointValueInDouble());
|
|
|
+
|
|
|
+ resultMap.put("xdtjts",realData.get(8).getPointValueInDouble());
|
|
|
+ resultMap.put("xdjclts",realData.get(9).getPointValueInDouble());
|
|
|
+ resultMap.put("xdts",realData.get(8).getPointValueInDouble()+realData.get(9).getPointValueInDouble());
|
|
|
+
|
|
|
+ resultMap.put("dwslts",realData.get(10).getPointValueInDouble());
|
|
|
+ resultMap.put("hjslts",realData.get(11).getPointValueInDouble());
|
|
|
+ resultMap.put("slts",realData.get(10).getPointValueInDouble()+realData.get(11).getPointValueInDouble());
|
|
|
+
|
|
|
+ resultMap.put("lxts",realData.get(12).getPointValueInDouble());
|
|
|
+ resultMap.put("wzts",realData.get(13).getPointValueInDouble());
|
|
|
+ resultMap.put("lxzts",realData.get(12).getPointValueInDouble()+realData.get(13).getPointValueInDouble());
|
|
|
+
|
|
|
+ resultMap.put("speed",realData.get(14).getPointValueInDouble());
|
|
|
+ resultMap.put("bzgl",realData.get(15).getPointValueInDouble());
|
|
|
+ resultMap.put("llgl",realData.get(16).getPointValueInDouble());
|
|
|
+ resultMap.put("sjgl",realData.get(17).getPointValueInDouble());
|
|
|
+ resultMap.put("ycgl",realData.get(18).getPointValueInDouble());
|
|
|
+ AtomicReference<Double> cxgl = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> agc = new AtomicReference<>((double) 0);
|
|
|
+ List<ProBasicSubStation> subStations = subwpls.stream().filter(sub -> sub.getWindpowerstationId().equals(powerstation.getId())).collect(Collectors.toList());
|
|
|
+ subStations.stream().forEach(sub->{
|
|
|
+ Map<String, ProBasicPowerstationPoint> powerstationPointMap = subwppointmap.get(sub.getId());
|
|
|
+ ProBasicPowerstationPoint cxglPoint = powerstationPointMap.get(ContantXk.TPOINT_WP_CXGL);
|
|
|
+
|
|
|
+ ProBasicPowerstationPoint agcPoint = powerstationPointMap.get(ContantXk.TPOINT_WP_AGC);
|
|
|
+ cxgl.updateAndGet(v -> {
|
|
|
+ try {
|
|
|
+ return new Double((double) (v + edosUtil.getRealData(cxglPoint).getPointValueInDouble()));
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return v;
|
|
|
+ });
|
|
|
+ agc.updateAndGet(v -> {
|
|
|
+ try {
|
|
|
+ return new Double((double) (v + edosUtil.getRealData(agcPoint).getPointValueInDouble()));
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return v;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ resultMap.put("cxgl",cxgl.get());
|
|
|
+ resultMap.put("agc",agc.get());
|
|
|
+
|
|
|
+ //期次
|
|
|
+ Map<String, List<ProBasicProject>> wppromap = CacheContext.wppromap;
|
|
|
+ List<ProBasicProject> projects = wppromap.get(wpid);
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> propointmap = CacheContext.propointmap;
|
|
|
+ Map<String,Object> proMap = new HashMap<>();
|
|
|
+ projects.stream().forEach(p->{
|
|
|
+ List<String> procodes = new ArrayList<>();
|
|
|
+ Map<String, ProBasicPowerstationPoint> powerstationPointMap = propointmap.get(p.getId());
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.DJTS).getNemCode());
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.YXTS).getNemCode());
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.GZTJTS).getNemCode());
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.JXTJTS).getNemCode());
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.XDTS).getNemCode());
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.SLTS).getNemCode());
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.TXZDTS).getNemCode());
|
|
|
+ if (powerstation.getWindType().equals("-1")){
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.SSPJFS).getNemCode());
|
|
|
+ }else if (powerstation.getWindType().equals("-2")){
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.SSPJGZD).getNemCode());
|
|
|
+ }
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.SSZBZGL).getNemCode());
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.SSZNHGLZS).getNemCode());
|
|
|
+ procodes.add(powerstationPointMap.get(ContantXk.SSZGL).getNemCode());
|
|
|
+ List<PointData> prodatas = null;
|
|
|
+ try {
|
|
|
+ prodatas = edosUtil.getRealData(procodes);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(prodatas)){
|
|
|
+ proMap.put("djts",prodatas.get(0).getPointValueInDouble());
|
|
|
+ proMap.put("bwts",prodatas.get(1).getPointValueInDouble());
|
|
|
+ proMap.put("gzts",prodatas.get(2).getPointValueInDouble());
|
|
|
+ proMap.put("jxts",prodatas.get(3).getPointValueInDouble());
|
|
|
+ proMap.put("xdts",prodatas.get(4).getPointValueInDouble());
|
|
|
+ proMap.put("slts",prodatas.get(5).getPointValueInDouble());
|
|
|
+ proMap.put("lxts",prodatas.get(6).getPointValueInDouble());
|
|
|
+ proMap.put("speed",prodatas.get(7).getPointValueInDouble());
|
|
|
+ proMap.put("bzgl",prodatas.get(8).getPointValueInDouble());
|
|
|
+ proMap.put("llgl",prodatas.get(9).getPointValueInDouble());
|
|
|
+ proMap.put("sjgl",prodatas.get(10).getPointValueInDouble());
|
|
|
+ }
|
|
|
+ //线路
|
|
|
+ Map<String, List<ProBasicLine>> prolinemap = CacheContext.prolinemap;
|
|
|
+ Map<String, List<ProBasicEquipment>> lnwtmap = CacheContext.lnwtmap;
|
|
|
+ Map<String, Map<String, ProBasicEquipmentPoint>> wtpAimap = CacheContext.wtpAimap;
|
|
|
+ Map<String, Double> modelpower = CacheContext.modelpower;
|
|
|
+ List<ProBasicLine> lines = prolinemap.get(p.getId());
|
|
|
+ Map<String,Object> lineMap = new HashMap<>();
|
|
|
+ lines.stream().forEach(line->{
|
|
|
+ List<ProBasicEquipment> equipments = lnwtmap.get(line.getId());
|
|
|
+ List<String> wtPoints = new ArrayList<>();
|
|
|
+ equipments.stream().forEach(wt->{
|
|
|
+ Map<String, ProBasicEquipmentPoint> equipmentPointMap = wtpAimap.get(wt.getId());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.MXZT).getNemCode());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.CJ_SSGL).getNemCode());
|
|
|
+ if (wt.getEquipmentCategory() == -1) {
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.CJ_SSFS).getNemCode());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.CJ_SSZS).getNemCode());
|
|
|
+ } else if (wt.getEquipmentCategory() == -2) {
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.JLDL).getNemCode());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.JLDY).getNemCode());
|
|
|
+ }
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.SSQFZT).getNemCode());
|
|
|
+ wtPoints.add(equipmentPointMap.get(ContantXk.RQFDL).getNemCode());
|
|
|
+ });
|
|
|
+ List<PointData> wtRealdatas = null;
|
|
|
+ try {
|
|
|
+ wtRealdatas = edosUtil.getRealData(wtPoints);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ List<MatrixVo> volist = new ArrayList<>();
|
|
|
+ if (StringUtils.isNotEmpty(wtRealdatas)){
|
|
|
+ int index = 6;
|
|
|
+ for (int j = 0; j < equipments.size(); j++) {
|
|
|
+ MatrixVo vo = new MatrixVo();
|
|
|
+ vo.setWtid(equipments.get(j).getId());
|
|
|
+ vo.setWtname(equipments.get(j).getAname());
|
|
|
+ vo.setStatus(wtRealdatas.get(j * index).getPointValueInDouble());
|
|
|
+ vo.setPower(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 1).getPointValueInDouble(), 2));
|
|
|
+
|
|
|
+ if (equipments.get(j).getEquipmentCategory() == -1) {
|
|
|
+ vo.setSpeed(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 2).getPointValueInDouble(), 2));
|
|
|
+ vo.setTransfer(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 3).getPointValueInDouble(), 2));
|
|
|
+ } else if (equipments.get(j).getEquipmentCategory() == -2) {
|
|
|
+ vo.setCurrent(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 2).getPointValueInDouble(), 2));
|
|
|
+ vo.setVoltage(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 3).getPointValueInDouble(), 2));
|
|
|
+ }
|
|
|
+ vo.setSsqfzt(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 4).getPointValueInDouble(), 2));
|
|
|
+ vo.setQfdl(DoubleUtils.keepPrecision(wtRealdatas.get(j * index + 5).getPointValueInDouble(), 2));
|
|
|
+ vo.setRate(DoubleUtils.keepPrecision(vo.getPower() / modelpower.get(equipments.get(j).getId()) * 100, 2));
|
|
|
+ volist.add(vo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ lineMap.put("lineInfo",line.getAname());
|
|
|
+ lineMap.put("wtDatas",volist);
|
|
|
+ });
|
|
|
+ proMap.put("lineData",lineMap);
|
|
|
+ proMap.put("proInfo",p.getAname());
|
|
|
+ });
|
|
|
+ resultMap.put("proDatas",proMap);
|
|
|
+
|
|
|
+ return resultMap;
|
|
|
+ }
|
|
|
+}
|