Optional<CompanyInvestorVO> first = investorVOList.stream().filter(item -> item.getInvestorName().equals("张三")).findFirst();
String investoRatio = first.get().getInvestoRatio();
获取List对象中 属性为值为张三的对象
Optional<CompanyInvestorVO> first = investorVOList.stream().filter(item -> item.getInvestorName().equals("张三")).findFirst();
String investoRatio = first.get().getInvestoRatio();
获取List对象中 属性为值为张三的对象