管理端租户审核修改

usertest
cjy 4 months ago
parent 970239277a
commit 107247706d

@ -1,7 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ActiveDebugProfile>https</ActiveDebugProfile>
<NameOfLastUsedPublishProfile>D:\Source\Repos\DS8\ds-wms-service\DS.WMS.AdminApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
<ActiveDebugProfile>http</ActiveDebugProfile>
<NameOfLastUsedPublishProfile>D:\Code\DS\ds8-solution-pro\ds-wms-service\DS.WMS.AdminApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>

@ -271,24 +271,24 @@ public class TenantApplyService : ITenantApplyService
await masterDb.Updateable(adminUser).ExecuteCommandAsync();
#endregion
#region 创建租户数据库及基础数初始化
if (!dbScope.IsAnyConnection(tenant.Id))
{
dbScope.AddConnection(new ConnectionConfig() {
ConfigId = tenant.Id,
ConnectionString = link.Connection,
DbType = link.DbType,
IsAutoCloseConnection = true });
}
var tenantDb = saasService.GetBizDbScopeById(tenant.Id);
StaticConfig.CodeFirst_MySqlCollate="utf8mb4_0900_ai_ci";//较高版本支持
//初始化数库
tenantDb.DbMaintenance.CreateDatabase();
//tenantDb.CodeFirst.InitTables(typeof(CodeCountry));
#endregion
//#region 创建租户数据库及基础数初始化
//if (!dbScope.IsAnyConnection(tenant.Id))
//{
// dbScope.AddConnection(new ConnectionConfig() {
// ConfigId = tenant.Id,
// ConnectionString = link.Connection,
// DbType = link.DbType,
// IsAutoCloseConnection = true });
//}
//var tenantDb = saasService.GetBizDbScopeById(tenant.Id);
//StaticConfig.CodeFirst_MySqlCollate="utf8mb4_0900_ai_ci";//较高版本支持
////初始化数库
//tenantDb.DbMaintenance.CreateDatabase();
////tenantDb.CodeFirst.InitTables(typeof(CodeCountry));
//#endregion
//更新租户申请
apply.AuditStatus = (AuditStatusEnum)(int)req.AuditInfo.Status;

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NameOfLastUsedPublishProfile>D:\Source\Repos\DS8\ds-wms-service\DS.WMS.MainApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
<NameOfLastUsedPublishProfile>D:\Code\DS\ds8-solution-pro\ds-wms-service\DS.WMS.MainApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
</PropertyGroup>
</Project>
Loading…
Cancel
Save