| | |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.sxkj.gd.workorder.dto.GdManageDeviceDTO; |
| | | import org.sxkj.gd.workorder.entity.GdManageDeviceEntity; |
| | | import org.sxkj.gd.workorder.vo.GdManageDeviceVO; |
| | | import java.util.Objects; |
| | |
| | | |
| | | @Override |
| | | public GdManageDeviceVO entityVO(GdManageDeviceEntity gdManageDevice) { |
| | | GdManageDeviceVO gdManageDeviceVO = Objects.requireNonNull(BeanUtil.copy(gdManageDevice, GdManageDeviceVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(gdManageDevice.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(gdManageDevice.getUpdateUser()); |
| | | //gdManageDeviceVO.setCreateUserName(createUser.getName()); |
| | | //gdManageDeviceVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return gdManageDeviceVO; |
| | | return Objects.requireNonNull(BeanUtil.copy(gdManageDevice, GdManageDeviceVO.class)); |
| | | } |
| | | |
| | | public GdManageDeviceEntity entityDTO(GdManageDeviceDTO gdManageDevice) { |
| | | return Objects.requireNonNull(BeanUtil.copy(gdManageDevice, GdManageDeviceEntity.class)); |
| | | } |
| | | |
| | | } |