| | |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | 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> { |
| | | |
| | |
| | | |
| | | @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 fwDevice) { |
| | | return Objects.requireNonNull(BeanUtil.copy(fwDevice, FwDeviceEntity.class)); |
| | | } |
| | | |
| | | |