| | |
| | | default: |
| | | break; |
| | | } |
| | | |
| | | //处理预测累计 |
| | | if (outPut.getIscumulant() != null && outPut.getIscumulant() == 1) { |
| | | if (StringUtils.isNotBlank(outPut.getCumulpoint())) { |
| | | dataView.setCumulantRealData(getHisData(outPut.getCumulpoint(), predictTime, endTime)); |
| | | } |
| | | List<Object[]> cumulantPreList = mmItemResultService.getData(outPut.getId() + CommonDict.CUMULANT_SUFFIX, predictTime, endTime, DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND); |
| | | dataView.setCumulantPreData(cumulantPreList); |
| | | if (!CollectionUtils.isEmpty(cumulantPreList)) { |
| | | dataView.setCumulantPreValue(cumulantPreList.get(cumulantPreList.size() - 1)[1]); |
| | | } |
| | | } |
| | | |
| | | if (!CollectionUtils.isEmpty(dataView.getRealData())) { |
| | | Object[] rdo = dataView.getRealData().get(dataView.getRealData().size() - 1); |
| | | dataView.setCurrValue(new BigDecimal(rdo[1].toString())); |