| | |
| | | @Autowired |
| | | private PlanItemApi planItemApi; |
| | | |
| | | @Autowired |
| | | private MmPredictAlarmConfigService mmPredictAlarmConfigService; |
| | | |
| | | |
| | | private int HOUR_MINS = 60; |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<AlarmConfigRespDTO> listAlarmConfig(Map<String, Object> params) { |
| | | return mmPredictAlarmConfigService.list(params); |
| | | } |
| | | |
| | | @Override |
| | | public AlarmMessageRespDTO getLastAlarmMessage(String alarmObj) { |
| | | MmPredictAlarmMessageEntity entity = mmPredictAlarmMessageService.getLast(alarmObj); |
| | | return ConvertUtils.sourceToTarget(entity, AlarmMessageRespDTO.class); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ScheduleSuggestRespDTO> listScheduleSuggest(ScheduleSuggestReqDTO params) { |
| | | return Collections.emptyList(); |
| | | } |
| | | |
| | | @Override |
| | | public List<ScheduleSuggestRespDTO> getLastLimitScheduleSuggest(String scheduleObj, Integer limit) { |
| | | List<StScheduleSuggestEntity> list = stScheduleSuggestService.getList(scheduleObj, limit); |
| | | return ConvertUtils.sourceToTarget(list, ScheduleSuggestRespDTO.class); |