1,从一个实体对象中取出某个属性
Optional.ofNullable(organizationInfo).map(a -> a.getEdition()).orElse(SoftwareEditionEnum.Unknown.getCode());