tangxiaobao
2021-07-20 13d263f9c2c988ad6b1c228c314a76edfcd1d137
社区后台基础数据库bug修改
1个文件已修改
6 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java
@@ -298,19 +298,13 @@
            }
        }
        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);
    }