|
@@ -804,9 +804,13 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
sortedTabs.add(tabWithoutKeyword);
|
|
sortedTabs.add(tabWithoutKeyword);
|
|
String tabName = tabWithoutKeyword.getNodeName();
|
|
String tabName = tabWithoutKeyword.getNodeName();
|
|
String tabNameWithKeywordPrefix = tabName + keyword;
|
|
String tabNameWithKeywordPrefix = tabName + keyword;
|
|
- for (AppWbsTreeContractVO tabWithKeyword : tabsWithKeyword) {
|
|
|
|
|
|
+ Iterator<AppWbsTreeContractVO> iterator = tabsWithKeyword.iterator();
|
|
|
|
+ while (iterator.hasNext()) {
|
|
|
|
+ AppWbsTreeContractVO tabWithKeyword = iterator.next();
|
|
if (tabWithKeyword.getNodeName().startsWith(tabNameWithKeywordPrefix)) {
|
|
if (tabWithKeyword.getNodeName().startsWith(tabNameWithKeywordPrefix)) {
|
|
sortedTabs.add(tabWithKeyword);
|
|
sortedTabs.add(tabWithKeyword);
|
|
|
|
+ // 移除已添加的
|
|
|
|
+ iterator.remove();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|