| 
					
				 | 
			
			
				@@ -57,6 +57,12 @@ public class TenantServiceImpl implements TenantService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private OrgMapper orgMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 机构 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private UserRoleMapper userRoleMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 通过ID查询单条数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -179,6 +185,18 @@ public class TenantServiceImpl implements TenantService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         userEntity.setCompanyOrgId(org.getId().longValue());//公司 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         userEntity.setDeptOrgId(org.getId().longValue());//机构 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         userMapper.insert(userEntity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        UserRoleEntity userRoleEntity = new UserRoleEntity(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        userRoleEntity.setCreateBy(userEntity.getCreateBy()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        userRoleEntity.setUpdateBy(userEntity.getUpdateBy()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        userRoleEntity.setDateCreate(userEntity.getDateCreate()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        userRoleEntity.setDateUpdate(userEntity.getDateUpdate()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        userRoleEntity.setStatus(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        userRoleEntity.setRoleId(Long.valueOf(userEntity.getRoleId())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        userRoleEntity.setUserId(userEntity.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        userRoleMapper.insert(userRoleEntity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |