吉安感知网项目-后端
xiebin
2026-01-15 a7bd8d59de0ddd8cc146e368af12844441e0dcd7
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/service/impl/FwDeviceScrapServiceImpl.java
@@ -47,6 +47,11 @@
   private final IFwDeviceService fwDeviceService;
   @Override
   public FwDeviceScrapVO getFwDeviceScrapById(Long id) {
      return baseMapper.getFwDeviceScrapById(id);
   }
   @Override
   @Transactional
   public boolean saveFwDeviceScrap(FwDeviceScrapDTO dto) {
      boolean isSuccess = super.save(FwDeviceScrapWrapper.build().entityDTO(dto));
@@ -54,6 +59,7 @@
         FwDeviceEntity fwDevice = new FwDeviceEntity();
         fwDevice.setId(dto.getDeviceId());
         fwDevice.setStatus(3);
         fwDevice.setIsDeleted(1);
         isSuccess = fwDeviceService.updateById(fwDevice);
      }
      return isSuccess;