| | |
| | | } |
| | | if (userRole.contains("jdgly")) { |
| | | IDistrictService districtService = SpringUtils.getBean(IDistrictService.class); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId(),null); |
| | | List<DistrictEntity> list = districtService.list(Wrappers.<DistrictEntity>lambdaQuery().in(DistrictEntity::getCommunityCode, regionChildCodesList)); |
| | | if (list.size() > 0) { |
| | | article.setDistrictIdList(list.stream().map(item -> item.getId()).collect(Collectors.toList())); |
| | |
| | | // 返回 |
| | | return update; |
| | | } |
| | | |
| | | /** |
| | | * 查询所有文章数据 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Article> getAllList(int i,int size) { |
| | | return baseMapper.getAllList(i,size); |
| | | } |
| | | |
| | | /** |
| | | * 查询所有文章数据总数 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int getAllListTotal() { |
| | | return baseMapper.getAllListTotal(); |
| | | } |
| | | } |