|  | @@ -30,15 +30,15 @@ public class TreeNode implements Serializable {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      private String label;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -     * 用户头像
 | 
	
		
			
				|  |  | -     */
 | 
	
		
			
				|  |  | -    private String avatar;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -     * 用户职位
 | 
	
		
			
				|  |  | -     */
 | 
	
		
			
				|  |  | -    private String post;
 | 
	
		
			
				|  |  | +//    /**
 | 
	
		
			
				|  |  | +//     * 用户头像
 | 
	
		
			
				|  |  | +//     */
 | 
	
		
			
				|  |  | +//    private String avatar;
 | 
	
		
			
				|  |  | +//
 | 
	
		
			
				|  |  | +//    /**
 | 
	
		
			
				|  |  | +//     * 用户职位
 | 
	
		
			
				|  |  | +//     */
 | 
	
		
			
				|  |  | +//    private String post;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 子节点
 | 
	
	
		
			
				|  | @@ -55,13 +55,13 @@ public class TreeNode implements Serializable {
 | 
	
		
			
				|  |  |          this.children = children;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    public TreeNode(SysUser user) {
 | 
	
		
			
				|  |  | -        this.id = user.getUserId();
 | 
	
		
			
				|  |  | -        this.label = user.getNickName();
 | 
	
		
			
				|  |  | -        this.avatar = user.getAvatar();
 | 
	
		
			
				|  |  | -        this.post = user.getPost();
 | 
	
		
			
				|  |  | -        this.children = new ArrayList<>();
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +//    public TreeNode(SysUser user) {
 | 
	
		
			
				|  |  | +//        this.id = user.getUserId();
 | 
	
		
			
				|  |  | +//        this.label = user.getNickName();
 | 
	
		
			
				|  |  | +//        this.avatar = user.getAvatar();
 | 
	
		
			
				|  |  | +//        this.post = user.getPost();
 | 
	
		
			
				|  |  | +//        this.children = new ArrayList<>();
 | 
	
		
			
				|  |  | +//    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      public TreeNode(SysDept dept) {
 | 
	
		
			
				|  |  |          this.id = dept.getDeptId();
 | 
	
	
		
			
				|  | @@ -70,7 +70,7 @@ public class TreeNode implements Serializable {
 | 
	
		
			
				|  |  |          if (dept.getChildren() != null && !dept.getChildren().isEmpty()) {
 | 
	
		
			
				|  |  |              this.children = dept.getChildren().stream().map(TreeNode::new).collect(Collectors.toList());
 | 
	
		
			
				|  |  |          } else if (dept.getUsers() != null && !dept.getUsers().isEmpty()) {
 | 
	
		
			
				|  |  | -            this.children = dept.getUsers().stream().map(TreeNode::new).collect(Collectors.toList());
 | 
	
		
			
				|  |  | +            this.children = dept.getUsers().stream().map(UserTreeNode::new).collect(Collectors.toList());
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |