鞍钢鲅鱼圈能源管控系统后端代码
dongyukun
10 天以前 73d5bf7122a33d2915cce1deb444743844dfbd37
ansteel-biz/src/main/java/com/iailab/module/ansteel/job/task/RunPeakValleyFlatTask.java
@@ -65,6 +65,7 @@
                dto.setValue(value/totalValue*100);
                dataPointApi.writePointRealValue(dto);
                if(entry.getValue().get(0).getPointNoMonth()!=null){
                //计算前三十日累积量
                double value30 = 0;
                for (int i = 1; i < 31; i++) {
@@ -85,6 +86,7 @@
                monthDto.setPointNo(entry.getValue().get(0).getPointNoMonth());
                monthDto.setValue(value30/totalValueMonth*100);
                dataPointApi.writePointRealValue(monthDto);
                }
            });
        } catch (Exception ex) {
            logger.error("runPeakValleyFlatTask运行异常");