查询升级,结合字典类型优化
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) {
|
TopNode getNode(List<TopNode> nodes, String id) {
|
||||||
for (int i = 0; i < nodes.size(); i++) {
|
for (TopNode node : nodes) {
|
||||||
if (nodes.get(i).getId().equals(id)) {
|
if (node.getId().equals(id)) {
|
||||||
return nodes.get(i);
|
return node;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue