From 37e1281f6c2edfb64decc109518957c722a4c756 Mon Sep 17 00:00:00 2001 From: NoahLan <6995syu@163.com> Date: Thu, 22 Feb 2024 17:53:35 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E9=87=8A=EF=BC=8C=E4=BC=98=E5=8C=96=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + .../NPinFrameworkSqlSugarCoreModule.cs | 1 - .../TenantService.cs | 4 +- src/NPin.Web/logs/log-20240222.txt | 142 ++++++++++++++++++ 4 files changed, 146 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 50f8f8e..d06bc29 100644 --- a/.gitignore +++ b/.gitignore @@ -262,3 +262,5 @@ __pycache__/ /OpenAuth.Mvc/Properties/PublishProfiles *.pubxml /OpenAuth.WebApi/temp-keys + +src/**/logs \ No newline at end of file diff --git a/framework/NPin.Framework.SqlSugarCore/NPinFrameworkSqlSugarCoreModule.cs b/framework/NPin.Framework.SqlSugarCore/NPinFrameworkSqlSugarCoreModule.cs index 3a8f899..affb446 100644 --- a/framework/NPin.Framework.SqlSugarCore/NPinFrameworkSqlSugarCoreModule.cs +++ b/framework/NPin.Framework.SqlSugarCore/NPinFrameworkSqlSugarCoreModule.cs @@ -44,7 +44,6 @@ public class NPinFrameworkSqlSugarCoreModule : AbpModule var service = context.ServiceProvider; var options = service.GetRequiredService>().Value; - // TODO 多租户 种子数据 和 CodeFirst if (options.EnabledCodeFirst) { CodeFirst(service); diff --git a/module/tenant-management/NPin.Framework.TenantManagement.Application/TenantService.cs b/module/tenant-management/NPin.Framework.TenantManagement.Application/TenantService.cs index 33917d8..013263e 100644 --- a/module/tenant-management/NPin.Framework.TenantManagement.Application/TenantService.cs +++ b/module/tenant-management/NPin.Framework.TenantManagement.Application/TenantService.cs @@ -22,9 +22,9 @@ public class TenantService : NPinCrudAppService repository, - ISqlSugarRepository repository2, IDataSeeder dataSeeder) : base(repository) + ISqlSugarRepository sqlSugarRepository, IDataSeeder dataSeeder) : base(repository) { - _repository = repository2; + _repository = sqlSugarRepository; _dataSeeder = dataSeeder; } diff --git a/src/NPin.Web/logs/log-20240222.txt b/src/NPin.Web/logs/log-20240222.txt index 2b23239..e4af757 100644 --- a/src/NPin.Web/logs/log-20240222.txt +++ b/src/NPin.Web/logs/log-20240222.txt @@ -1298,3 +1298,145 @@ SELECT count(*) FROM sqlite_master WHERE name = 'index_EntityChangeId' 2024-02-22 16:40:52.358 +08:00 [INF] Application started. Press Ctrl+C to shut down. 2024-02-22 16:40:52.358 +08:00 [INF] Hosting environment: Development 2024-02-22 16:40:52.358 +08:00 [INF] Content root path: D:\Projects\.NetCore\NPin\src\NPin.Web +2024-02-22 16:42:23.699 +08:00 [INF] NPin-Framework (Abp.vNext) 启动! +2024-02-22 16:42:24.441 +08:00 [INF] Loaded ABP modules: +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.NPinWebModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.SqlSugarCore.NPinSqlSugarCoreModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Domain.NPinDomainModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Domain.Shared.NPinDomainSharedModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.AuditLogging.Domain.Shared.NPinFrameworkAuditLoggingDomainSharedModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainSharedModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.TenantManagement.Domain.NPinFrameworkTenantManagementDomainModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Json.SystemTextJson.AbpJsonSystemTextJsonModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Json.AbpJsonAbstractionsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.AuditLogging.Domain.NPinFrameworkAuditLoggingDomainModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.Mapster.NPinFrameworkMapsterModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.Core.NPinFrameworkCoreModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.AuditLogging.SqlSugarCore.NPinFrameworkAuditLoggingSqlSugarCoreModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.SqlSugarCore.NPinFrameworkSqlSugarCoreModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.TenantManagement.SqlSugarCore.NPinFrameworkTenantManagementSqlSugarCoreModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Application.NPinApplicationModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Application.Contracts.NPinApplicationContractsModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.TenantManagement.Application.Contracts.NPinFrameworkTenantManagementApplicationContractsModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.Ddd.Application.Contracts.NPinFrameworkDddApplicationContractsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.TenantManagement.Application.NPinFrameworkTenantManagementApplicationModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.Ddd.Application.NPinFrameworkDddApplicationModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2024-02-22 16:42:24.443 +08:00 [INF] - Volo.Abp.AspNetCore.Authentication.JwtBearer.AbpAspNetCoreAuthenticationJwtBearerModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.AspNetCore.NPinFrameworkAspNetCoreModule +2024-02-22 16:42:24.443 +08:00 [INF] - NPin.Framework.AspNetCore.Authentication.OAuth.NPinFrameworkAspNetCoreAuthenticationOAuthModule +2024-02-22 16:42:24.706 +08:00 [DBG] +==========NPin-SQL========== +select Name from sqlite_master where type='table' and name<>'sqlite_sequence' order by name; +============================ + +2024-02-22 16:42:24.753 +08:00 [DBG] +==========NPin-SQL========== +select Name from sqlite_master where type='table' and name<>'sqlite_sequence' order by name; +============================ + +2024-02-22 16:42:24.754 +08:00 [DBG] +==========NPin-SQL========== +SELECT count(*) FROM sqlite_master WHERE name = 'index_AuditLogId' +============================ + +2024-02-22 16:42:24.754 +08:00 [DBG] +==========NPin-SQL========== +SELECT count(*) FROM sqlite_master WHERE name = 'index_TenantId_ExecutionTime' +============================ + +2024-02-22 16:42:24.762 +08:00 [DBG] +==========NPin-SQL========== +select Name from sqlite_master where type='table' and name<>'sqlite_sequence' order by name; +============================ + +2024-02-22 16:42:24.763 +08:00 [DBG] +==========NPin-SQL========== +SELECT count(*) FROM sqlite_master WHERE name = 'index_ExecutionTime' +============================ + +2024-02-22 16:42:24.763 +08:00 [DBG] +==========NPin-SQL========== +SELECT count(*) FROM sqlite_master WHERE name = 'index_ExecutionTime_UserId' +============================ + +2024-02-22 16:42:24.765 +08:00 [DBG] +==========NPin-SQL========== +select Name from sqlite_master where type='table' and name<>'sqlite_sequence' order by name; +============================ + +2024-02-22 16:42:24.765 +08:00 [DBG] +==========NPin-SQL========== +SELECT count(*) FROM sqlite_master WHERE name = 'index_AuditLogId' +============================ + +2024-02-22 16:42:24.766 +08:00 [DBG] +==========NPin-SQL========== +SELECT count(*) FROM sqlite_master WHERE name = 'index_TenantId_EntityId' +============================ + +2024-02-22 16:42:24.767 +08:00 [DBG] +==========NPin-SQL========== +select Name from sqlite_master where type='table' and name<>'sqlite_sequence' order by name; +============================ + +2024-02-22 16:42:24.768 +08:00 [DBG] +==========NPin-SQL========== +SELECT count(*) FROM sqlite_master WHERE name = 'index_EntityChangeId' +============================ + +2024-02-22 16:42:25.146 +08:00 [INF] User profile is available. Using 'C:\Users\NorthLan\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. +2024-02-22 16:42:25.206 +08:00 [INF] Initialized all ABP modules. +2024-02-22 16:42:25.270 +08:00 [INF] Now listening on: http://[::]:19001 +2024-02-22 16:42:25.270 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2024-02-22 16:42:25.271 +08:00 [INF] Hosting environment: Development +2024-02-22 16:42:25.271 +08:00 [INF] Content root path: D:\Projects\.NetCore\NPin\src\NPin.Web +2024-02-22 17:52:29.348 +08:00 [INF] Application is shutting down...