| | |
| | | dataView.setPreDataN(mmItemResultService.getData(outPut.getId(), predictTime, endTime, timeFormat)); |
| | | dataView.setPreDataL(mmItemResultLastPointService.getData(outPut.getId(), startTime, endTime, timeFormat)); |
| | | break; |
| | | case CL: |
| | | dataView.setPreDataN(mmItemResultService.getData(outPut.getId(), predictTime, endTime, timeFormat)); |
| | | dataView.setPreDataL(mmItemResultLastPointService.getData(outPut.getId(), startTime, endTime, timeFormat)); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | |
| | | String alarmObj = chartParams.get(CommonConstant.ALARM_OBJ); |
| | | if (StringUtils.isNotBlank(alarmObj)) { |
| | | List<AlarmMessageRespDTO> alarmList = ConvertUtils.sourceToTarget(mmPredictAlarmMessageService.getList(alarmObj, predictTime), AlarmMessageRespDTO.class); |
| | | String alarmTitle = chartParams.get(CommonConstant.ALARM_TITLE); |
| | | List<AlarmMessageRespDTO> alarmList = ConvertUtils.sourceToTarget(mmPredictAlarmMessageService.getList(alarmObj, predictTime, alarmTitle), AlarmMessageRespDTO.class); |
| | | dataView.setAlarmList(alarmList); |
| | | if (CollectionUtils.isEmpty(alarmList)) { |
| | | dataView.setAlarmMessage("暂无预警信息"); |