|
@@ -59,7 +59,7 @@ public class DataService implements IDataService {
|
|
cameraIdMap.put(Long.valueOf(dataGroupVo.getGroupKey()),dataGroupVo.getDataCount());
|
|
cameraIdMap.put(Long.valueOf(dataGroupVo.getGroupKey()),dataGroupVo.getDataCount());
|
|
}
|
|
}
|
|
|
|
|
|
- List<TmDepartment> deptList = getDeptVoList();
|
|
|
|
|
|
+ List<TmDepartment> deptList = getDeptVoList(deptId);
|
|
|
|
|
|
List<DataGroupVo> dataGroupVos = new ArrayList<>();
|
|
List<DataGroupVo> dataGroupVos = new ArrayList<>();
|
|
for (TmDepartment department : deptList) {
|
|
for (TmDepartment department : deptList) {
|
|
@@ -113,8 +113,8 @@ public class DataService implements IDataService {
|
|
return count;
|
|
return count;
|
|
}
|
|
}
|
|
|
|
|
|
- private List<TmDepartment> getDeptVoList(){
|
|
|
|
- List<TmDepartment> deptList = tmDepartmentService.getDeptList();
|
|
|
|
|
|
+ private List<TmDepartment> getDeptVoList(String deptId){
|
|
|
|
+ List<TmDepartment> deptList = tmDepartmentService.getDeptList(deptId);
|
|
TmDepartment department1 = deptList.get(0);
|
|
TmDepartment department1 = deptList.get(0);
|
|
if(department1.getParentId() == null){ //超管
|
|
if(department1.getParentId() == null){ //超管
|
|
List<TmDepartment> departments = department1.getChildren();
|
|
List<TmDepartment> departments = department1.getChildren();
|
|
@@ -140,8 +140,8 @@ public class DataService implements IDataService {
|
|
List<DataGroupVo> groupVoList = tmProjectService.groupByDeptId(param);
|
|
List<DataGroupVo> groupVoList = tmProjectService.groupByDeptId(param);
|
|
HashMap<String,Long> map = new HashMap<>();
|
|
HashMap<String,Long> map = new HashMap<>();
|
|
groupVoList.forEach(e -> map.put(e.getGroupKey(),e.getDataCount()));
|
|
groupVoList.forEach(e -> map.put(e.getGroupKey(),e.getDataCount()));
|
|
-
|
|
|
|
- List<TmDepartment> deptVoList = getDeptVoList();
|
|
|
|
|
|
+ String deptId = tmDepartmentService.getDeptId();
|
|
|
|
+ List<TmDepartment> deptVoList = getDeptVoList(deptId);
|
|
|
|
|
|
List<DataGroupVo> dataGroupVos = new ArrayList<>();
|
|
List<DataGroupVo> dataGroupVos = new ArrayList<>();
|
|
for (TmDepartment department : deptVoList) {
|
|
for (TmDepartment department : deptVoList) {
|