| | |
| | | @Override |
| | | public PreDataItemChartRespVO getPreDataItemChart(PreDataItemChartReqVO reqVO) { |
| | | PreDataItemChartRespVO result = new PreDataItemChartRespVO(); |
| | | ItemVO predictItem = mmPredictItemService.getItemByIdFromCache(reqVO.getItemId()); |
| | | ItemVO predictItem = mmPredictItemService.getItemById(reqVO.getItemId()); |
| | | if (predictItem == null) { |
| | | return result; |
| | | } |
| | |
| | | for (MmItemOutputEntity out : outs) { |
| | | legend.add(out.getResultName()); |
| | | PreDataSampleViewRespDTO viewDto = new PreDataSampleViewRespDTO(); |
| | | viewDto.setRealData(getHisData(out.getPointid(), startTime, endTime)); |
| | | if (StringUtils.isNotBlank(out.getPointid())) { |
| | | viewDto.setRealData(getHisData(out.getPointid(), startTime, endTime)); |
| | | } |
| | | viewDto.setPreDataN(mmItemResultService.getData(out.getId(), startTime, endTime, DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)); |
| | | viewMap.put(out.getResultName(), viewDto); |
| | | } |