| | |
| | | import com.iailab.module.model.common.enums.PreLineTypeEnum; |
| | | import com.iailab.module.model.mcs.pre.entity.DmModuleEntity; |
| | | import com.iailab.module.model.mcs.pre.entity.MmItemOutputEntity; |
| | | import com.iailab.module.model.mcs.pre.entity.MmPredictAlarmMessageEntity; |
| | | import com.iailab.module.model.mcs.pre.service.*; |
| | | import com.iailab.module.model.mcs.pre.vo.MmPredictAlarmMessageSaveReqVO; |
| | | import com.iailab.module.model.mdk.vo.ItemVO; |
| | | import com.iailab.module.model.mpk.service.ChartService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | |
| | | @Autowired |
| | | private ChartService chartService; |
| | | |
| | | @Autowired |
| | | private MmPredictAlarmMessageService mmPredictAlarmMessageService; |
| | | |
| | | @Autowired |
| | | private PlanItemApi planItemApi; |
| | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 新增预警信息 |
| | | * |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Boolean createAlarmMessage(AlarmMessageRespDTO dto) { |
| | | return true; |
| | | try { |
| | | mmPredictAlarmMessageService.create(ConvertUtils.sourceToTarget(dto, MmPredictAlarmMessageSaveReqVO.class)); |
| | | return true; |
| | | } catch (Exception e) { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public AlarmMessageRespDTO getLastAlarmMessage(String alarmObj) { |
| | | MmPredictAlarmMessageEntity entity = mmPredictAlarmMessageService.getLast(alarmObj); |
| | | return ConvertUtils.sourceToTarget(entity, AlarmMessageRespDTO.class); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean createScheduleSuggest(ScheduleSuggestRespDTO dto) { |
| | | return true; |
| | | } |