Browse Source

+ 设备登录支持多租户

chen.cheng 2 months ago
parent
commit
562bea7445

+ 1 - 3
bd-park/park-backend/park-core/src/main/java/com/huashe/park/core/service/impl/PileMachineInfoServiceImpl.java

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