tangxiaobao
2021-08-24 3e4562c98fc95cc95a51114c7e153a9c35792732
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java
@@ -6332,6 +6332,23 @@
        return R.ok(this.baseMapper.getVillagePopulationAdmin(new Page(villagePopulationDTO.getPageNum(),villagePopulationDTO.getPageSize()),villagePopulationDTO));
    }
    @Override
    public void addPopuCommunity() {
        List<ComMngPopulationDO> list = comMngPopulationDAO.selectList(null);
        List<ComMngPopulationCommunityTagsDO> adds = new ArrayList<>();
        list.forEach(comMngPopulationDO -> {
            ComMngPopulationCommunityTagsDO comMngPopulationCommunityTagsDO = new ComMngPopulationCommunityTagsDO();
            comMngPopulationCommunityTagsDO.setId(Snowflake.getId());
            comMngPopulationCommunityTagsDO.setPopulationId(comMngPopulationDO.getId());
            comMngPopulationCommunityTagsDO.setCommunityId(comMngPopulationDO.getActId());
            if (comMngPopulationDO.getLabel() != null && !"".equals(comMngPopulationDO.getLabel())) {
                comMngPopulationCommunityTagsDO.setLabel(comMngPopulationDO.getLabel());
            }
            adds.add(comMngPopulationCommunityTagsDO);
            comMngPopulationCommunityTagsDAO.insert(comMngPopulationCommunityTagsDO);
        });
    }
    private void setMistake(ComMngPopulationMistakeExcelVO mvo, ComMngPopulationServeExcelVO vo){
        mvo.setPoliticalOutlook(PopulPoliticalOutlookEnum.getCnDescByName(vo.getPoliticalOutlook()));
        mvo.setIsRent(PopulHouseUseEnum.getCnDescByName(vo.getIsRent()));