吉安感知网项目-后端
linwei
2026-01-27 e7e920b15e7cb9cf28e380a445ce87b9937c675a
drone-service/drone-fw/src/main/java/org/sxkj/fw/cockpit/service/impl/CockpitServiceImpl.java
@@ -1,6 +1,7 @@
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;
@@ -19,6 +20,7 @@
import javax.annotation.Resource;
import java.util.List;
import java.util.Optional;
@Service
public class CockpitServiceImpl implements ICockpitService {
@@ -50,9 +52,14 @@
   @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());