吉安感知网项目-后端
rain
2026-01-28 bb645b81988365ded95ff660303f47d12d379bad
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/service/impl/FwDeviceServiceImpl.java
@@ -161,9 +161,14 @@
   @Override
   public boolean saveOrUpdateDevice(FwDeviceEntity fwDeviceEntity) {
      if (fwDeviceEntity.getEffectiveRangeKm() == null || fwDeviceEntity.getEffectiveRangeKm().compareTo(BigDecimal.ZERO) == 0 ) {
         fwDeviceEntity.setLatitude(null);
         fwDeviceEntity.setLongitude(null);
         fwDeviceEntity.setLatitude("");
         fwDeviceEntity.setLongitude("");
      }
      return saveOrUpdate(fwDeviceEntity);
   }
   @Override
   public boolean updateTrackStatusByDeviceId(Long deviceId, Integer trackStatus) {
      return baseMapper.updateTrackStatusByDeviceId(deviceId, trackStatus) > 0;
   }
}