|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public Map getChildDeptAndCamera() { | 
|---|
|  |  |  | public Map getChildDeptAndCamera(Boolean disabled) { | 
|---|
|  |  |  | Long deptId = SecurityUtils.getDeptId(); | 
|---|
|  |  |  | SysDept sysDept = sysDeptMapper.selectDeptById(deptId); | 
|---|
|  |  |  | Map<String, Object> map = fetchChildDepartments(sysDept); | 
|---|
|  |  |  | Map<String, Object> map = fetchChildDepartments(sysDept,disabled); | 
|---|
|  |  |  | return map; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @创建时间 2023/6/2 14:38 | 
|---|
|  |  |  | * @修改人和其它信息 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Map<String, Object> fetchChildDepartments(SysDept sysDept) { | 
|---|
|  |  |  | public Map<String, Object> fetchChildDepartments(SysDept sysDept,Boolean disabled) { | 
|---|
|  |  |  | Map<String, Object> map = new HashMap<>(); | 
|---|
|  |  |  | map.put("name", sysDept.getDeptName()); | 
|---|
|  |  |  | map.put("deptId", sysDept.getDeptId()); | 
|---|
|  |  |  | map.put("disabled", true); | 
|---|
|  |  |  | map.put("disabled", disabled); | 
|---|
|  |  |  | List<SysDept> sysDepts = sysDeptMapper.selectNextChildrenDeptById(sysDept.getDeptId()); | 
|---|
|  |  |  | List<ArdCameras> ardCameras = ardCamerasMapper.selectArdCamerasByDeptId(sysDept.getDeptId()); | 
|---|
|  |  |  | List<Object> childList = new ArrayList<>(); | 
|---|
|  |  |  | 
|---|
|  |  |  | Map<String, Object> childMap = new HashMap<>(); | 
|---|
|  |  |  | childMap.put("name", childDept.getDeptName()); | 
|---|
|  |  |  | childMap.put("deptId", childDept.getDeptId()); | 
|---|
|  |  |  | childMap.put("disabled", true); | 
|---|
|  |  |  | Map<String, Object> map1 = fetchChildDepartments(childDept); | 
|---|
|  |  |  | childMap.put("disabled", disabled); | 
|---|
|  |  |  | Map<String, Object> map1 = fetchChildDepartments(childDept,disabled); | 
|---|
|  |  |  | childMap.putAll(map1); | 
|---|
|  |  |  | childList.add(childMap); | 
|---|
|  |  |  | } | 
|---|