查询升级,结合字典类型优化

This commit is contained in:
Binlin B Wang 2022-08-01 14:37:34 +08:00
parent 9da7fc3052
commit f261d485a9
1 changed files with 3 additions and 3 deletions

View File

@ -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;