private void commentTree(String fid, List<Albumcomment> listold) { // 循环查找子回复内容 for (Albumcomment b : listold) { if (null == fid || fid.length() == 0) { if (null == b.getParent()) { tree.add(b); commentTree(b.getCommentedid(), listold); } } else { if (null != b.getParent() && b.getParent().getCommentedid().equals(fid)) { tree.add(b); commentTree(b.getCommentedid(), listold); } } } }