| | |
| | | @Override |
| | | public IPage<ArticleCommentVO> selectArticleCommentPage(IPage<ArticleCommentVO> page, ArticleCommentVO noticeComment) { |
| | | String userRole = AuthUtil.getUserRole(); |
| | | if (userRole.contains("jdgly")) { |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | // if (userRole.contains("jdgly")) { |
| | | // List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | // IDistrictService bean = SpringUtils.getBean(IDistrictService.class); |
| | | // List<DistrictEntity> list = bean.list(Wrappers.<DistrictEntity>lambdaQuery() |
| | | // .in(DistrictEntity::getCommunityCode, regionChildCodesList)); |
| | | // List<String> fieldValues = list.stream().map(DistrictEntity::getId).collect(Collectors.toList()); |
| | | noticeComment.setCityCodeList(regionChildCodesList); |
| | | } |
| | | // noticeComment.setCityCodeList(regionChildCodesList); |
| | | // } |
| | | return page.setRecords(baseMapper.selectArticleCommentPage(page, noticeComment)); |
| | | } |
| | | |