| | |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.sxkj.fw.device.dto.FwDeviceScrapDTO; |
| | | import org.sxkj.fw.device.entity.FwDeviceScrapEntity; |
| | | import org.sxkj.fw.device.vo.FwDeviceScrapVO; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 设备报废记录表 包装类,返回视图层所需的字段 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-07 |
| | | * @since 2026-01-08 |
| | | */ |
| | | public class FwDeviceScrapWrapper extends BaseEntityWrapper<FwDeviceScrapEntity, FwDeviceScrapVO> { |
| | | |
| | |
| | | |
| | | @Override |
| | | public FwDeviceScrapVO entityVO(FwDeviceScrapEntity fwDeviceScrap) { |
| | | FwDeviceScrapVO fwDeviceScrapVO = Objects.requireNonNull(BeanUtil.copy(fwDeviceScrap, FwDeviceScrapVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(fwDeviceScrap.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(fwDeviceScrap.getUpdateUser()); |
| | | //fwDeviceScrapVO.setCreateUserName(createUser.getName()); |
| | | //fwDeviceScrapVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return fwDeviceScrapVO; |
| | | return Objects.requireNonNull(BeanUtil.copy(fwDeviceScrap, FwDeviceScrapVO.class)); |
| | | } |
| | | |
| | | public FwDeviceScrapEntity entityDTO(FwDeviceScrapDTO fwDeviceScrap) { |
| | | return Objects.requireNonNull(BeanUtil.copy(fwDeviceScrap, FwDeviceScrapEntity.class)); |
| | | } |
| | | |
| | | } |