|
|
|
@ -7,6 +7,7 @@ import com.hnac.hzims.operational.access.vo.OperAccessLibraryVO;
|
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import org.springblade.core.mp.support.BaseEntityWrapper; |
|
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
|
import org.springblade.system.user.cache.UserCache; |
|
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
|
|
|
|
|
@ -34,7 +35,9 @@ public class OperAccessLibraryWrapper extends BaseEntityWrapper<OperAccessLibrar
|
|
|
|
|
User updateUser = UserCache.getUser(entity.getUpdateUser()); |
|
|
|
|
vo.setCreateUserName(Optional.ofNullable(createUser).map(User::getName).orElse(null)); |
|
|
|
|
vo.setUpdateUserName(Optional.ofNullable(updateUser).map(User::getName).orElse(null)); |
|
|
|
|
if(StringUtil.isNotBlank(entity.getEmCode())){ |
|
|
|
|
vo.setEmName(Optional.ofNullable(emInfoClient.getByCode(entity.getEmCode())).map(EmInfoEntity::getName).orElse(null)); |
|
|
|
|
} |
|
|
|
|
return vo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|