标签放入标签中(递归) @param new_tag 新标签 @param tagList 未存入子标签集合 @return
(Tag new_tag, List<Tag> tagList)
| 44 | * @return |
| 45 | */ |
| 46 | public void childTag(Tag new_tag, List<Tag> tagList){ |
| 47 | if(new_tag != null && new_tag.getChildNodeNumber() >0){ |
| 48 | for(Tag tag : tagList){ |
| 49 | if(tag.getParentId().equals(new_tag.getId())){ |
| 50 | new_tag.addChildTag(tag); |
| 51 | this.childTag(tag, tagList); |
| 52 | |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | /** |
| 58 | * 话题标签排序(递归) |
| 59 | * @param tagList 已存入子标签集合 |
no test coverage detected