| | |
| | | } |
| | | } |
| | | |
| | | List<ComMngPopulationVO> news = new ArrayList<>(); |
| | | IPage<ComMngPopulationVO> iPage = populationDAO.pagePopulation(page, comMngPopulationVO); |
| | | if (!iPage.getRecords().isEmpty()) { |
| | | List<String> collect = iPage.getRecords().stream().map(ComMngPopulationVO::getCardNo).collect(Collectors.toList()); |
| | | iPage.getRecords().forEach(populDO -> { |
| | | if (StringUtils.isNotEmpty(populDO.getBirthday())) { |
| | | populDO.setAge(AgeUtils.getAgeFromBirthTimes(populDO.getBirthday())); |
| | | } |
| | | if (!collect.contains(populDO.getCardNo())) { |
| | | news.add(populDO); |
| | | } |
| | | }); |
| | | iPage.setRecords(news); |
| | | } |
| | | return R.ok(iPage); |
| | | } |