| | |
| | | if (districtIds.size() == 0) { |
| | | return page.setRecords(new ArrayList<>()); |
| | | } |
| | | article.setPropertyFlag(1); |
| | | } |
| | | if (userRole.contains("jdgly")) { |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | |
| | | // 查询用户小区的id |
| | | String districId = baseMapper.getDistrictId(article.getHouseCode()); |
| | | article.setDistrictId(districId); |
| | | article.setUserId(AuthUtil.getUserId()); |
| | | List<ArticleVO> articleVOS = baseMapper.selectArticlePageByApp(page, article); |
| | | return page.setRecords(articleVOS); |
| | | } |