| | |
| | | /** |
| | | * 区域编号集合 |
| | | */ |
| | | private List<String> regionChildCodesList; |
| | | private List<String> regionChildCodesList = new ArrayList<>(); |
| | | /** |
| | | * 是否为超级管理员 |
| | | */ |
| | |
| | | /** |
| | | * 网格编号集合 |
| | | */ |
| | | private List<String> gridCodeList; |
| | | private List<String> gridCodeList = new ArrayList<>(); |
| | | |
| | | public List<String> getRegionChildCodesList() { |
| | | return regionChildCodesList; |
| | |
| | | } |
| | | |
| | | if (isAdministrator == 2) { |
| | | // 获取当前用户的所属行政区划编号() |
| | | regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | if (!Strings.isBlank(communityCode)) { |
| | | // 请求头带了后直接使用过滤 |
| | | regionChildCodesList.add(communityCode); |
| | | }else { |
| | | // 获取当前用户的所属行政区划编号() |
| | | regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId(), communityCode); |
| | | // 民警角色 |
| | | if (!Strings.isBlank(roleName) && roleName.equals("mj")) { |
| | | regionChildCodesList = SysCache.getPoliceRegionChildCodesByDeptId(AuthUtil.getDeptId(),communityCode); |
| | | } |
| | | } |
| | | // 获取网格编号集合 |
| | | gridCodeList = new ArrayList<>(); |
| | | if (!Strings.isBlank(roleName)) { |
| | | // 设置角色别名 |
| | | roleNameField.setAccessible(true); |
| | | roleNameField.set(t, roleName); |
| | | // 民警角色 |
| | | if (roleName.equals("mj")) { |
| | | regionChildCodesList = SpringUtil.getBean(IPoliceAffairsGridService.class).getCommunityCodeListByUserId(AuthUtil.getUserId()); |
| | | } |
| | | // 网格员角色 |
| | | if (roleName.equals("wgy")) { |
| | | gridCodeList = SpringUtil.getBean(IGridService.class).getGridListByUserId(AuthUtil.getUserId()); |