| | |
| | | try { |
| | | // 查询社区信息 |
| | | log.info("开始查询社区信息数据"); |
| | | ComPopulationActVO populationActVO = comActDAO.getPopulationActById(31L); |
| | | ComPopulationActVO populationActVO = comActDAO.getPopulationActById(communityId); |
| | | if (populationActVO == null) { |
| | | log.error("未查询到社区信息"); |
| | | return R.fail("未查询到社区信息"); |
| | |
| | | // 查询当前社区标签列表 |
| | | List<String> labelList = new ArrayList<>(); |
| | | List<ComMngUserTagDO> comMngUserTagDOS = comMngUserTagDAO |
| | | .selectList(new QueryWrapper<ComMngUserTagDO>().eq("sys_flag", 1).or().eq("community_id", 31)); |
| | | .selectList(new QueryWrapper<ComMngUserTagDO>().eq("sys_flag", 1).or().eq("community_id", communityId)); |
| | | if (!ObjectUtils.isEmpty(comMngUserTagDOS)) { |
| | | labelList = comMngUserTagDOS.stream().map(comMngUserTagDO -> comMngUserTagDO.getTagName()) |
| | | .collect(Collectors.toList()); |
| | |
| | | log.info("开始查询小区街路巷是否存在"); |
| | | // 查询小区街路巷是否存在 |
| | | ComMngVillageDO comMngVillageDO = null; |
| | | String villageKey = 31 + vo.getRoad() + vo.getDoorNo(); |
| | | String villageKey = communityId + vo.getRoad() + vo.getDoorNo(); |
| | | if (!isOnly(villageKey, villageMap)) { |
| | | comMngVillageDO = (ComMngVillageDO)villageMap.get(villageKey); |
| | | } else { |