| | |
| | | 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())); |