| | |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.ObjectUtil; |
| | | import org.springblade.modules.enterprise.entity.EnterpriseEntity; |
| | | import org.springblade.modules.enterprise.vo.EnterpriseVO; |
| | | import java.util.Objects; |
| | |
| | | |
| | | @Override |
| | | public EnterpriseVO entityVO(EnterpriseEntity enterprise) { |
| | | if (ObjectUtil.isNotEmpty(enterprise)){ |
| | | EnterpriseVO enterpriseVO = Objects.requireNonNull(BeanUtil.copy(enterprise, EnterpriseVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(enterprise.getCreateUser()); |
| | |
| | | //enterpriseVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return enterpriseVO; |
| | | }else { |
| | | return null; |
| | | } |
| | | |
| | | } |
| | | |
| | | |