| | |
| | | |
| | | 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; |
| | |
| | | /** |
| | | * 设备表 包装类,返回视图层所需的字段 |
| | | * |
| | | * @author Aix |
| | | * @author aix |
| | | * @since 2026-01-08 |
| | | */ |
| | | public class FwDeviceWrapper extends BaseEntityWrapper<FwDeviceEntity, FwDeviceVO> { |
| | |
| | | return Objects.requireNonNull(BeanUtil.copy(fwDevice, FwDeviceVO.class)); |
| | | } |
| | | |
| | | public FwDeviceEntity entityDTO(FwDeviceDTO dto) { |
| | | return Objects.requireNonNull(BeanUtil.copy(dto, FwDeviceEntity.class)); |
| | | public FwDeviceEntity entityDTO(FwDeviceDTO fwDevice) { |
| | | return Objects.requireNonNull(BeanUtil.copy(fwDevice, FwDeviceEntity.class)); |
| | | } |
| | | |
| | | |