/**
* 获取子级主题域
*/
List<String> list2 = new ArrayList<String>();
public List<String> getAll(String id,List<ScanSubjectArea> list){
Iterator iter = list.iterator();
while(iter.hasNext()){
ScanSubjectArea subjectArea = (ScanSubjectArea)iter.next();
if(id.equals(subjectArea.getParentId())){
list2.add(subjectArea.getId());
getAll(subjectArea.getId(),list);
}
}
return list2;
}
原文地址:https://www.cnblogs.com/dsh2018/p/9197747.html
时间: 2024-11-10 00:52:32