| | |
| | | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | |
| | | @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)); |
| | | } |
| | | |
| | | } |