吉安感知网项目-后端
xiebin
2026-01-08 b70eb5ee9ad3bb6209830a35d703439fd798a38f
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/wrapper/FwDeviceWrapper.java
@@ -18,15 +18,17 @@
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.sxkj.fw.device.dto.FwDeviceAndTrackDTO;
import org.sxkj.fw.device.dto.FwDeviceDTO;
import org.sxkj.fw.device.entity.FwDeviceEntity;
import org.sxkj.fw.device.vo.FwDeviceVO;
import java.util.Objects;
/**
 * 反无设备表 包装类,返回视图层所需的字段
 * 设备表 包装类,返回视图层所需的字段
 *
 * @author AIX
 * @since 2026-01-06
 * @author Aix
 * @since 2026-01-08
 */
public class FwDeviceWrapper extends BaseEntityWrapper<FwDeviceEntity, FwDeviceVO>  {
@@ -36,14 +38,11 @@
   @Override
   public FwDeviceVO entityVO(FwDeviceEntity fwDevice) {
      FwDeviceVO fwDeviceVO = Objects.requireNonNull(BeanUtil.copy(fwDevice, FwDeviceVO.class));
      return Objects.requireNonNull(BeanUtil.copy(fwDevice, FwDeviceVO.class));
   }
      //User createUser = UserCache.getUser(fwDevice.getCreateUser());
      //User updateUser = UserCache.getUser(fwDevice.getUpdateUser());
      //fwDeviceVO.setCreateUserName(createUser.getName());
      //fwDeviceVO.setUpdateUserName(updateUser.getName());
      return fwDeviceVO;
   public FwDeviceEntity entityDTO(FwDeviceDTO dto) {
      return Objects.requireNonNull(BeanUtil.copy(dto, FwDeviceEntity.class));
   }