java8

List<Integer> collect = responsePage.getRecords().stream().map(x -> x.getId()).collect(Collectors.toList());

 

List<ManageRegionVO> popedomAreas = iSitePopedomChangeService.queryUnSelfByRegionId(manageAreaByName.getRegionId());
if (popedomAreas.stream().noneMatch(item -> changePopedomAreaName.equals(item.getRegionName()))) {
     throw new ServiceRuntimeException("该中心下不存在此辖区,请确认!");
}

  

posted on 2022-06-07 10:39  飘来荡去evo  阅读(24)  评论(0编辑  收藏  举报

导航