|  |  | 
 |  |  |                 dept.setParentName(parent.getName()); | 
 |  |  |                 dept.setLevel(parent.getLevel() + 1); | 
 |  |  |             } | 
 |  |  |         } else { | 
 |  |  |             dept.setUuid(dept.getName()); | 
 |  |  |             List<Dept> depts = deptService.selectList(new EntityWrapper<Dept>().eq("parent_id",dept.getId())); | 
 |  |  |             for(Dept one : depts){ | 
 |  |  |                 one.setParentName(dept.getName()); | 
 |  |  |                 one.setNamePath(dept.getName()); | 
 |  |  |                 one.setUpdateBy(getUserId()); | 
 |  |  |                 one.setUpdateTime(new Date()); | 
 |  |  | //                deptService.update(one,new EntityWrapper<Dept>().eq("parent_id",dept.getId())); | 
 |  |  |                 deptService.updateById(one); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         // path | 
 |  |  |         NodeUtils nodeUtils = new NodeUtils(); |