| | |
| | | return result; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public PreDataSingleChartRespVO getPreDataSingleChart(PreDataSingleChartReqVO reqVO) { |
| | | PreDataSingleChartRespVO result = new PreDataSingleChartRespVO(); |
| | |
| | | |
| | | 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("暂无预警信息"); |
| | |
| | | StScheduleModelEntity model = stScheduleModelService.getByModelCode(modelCode); |
| | | stScheduleModelSettingService.updateByModelIdAndKey(model.getId(), key, value); |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public List<StAdjustConfigDetDTO> getAdjustConfigListByModelId(String modelId) { |
| | | List<StAdjustConfigDetEntity> list = stAdjustConfigService.getDetByModelId(modelId); |
| | | return ConvertUtils.sourceToTarget(list, StAdjustConfigDetDTO.class); |
| | | } |
| | | |
| | | @Override |