沙钢智慧能源系统后端代码
Jay
2 天以前 0564b61032890f9d116b2fa1c3d8e667c26b140d
shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunMachineStateTask.java
@@ -92,6 +92,8 @@
            List<String> partPointNos = partPoints.values().stream().flatMap(List::stream).collect(Collectors.toList());
            partPointNos.add("M0000100011");
            partPointNos.add("M0000100012");
            partPointNos.add("C0000101299");
            partPointNos.add("C0000101300");
            Map<String, Object> partPointsRealValue = dataPointApi.queryPointsRealValue(partPointNos);
            logger.info("运行状态点值:{}", partPointsRealValue);
            List<String> qhPointNos = qhPoints.values().stream().flatMap(List::stream).collect(Collectors.toList());
@@ -142,9 +144,12 @@
                        partPointsRealValue.replace("C0000101218", 0);
                        partPointsRealValue.replace("C0000101114", 0);
                        partPointsRealValue.replace("C0000101116", 0);
                        //若其中一个135MW气耗率为0,则剩下那个135MW机组BFG、LDG取“动力总厂135MW发电机组BFG使用瞬时流量(M0000100011)“,”动力总厂135MW发电机组LDG使用瞬时流量(M0000100012)
                        //若其中一个135MW气耗率为0,则剩下那个135MW机组BFG、LDG取“动力总厂135MW发电机组BFG使用瞬时流量(M0000100011),动力总厂135MW发电机组LDG使用瞬时流量(M0000100012)
                        partPointsRealValue.replace("C0000101115", partPointsRealValue.get("M0000100011"));
                        partPointsRealValue.replace("C0000101117", partPointsRealValue.get("M0000100012"));
                        //若其中一个135MW气耗率为0,BFG可增加换成“C0000101299 动力总厂135MW发电机组BFG可增加(单135机组运行),LDG可增加换成C0000101300 动力总厂135MW发电机组LDG可增加(单135机组运行)
                        partPointsRealValue.replace("C0000101232", partPointsRealValue.get("C0000101299"));
                        partPointsRealValue.replace("C0000101222", partPointsRealValue.get("C0000101300"));
                    }else if ("F0000100103".equals(pointNo) && value == 0.00) {
                        partPointsRealValue.replace("F0000100114", 0);
                        partPointsRealValue.replace("C0000101232", 0);
@@ -154,6 +159,8 @@
                        partPointsRealValue.replace("C0000101117", 0);
                        partPointsRealValue.replace("C0000101114", partPointsRealValue.get("M0000100011"));
                        partPointsRealValue.replace("C0000101116", partPointsRealValue.get("M0000100012"));
                        partPointsRealValue.replace("C0000101231", partPointsRealValue.get("C0000101299"));
                        partPointsRealValue.replace("C0000101221", partPointsRealValue.get("C0000101300"));
                    }
                }
            }