|  |  | @ -54,7 +54,7 @@ public class AccessConfigServiceImpl implements AccessConfigService { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     @Transactional(rollbackFor = Exception.class) | 
			
		
	
		
			
				
					|  |  |  |     public void saveRoleOpes(String roleId, List<AccessConfigOpesResultDTO> opes) { | 
			
		
	
		
			
				
					|  |  |  |     public void saveRoleOpes(String roleId, List<AccessConfigOpesResultDTO> opes, String customerId) { | 
			
		
	
		
			
				
					|  |  |  |         List<RoleOperationResultDTO> operationsDB = roleOperationDao.listOperationsByRoleId(roleId); | 
			
		
	
		
			
				
					|  |  |  |         Set<String> opeKeysDB = operationsDB.stream().map(opeDB -> opeDB.getOperationKey()).collect(Collectors.toSet()); | 
			
		
	
		
			
				
					|  |  |  |         Set<String> opeKeysForm = opes.stream().map(opeForm -> opeForm.getOperationKey()).collect(Collectors.toSet()); | 
			
		
	
	
		
			
				
					|  |  | @ -80,6 +80,7 @@ public class AccessConfigServiceImpl implements AccessConfigService { | 
			
		
	
		
			
				
					|  |  |  |                 RoleOperationEntity newRoleOpe = new RoleOperationEntity(); | 
			
		
	
		
			
				
					|  |  |  |                 newRoleOpe.setRoleId(roleId); | 
			
		
	
		
			
				
					|  |  |  |                 newRoleOpe.setOperationKey(s); | 
			
		
	
		
			
				
					|  |  |  |                 newRoleOpe.setCustomerId(customerId); | 
			
		
	
		
			
				
					|  |  |  |                 roleOperationDao.insert(newRoleOpe); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
	
		
			
				
					|  |  | @ -100,7 +101,7 @@ public class AccessConfigServiceImpl implements AccessConfigService { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     @Transactional | 
			
		
	
		
			
				
					|  |  |  |     public void saveConfig(String roleId, String operationKey, Set<String> scopeKeys) { | 
			
		
	
		
			
				
					|  |  |  |     public void saveConfig(String roleId, String operationKey, Set<String> scopeKeys, String customerId) { | 
			
		
	
		
			
				
					|  |  |  |         List<RoleScopeEntity> scopesDB = roleScopeDao.listScopeEntities(roleId, operationKey); | 
			
		
	
		
			
				
					|  |  |  |         // 数据库中已有的scopeKey列表
 | 
			
		
	
		
			
				
					|  |  |  |         Set<String> scopeKeysDB = scopesDB.stream().map(scope -> scope.getScopeKey()).collect(Collectors.toSet()); | 
			
		
	
	
		
			
				
					|  |  | @ -119,6 +120,7 @@ public class AccessConfigServiceImpl implements AccessConfigService { | 
			
		
	
		
			
				
					|  |  |  |                     rs2Add.setRoleId(roleId); | 
			
		
	
		
			
				
					|  |  |  |                     rs2Add.setOperationKey(operationKey); | 
			
		
	
		
			
				
					|  |  |  |                     rs2Add.setScopeKey(scopeKey); | 
			
		
	
		
			
				
					|  |  |  |                     rs2Add.setCustomerId(customerId); | 
			
		
	
		
			
				
					|  |  |  |                     roleScopeDao.insert(rs2Add); | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |             }); | 
			
		
	
	
		
			
				
					|  |  | 
 |