吉安感知网项目-后端
linwei
22 hours ago 08ddfad4530a014094c06fe68b8c2d9a0753403a
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/wrapper/FwDeviceTrackWrapper.java
@@ -18,8 +18,10 @@
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.sxkj.fw.device.dto.FwDeviceTrackDTO;
import org.sxkj.fw.device.entity.FwDeviceTrackEntity;
import org.sxkj.fw.device.vo.FwDeviceTrackVO;
import java.util.Objects;
/**
@@ -36,14 +38,11 @@
   @Override
   public FwDeviceTrackVO entityVO(FwDeviceTrackEntity fwDeviceTrack) {
      FwDeviceTrackVO fwDeviceTrackVO = Objects.requireNonNull(BeanUtil.copy(fwDeviceTrack, FwDeviceTrackVO.class));
      return Objects.requireNonNull(BeanUtil.copy(fwDeviceTrack, FwDeviceTrackVO.class));
   }
      //User createUser = UserCache.getUser(fwDeviceTrack.getCreateUser());
      //User updateUser = UserCache.getUser(fwDeviceTrack.getUpdateUser());
      //fwDeviceTrackVO.setCreateUserName(createUser.getName());
      //fwDeviceTrackVO.setUpdateUserName(updateUser.getName());
      return fwDeviceTrackVO;
   public FwDeviceTrackEntity entityDTO(FwDeviceTrackDTO fwDevice) {
      return Objects.requireNonNull(BeanUtil.copy(fwDevice, FwDeviceTrackEntity.class));
   }