| | |
| | | package org.sxkj.fw.cockpit.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import org.springframework.stereotype.Service; |
| | | import org.sxkj.fw.cockpit.service.ICockpitService; |
| | | import org.sxkj.fw.cockpit.vo.AlarmStatisticsVO; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | |
| | | @Service |
| | | public class CockpitServiceImpl implements ICockpitService { |
| | |
| | | |
| | | @Override |
| | | public boolean interferenceAndExpulsion(FwEffectEvalParam fwEffectEvalParam) { |
| | | // 告警记录 |
| | | FwDroneAlarmRecordEntity alarmRecordEntity = fwDroneAlarmRecordService.getById(fwEffectEvalParam.getAlarmRecordId()); |
| | | // 设备信息 |
| | | FwDeviceEntity device = fwDeviceService.getById(alarmRecordEntity.getDeviceId()); |
| | | FwEffectEvalEntity fwEffectEvalEntity = new FwEffectEvalEntity(); |
| | | // 反制效果 |
| | | FwEffectEvalEntity one = fwEffectEvalService.getOne(Wrappers.<FwEffectEvalEntity>lambdaQuery().eq(FwEffectEvalEntity::getAlarmRecordId, fwEffectEvalParam.getAlarmRecordId())); |
| | | FwEffectEvalEntity fwEffectEvalEntity = Optional.ofNullable(one) |
| | | .orElse(new FwEffectEvalEntity()); |
| | | |
| | | // 告警记录相关字段 |
| | | fwEffectEvalEntity.setAlarmRecordId(fwEffectEvalParam.getAlarmRecordId()); |