2、后端 处理 跨库数据查找 PF/PFApprove/FullGet string tenant = OPTenantDBConnService.GetTenantByORGID(对应ORG_ID); filter.IgnoreOrgRule = true; filter.OrgId = null; filter.IsSpecifyDb = true; filter.SpecifyTenant = tenant; ilter.IgnoreDataRule = true;
		
			
				
	
	
		
			35 lines
		
	
	
		
			970 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			970 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using APT.BaseData.Domain.Entities.FM;
 | 
						|
using APT.Infrastructure.Api;
 | 
						|
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Text;
 | 
						|
 | 
						|
namespace APT.BaseData.Domain.IServices.OP
 | 
						|
{
 | 
						|
    public interface IOPTenantDBConnService : ICommonService
 | 
						|
    {
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 获取 除 ORG_IDBeside 之外对应的数据库链接字典  ORG_ID  DB_CONN
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="ORG_IDBeside"></param>
 | 
						|
        /// <returns></returns>
 | 
						|
        Dictionary<Guid, string> GetConnDictionary(Guid? ORG_IDBeside);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 获取 ORG_ID的数据库链接
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="ORG_ID">过滤值</param>
 | 
						|
        /// <returns></returns>
 | 
						|
        string GetConnByORGID(Guid ORG_ID);
 | 
						|
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 根据ORGID 获取 Tenant
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="ORG_ID"></param>
 | 
						|
        /// <returns></returns>
 | 
						|
        string GetTenantByORGID(Guid ORG_ID);
 | 
						|
    }
 | 
						|
}
 |