吉安感知网项目-后端
xiebin
2026-01-08 7f3f70db1107cb0a24ea6a8e75a99c327fad9c60
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/wrapper/FwDeviceTrackWrapper.java
@@ -18,7 +18,6 @@
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;
@@ -26,7 +25,7 @@
/**
 * 设备跟踪流转表 包装类,返回视图层所需的字段
 *
 * @author Aix
 * @author aix
 * @since 2026-01-08
 */
public class FwDeviceTrackWrapper extends BaseEntityWrapper<FwDeviceTrackEntity, FwDeviceTrackVO>  {
@@ -37,11 +36,15 @@
   @Override
   public FwDeviceTrackVO entityVO(FwDeviceTrackEntity fwDeviceTrack) {
      return Objects.requireNonNull(BeanUtil.copy(fwDeviceTrack, FwDeviceTrackVO.class));
      FwDeviceTrackVO fwDeviceTrackVO = 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 fwDeviceTrackDTO) {
      return Objects.requireNonNull(BeanUtil.copy(fwDeviceTrackDTO, FwDeviceTrackEntity.class));
    }
}