From 13d263f9c2c988ad6b1c228c314a76edfcd1d137 Mon Sep 17 00:00:00 2001
From: tangxiaobao <303826152@qq.com>
Date: 星期二, 20 七月 2021 12:35:00 +0800
Subject: [PATCH] 社区后台基础数据库bug修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java
index fbcfb63..3d34adf 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java
+++ b/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);
     }

--
Gitblit v1.7.1