|
@@ -272,9 +272,7 @@ public class PileMachineInfoServiceImpl implements IPileMachineInfoService {
|
|
|
|
|
|
private List<ConstUnitNode> getChildList(List<ConstUnitNode> list, ConstUnitNode t) {
|
|
|
List<ConstUnitNode> tlist = new ArrayList<>();
|
|
|
- Iterator<ConstUnitNode> it = list.iterator();
|
|
|
- while (it.hasNext()) {
|
|
|
- ConstUnitNode n = it.next();
|
|
|
+ for (ConstUnitNode n : list) {
|
|
|
if (StringUtils.isNotNull(n.getParentId()) && n.getParentId().longValue() == t.getId().longValue()) {
|
|
|
tlist.add(n);
|
|
|
}
|