吉安感知网项目-后端
linwei
2026-01-31 0570e8de9ba479d67dfcfdeebe1cfccc4a56f812
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/service/impl/FwDefenseSceneManageServiceImpl.java
@@ -93,6 +93,7 @@
    */
   @Override
   public boolean deleteFwDefenseSceneManage(List<Long> longList) {
      //删除场景管理
      boolean b = deleteLogic(longList);
      if (b) {
         // 1.遍历所有删除的场景管理ID
@@ -102,6 +103,9 @@
            List<Long> deviceIdList = baseMapper.selectDeviceId(sceneManageId);
            AllDeviceId.addAll(deviceIdList);
         }
         if (AllDeviceId == null || AllDeviceId.isEmpty()) {
            return true;
         }
         // 3.禁用设备
         return fwDeviceService.update(Wrappers.<FwDeviceEntity>lambdaUpdate()
            .set(FwDeviceEntity::getIsEnabled, 0)