if (!startAds.stream().filter(w->String.valueOf(w.getId()).equals(startAdvertisingBean.getId())).findAny().isPresent()){
//说明不存在
if (startAds.getTotalElements() >= this.headMax) {
Map<String, String> result = new HashMap<>();
result.put("msg", "启动页广告启用数量超过上限,上限为" + this.headMax);
return ResponseBeanFactory.buildFailedModifyParmBean(result);
}
}
判断startAdvertisingBean.getId()在startAds这个list的id属性中是否存在