|
@@ -60,8 +60,8 @@ public class DirServiceImpl extends IBaseServiceImpl<DirEntity, Long> implements
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result getMyTree() {
|
|
|
|
- DirTreeUtil tree = new DirTreeUtil(getMyList());
|
|
|
|
|
|
+ public Result getMyTree(String type) {
|
|
|
|
+ DirTreeUtil tree = new DirTreeUtil(getMyList(type));
|
|
return Result.success(tree.buildTree());
|
|
return Result.success(tree.buildTree());
|
|
}
|
|
}
|
|
|
|
|
|
@@ -82,10 +82,11 @@ public class DirServiceImpl extends IBaseServiceImpl<DirEntity, Long> implements
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- private List<DirEntity> getMyList(){
|
|
|
|
|
|
+ private List<DirEntity> getMyList(String type){
|
|
String phone = getUserNameForToken();
|
|
String phone = getUserNameForToken();
|
|
Condition condition = new Condition(DirEntity.class);
|
|
Condition condition = new Condition(DirEntity.class);
|
|
condition.and().andEqualTo("userId", phone);
|
|
condition.and().andEqualTo("userId", phone);
|
|
|
|
+ condition.and().andEqualTo("type", type);
|
|
return this.findAll(condition);
|
|
return this.findAll(condition);
|
|
}
|
|
}
|
|
}
|
|
}
|