| | |
| | | Dept dept = new Dept(); |
| | | dept.setDeptName(jurisdiction.getDeptName()); |
| | | Dept dept1 = this.getOne(Condition.getQueryWrapper(dept)); |
| | | map = baseMapper.lazyTreeUsersPublicSecurity(type, dept1.getId(), one.getJurisdiction()); |
| | | map = baseMapper.lazyTreeUsersPublicSecurity(null, dept1.getId(), one.getJurisdiction()); |
| | | } |
| | | } |
| | | } |
| | | //民警向民警汇报,需要南昌市及当前民警所在辖区的部门数据 |
| | | if(type==3){ |
| | | //当前取所有的民警数据 |
| | | map = baseMapper.lazyTreeUsersPublicSecuritys(type,null,null); |
| | | map = baseMapper.lazyTreeUsersPublicSecuritys(null,deptId,null); |
| | | } |
| | | List<TreeNodes> tree = new ArrayList<>(); |
| | | Map<Long, TreeNodes> finalMap = map; |
| | |
| | | public List<DeptVo> selDeptList() { |
| | | return baseMapper.selDeptList(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 懒加载获取部门树形结构,根据辖区查询 |
| | | */ |
| | | @Override |
| | | public List<DeptVO> lazyTreeJurisdiction(String jurisdiction, Long parentId) { |
| | | return ForestNodeMerger.merge(baseMapper.lazyTreeJurisdiction(jurisdiction,parentId)); |
| | | } |
| | | } |