查询升级,结合字典类型优化
This commit is contained in:
parent
9da7fc3052
commit
f261d485a9
|
|
@ -173,9 +173,9 @@ public class TopQueryServiceImpl implements TopQueryService {
|
|||
|
||||
|
||||
TopNode getNode(List<TopNode> nodes, String id) {
|
||||
for (int i = 0; i < nodes.size(); i++) {
|
||||
if (nodes.get(i).getId().equals(id)) {
|
||||
return nodes.get(i);
|
||||
for (TopNode node : nodes) {
|
||||
if (node.getId().equals(id)) {
|
||||
return node;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue