鞍钢鲅鱼圈能源管控系统后端代码
dengzedong
2025-05-20 acb2de568fe7ec48052541bfce861ffd45311fdb
ansteel-biz/src/main/java/com/iailab/module/ansteel/api/service/impl/DataServiceImpl.java
@@ -181,6 +181,7 @@
        String trendsDataH = tMap.get(CommonConstant.TRENDSDATA_H) == null ? null : tMap.get(CommonConstant.TRENDSDATA_H);
        String trendsDataL = tMap.get(CommonConstant.TRENDSDATA_L) == null ? null : tMap.get(CommonConstant.TRENDSDATA_L);
        String culIndex = tMap.get(CommonConstant.CUL_INDEX) == null ? null : tMap.get(CommonConstant.CUL_INDEX);//累计量
        String lineType = tMap.get(CommonConstant.LINE_TYPE) == null ? null : tMap.get(CommonConstant.LINE_TYPE);
        Date[] timeArray = calResultTime(predictItem, reqVO.getStartTime(), reqVO.getEndTime(), lengthLeft, lengthRight);
        Date startTime = timeArray[1];
@@ -235,7 +236,16 @@
            }
        }
        preDataView.setCulData(culData);
        switch (lineType) {
            case "0":
                preDataView.setPreData(resultOld.getDataView().getPreDataN());
                break;
            case "1":
        preDataView.setPreData(resultOld.getDataView().getPreDataL());
                break;
            default:
                break;
        }
        result.setPreDataView(preDataView);
        return result;
    }