学 赵 1 year ago
parent
commit
f0c1d99685
  1. 18636
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20221013.txt
  2. 698
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20221103.txt
  3. 485
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20230208.txt
  4. 900
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20230209.txt
  5. 270
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20230504.txt
  6. 85
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20230610.txt
  7. 6
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs
  8. 3
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json
  9. 6
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
  10. 39
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js
  11. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_can_detail_service.js
  12. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_can_sa_detail_service.js
  13. 22
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/inventory.js
  14. 69
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/log.js
  15. 46
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/vmi.js
  16. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/input/bbac_se_detail_service.js
  17. 20
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_ba_service.js
  18. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_detail_service.js
  19. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/input/hbpo_se_detail_service.js
  20. 5
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/input/hbpo_se_edi_service.js
  21. 21
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_ba_service.js
  22. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_can_sa_detail_service.js
  23. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_can_sa_detail_service.js
  24. 5
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-service.js
  25. 20
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material.js
  26. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list-app-service-bj.js
  27. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js
  28. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_detail_service.js
  29. 12
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_service.js
  30. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_se_detail_service.js
  31. 8
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js
  32. 132
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_relationship.js
  33. 38
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js
  34. 18
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js
  35. 15
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_relationdhip.js
  36. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/contrast/bj_pub_sa_detail_jobservice.js
  37. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_detail_service.js
  38. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_service.js
  39. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/contrast/in_pub_sa_detail_jobservice.js
  40. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_detail_service.js
  41. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_service.js
  42. 70
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/invoice/invoice_map_group.js
  43. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/bbac_jit_pub_sa_detail_jobservice.js
  44. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/hbpo_jit_pub_sa_detail_jobservice.js
  45. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/bbac_jit_pub_sa_detail_service.js
  46. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/bbac_jit_pub_sa_service.js
  47. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/hbpo_jit_pub_sa_detail_service.js
  48. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/hbpo_jit_pub_sa_service.js
  49. 98
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SA_DTO.cs
  50. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SE_EDI_DTO.cs
  51. 5
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs
  52. 220
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs
  53. 436
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs
  54. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SE_DETAIL_Service.cs
  55. 349
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs
  56. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SE_DETAIL_SERVICE.cs
  57. 322
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs
  58. 8
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SE_DETAIL_SERVICE.cs
  59. 218
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs
  60. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.csproj
  61. 28
      code/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs
  62. 67
      code/src/Modules/SettleAccount/src/SettleAccount.Application/influxdb/InfluxHelper.cs
  63. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SA.cs
  64. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_EDI.cs
  65. 23
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Vmi/VmiBalance.cs
  66. 21
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Vmi/VmiCategory.cs
  67. 192
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Vmi/VmiLog.cs
  68. 22
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Vmi/VmiType.cs
  69. 30
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
  70. 1
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/VmiSqliteContext.cs
  71. 5134
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.Designer.cs
  72. 53
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.cs
  73. 5024
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.Designer.cs
  74. 384
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.cs
  75. 5120
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.Designer.cs
  76. 45
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.cs
  77. 200
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

18636
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20221013.txt

File diff suppressed because it is too large

698
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20221103.txt

@ -1,698 +0,0 @@
2022-11-03 14:09:52.375 G Starting web host.
2022-11-03 14:10:04.356 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2022-11-03 14:10:23.784 G Loaded ABP modules:
2022-11-03 14:10:23.786 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2022-11-03 14:10:23.786 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2022-11-03 14:10:23.787 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2022-11-03 14:10:23.787 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2022-11-03 14:10:23.788 G - Volo.Abp.Domain.AbpDddDomainModule
2022-11-03 14:10:23.788 G - Volo.Abp.Auditing.AbpAuditingModule
2022-11-03 14:10:23.788 G - Volo.Abp.Data.AbpDataModule
2022-11-03 14:10:23.788 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2022-11-03 14:10:23.789 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2022-11-03 14:10:23.790 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2022-11-03 14:10:23.791 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2022-11-03 14:10:23.791 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2022-11-03 14:10:23.791 G - Volo.Abp.Json.AbpJsonModule
2022-11-03 14:10:23.792 G - Volo.Abp.Timing.AbpTimingModule
2022-11-03 14:10:23.792 G - Volo.Abp.Localization.AbpLocalizationModule
2022-11-03 14:10:23.792 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2022-11-03 14:10:23.793 G - Volo.Abp.Settings.AbpSettingsModule
2022-11-03 14:10:23.793 G - Volo.Abp.Security.AbpSecurityModule
2022-11-03 14:10:23.793 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2022-11-03 14:10:23.796 G - Volo.Abp.Threading.AbpThreadingModule
2022-11-03 14:10:23.797 G - Volo.Abp.EventBus.AbpEventBusModule
2022-11-03 14:10:23.797 G - Volo.Abp.Guids.AbpGuidsModule
2022-11-03 14:10:23.797 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2022-11-03 14:10:23.797 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2022-11-03 14:10:23.798 G - Volo.Abp.Specifications.AbpSpecificationsModule
2022-11-03 14:10:23.798 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2022-11-03 14:10:23.798 G - Volo.Abp.Validation.AbpValidationModule
2022-11-03 14:10:23.799 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2022-11-03 14:10:23.800 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2022-11-03 14:10:23.800 G - Volo.Abp.Authorization.AbpAuthorizationModule
2022-11-03 14:10:23.801 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2022-11-03 14:10:23.802 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2022-11-03 14:10:23.802 G - Volo.Abp.Dapper.AbpDapperModule
2022-11-03 14:10:23.803 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2022-11-03 14:10:23.804 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2022-11-03 14:10:23.805 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2022-11-03 14:10:23.807 G - Volo.Abp.Http.Client.AbpHttpClientModule
2022-11-03 14:10:23.808 G - Volo.Abp.Http.AbpHttpModule
2022-11-03 14:10:23.810 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2022-11-03 14:10:23.811 G - Volo.Abp.Minify.AbpMinifyModule
2022-11-03 14:10:23.811 G - Volo.Abp.Castle.AbpCastleCoreModule
2022-11-03 14:10:23.812 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2022-11-03 14:10:23.813 G - Volo.Abp.Caching.AbpCachingModule
2022-11-03 14:10:23.814 G - Volo.Abp.Serialization.AbpSerializationModule
2022-11-03 14:10:23.814 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2022-11-03 14:10:23.816 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2022-11-03 14:10:23.817 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2022-11-03 14:10:23.819 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2022-11-03 14:10:23.819 G - Volo.Abp.Features.AbpFeaturesModule
2022-11-03 14:10:23.820 G - Volo.Abp.Users.AbpUsersAbstractionModule
2022-11-03 14:10:23.820 G - Volo.Abp.Application.AbpDddApplicationModule
2022-11-03 14:10:23.821 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2022-11-03 14:10:23.822 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2022-11-03 14:10:23.823 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2022-11-03 14:10:23.826 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2022-11-03 14:10:23.827 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2022-11-03 14:10:23.828 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2022-11-03 14:10:23.829 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2022-11-03 14:10:23.830 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2022-11-03 14:10:23.830 G - Volo.Abp.UI.AbpUiModule
2022-11-03 14:10:23.831 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2022-11-03 14:10:23.831 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2022-11-03 14:10:23.832 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2022-11-03 14:10:23.833 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2022-11-03 14:10:23.833 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2022-11-03 14:10:23.834 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2022-11-03 14:10:23.834 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2022-11-03 14:10:23.836 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2022-11-03 14:10:23.837 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2022-11-03 14:10:23.840 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2022-11-03 14:10:23.840 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2022-11-03 14:10:23.841 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2022-11-03 14:10:23.842 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2022-11-03 14:10:23.842 G - Volo.Abp.Autofac.AbpAutofacModule
2022-11-03 14:10:23.843 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2022-11-03 14:10:23.844 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2022-11-03 14:10:23.844 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2022-11-03 14:10:23.846 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2022-11-03 14:10:23.846 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2022-11-03 14:10:23.848 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2022-11-03 14:10:23.849 G - Volo.Abp.Hangfire.AbpHangfireModule
2022-11-03 14:10:23.933 G Start installing Hangfire SQL objects...
2022-11-03 14:10:24.186 G Hangfire SQL objects installed.
2022-11-03 14:10:24.197 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService'
2022-11-03 14:10:24.198 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2022-11-03 14:10:24.199 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2022-11-03 14:10:24.245 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService'
2022-11-03 14:10:24.246 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2022-11-03 14:10:24.247 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2022-11-03 14:10:24.463 G Server win102022aywttw:5260:7ab13985 successfully announced in 241.6047 ms
2022-11-03 14:10:24.463 G Server win102022aywttw:5260:b9010a5f successfully announced in 211.6305 ms
2022-11-03 14:10:24.476 G Server win102022aywttw:5260:b9010a5f is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler...
2022-11-03 14:10:24.476 G Server win102022aywttw:5260:7ab13985 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler...
2022-11-03 14:10:24.517 G 2 servers were removed due to timeout
2022-11-03 14:10:24.732 G Server win102022aywttw:5260:7ab13985 all the dispatchers started
2022-11-03 14:10:24.742 G Server win102022aywttw:5260:b9010a5f all the dispatchers started
2022-11-03 14:10:26.121 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2022-11-03 14:10:26.470 G Executed DbCommand ("35"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.569 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.573 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.579 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.584 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.591 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.596 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.603 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.609 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.614 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.618 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.624 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.627 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.633 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.638 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.644 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.648 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.653 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.657 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.663 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.666 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.674 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.681 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.684 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.691 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.695 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.700 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.705 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.711 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.716 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.721 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.725 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.730 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.735 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.742 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.747 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.754 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.763 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.775 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.786 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.794 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.805 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.811 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.822 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.831 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.836 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.843 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.851 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.856 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.864 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.872 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.880 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.887 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.898 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.904 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.912 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.917 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.926 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.932 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.939 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.945 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.950 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.957 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.963 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.967 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.975 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.980 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.991 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:26.999 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.007 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.011 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.017 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.022 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.028 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.036 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.041 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.047 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.051 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.057 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.061 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.068 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.073 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId]
FROM [AbpPermissionGrants] AS [a]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2))
ORDER BY [a].[Id]"
2022-11-03 14:10:27.394 G Initialized all ABP modules.
2022-11-03 14:10:27.493 G Now listening on: "http://localhost:44378"
2022-11-03 14:10:27.494 G Application started. Press Ctrl+C to shut down.
2022-11-03 14:10:27.495 G Hosting environment: "Development"
2022-11-03 14:10:27.496 G Content root path: "D:\pg\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host"
2022-11-03 14:10:30.528 G Request starting HTTP/1.1 GET http://localhost:44378/ - -
2022-11-03 14:10:40.574 G It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 7s ago, v: 2.0.593.37019
StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 7s ago, v: 2.0.593.37019
at StackExchange.Redis.ConnectionMultiplexer.ConnectImplAsync(Object configuration, TextWriter log) in C:\projects\stackexchange-redis\src\StackExchange.Redis\ConnectionMultiplexer.cs:line 823
at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.ConnectAsync(CancellationToken token)
at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAndRefreshAsync(String key, Boolean getData, CancellationToken token)
at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAsync(String key, CancellationToken token)
at Volo.Abp.Caching.DistributedCache`2.GetAsync(TCacheKey key, Nullable`1 hideErrors, Boolean considerUow, CancellationToken token)
2022-11-03 14:10:40.696 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2022-11-03 14:10:40.711 G Executed DbCommand ("3"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value]
FROM [AbpSettings] AS [a]
WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL"
2022-11-03 14:10:49.846 G Connection id ""0HMLTC8D9PL83"", Request id ""0HMLTC8D9PL83:00000002"": An unhandled exception was thrown by the application.
StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 16s ago, v: 2.0.593.37019
at StackExchange.Redis.ConnectionMultiplexer.ConnectImplAsync(Object configuration, TextWriter log) in C:\projects\stackexchange-redis\src\StackExchange.Redis\ConnectionMultiplexer.cs:line 823
at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.ConnectAsync(CancellationToken token)
at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass51_0.<<SetAsync>g__SetRealCache|0>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass51_0.<<SetAsync>g__SetRealCache|0>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.Uow.UnitOfWork.OnCompletedAsync()
at Volo.Abp.Uow.UnitOfWork.CompleteAsync(CancellationToken cancellationToken)
at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
at Volo.Abp.Settings.TenantSettingValueProvider.GetOrNullAsync(SettingDefinition setting)
at Volo.Abp.Settings.SettingProvider.GetOrNullValueFromProvidersAsync(IEnumerable`1 providers, SettingDefinition setting)
at Volo.Abp.Settings.SettingProvider.GetOrNullAsync(String name)
at Microsoft.AspNetCore.RequestLocalization.DefaultAbpRequestLocalizationOptionsProvider.GetLocalizationOptionsAsync()
at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.Security.Claims.AbpClaimsMapMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
2022-11-03 14:10:49.892 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 500 0 - 19364.3751ms
2022-11-03 14:11:22.748 G Request starting HTTP/1.1 GET http://localhost:44378/ - -
2022-11-03 14:11:47.790 G Request starting HTTP/1.1 GET http://localhost:44378/ - -
2022-11-03 14:11:36.507 G Request starting HTTP/1.1 GET http://localhost:44378/ - -
2022-11-03 14:12:39.793 G The operation was canceled.
System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAsync(String key, CancellationToken token)
at Volo.Abp.Caching.DistributedCache`2.GetAsync(TCacheKey key, Nullable`1 hideErrors, Boolean considerUow, CancellationToken token)
2022-11-03 14:12:39.827 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2022-11-03 14:12:39.830 G An error occurred using the connection to database '"ABP"' on server '"127.0.0.1"'.
2022-11-03 14:12:39.839 G An exception occurred while iterating over the results of a query for context type '"Volo.Abp.SettingManagement.EntityFrameworkCore.SettingManagementDbContext"'."
""System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(DbContext _, Boolean result, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()"
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(DbContext _, Boolean result, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
2022-11-03 14:12:39.852 G Connection id ""0HMLTC8D9PL83"", Request id ""0HMLTC8D9PL83:00000003"": An unhandled exception was thrown by the application.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(DbContext _, Boolean result, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
at Volo.Abp.SettingManagement.EntityFrameworkCore.EfCoreSettingRepository.GetListAsync(String providerName, String providerKey, CancellationToken cancellationToken)
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
at Volo.Abp.SettingManagement.SettingManagementStore.SetCacheItemsAsync(String providerName, String providerKey, String currentName, SettingCacheItem currentCacheItem)
at Volo.Abp.SettingManagement.SettingManagementStore.GetCacheItemAsync(String name, String providerName, String providerKey)
at Volo.Abp.SettingManagement.SettingManagementStore.GetOrNullAsync(String name, String providerName, String providerKey)
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
at Volo.Abp.Settings.TenantSettingValueProvider.GetOrNullAsync(SettingDefinition setting)
at Volo.Abp.Settings.SettingProvider.GetOrNullValueFromProvidersAsync(IEnumerable`1 providers, SettingDefinition setting)
at Volo.Abp.Settings.SettingProvider.GetOrNullAsync(String name)
at Microsoft.AspNetCore.RequestLocalization.DefaultAbpRequestLocalizationOptionsProvider.GetLocalizationOptionsAsync()
at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.Security.Claims.AbpClaimsMapMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
2022-11-03 14:12:39.891 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 0 - - 77142.6484ms
2022-11-03 14:12:39.941 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2022-11-03 14:12:39.944 G Executed DbCommand ("1"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value]
FROM [AbpSettings] AS [a]
WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL"
2022-11-03 14:12:39.957 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2022-11-03 14:12:39.959 G Executed DbCommand ("1"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']"
""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value]
FROM [AbpSettings] AS [a]
WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL"
2022-11-03 14:12:40.042 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"'
2022-11-03 14:12:40.042 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"'
2022-11-03 14:12:40.080 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host").
2022-11-03 14:12:40.080 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host").
2022-11-03 14:12:40.105 G Executing RedirectResult, redirecting to "/swagger".
2022-11-03 14:12:40.105 G Executing RedirectResult, redirecting to "/swagger".
2022-11-03 14:12:40.110 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 22.9151ms
2022-11-03 14:12:40.110 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 24.2072ms
2022-11-03 14:12:40.111 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"'
2022-11-03 14:12:40.112 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"'
2022-11-03 14:12:40.115 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 0 - - 63607.7569ms
2022-11-03 14:12:40.116 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 52326.6081ms
2022-11-03 14:12:40.122 G Request starting HTTP/1.1 GET http://localhost:44378/swagger - -
2022-11-03 14:12:40.125 G Request finished HTTP/1.1 GET http://localhost:44378/swagger - - - 301 0 - 3.0091ms
2022-11-03 14:12:40.131 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - -
2022-11-03 14:12:40.175 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 44.2447ms
2022-11-03 14:12:40.234 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-bundle.js - -
2022-11-03 14:12:40.236 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui.css - -
2022-11-03 14:12:40.236 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-standalone-preset.js - -
2022-11-03 14:12:40.275 G Sending file. Request path: '"/swagger-ui.css"'. Physical path: '"N/A"'
2022-11-03 14:12:40.281 G Sending file. Request path: '"/swagger-ui-standalone-preset.js"'. Physical path: '"N/A"'
2022-11-03 14:12:40.287 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-standalone-preset.js - - - 200 336841 application/javascript 50.4756ms
2022-11-03 14:12:40.287 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui.css - - - 200 143410 text/css 51.1849ms
2022-11-03 14:12:40.307 G Sending file. Request path: '"/swagger-ui-bundle.js"'. Physical path: '"N/A"'
2022-11-03 14:12:40.308 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-bundle.js - - - 200 1097461 application/javascript 74.0431ms
2022-11-03 14:12:40.532 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - -
2022-11-03 14:12:40.547 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/favicon-32x32.png - -
2022-11-03 14:12:40.549 G Sending file. Request path: '"/favicon-32x32.png"'. Physical path: '"N/A"'
2022-11-03 14:12:40.549 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/favicon-32x32.png - - - 200 628 image/png 2.4141ms
2022-11-03 14:12:42.724 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 2191.5570ms
2022-11-03 14:13:17.338 G Request starting HTTP/1.1 GET http://localhost:44378/ - -
2022-11-03 14:13:17.354 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"'
2022-11-03 14:13:17.357 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host").
2022-11-03 14:13:17.363 G Executing RedirectResult, redirecting to "/swagger".
2022-11-03 14:13:17.365 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 4.4175ms
2022-11-03 14:13:17.369 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"'
2022-11-03 14:13:17.376 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 46.2766ms
2022-11-03 14:13:17.387 G Request starting HTTP/1.1 GET http://localhost:44378/swagger - -
2022-11-03 14:13:17.389 G Request finished HTTP/1.1 GET http://localhost:44378/swagger - - - 301 0 - 1.6160ms
2022-11-03 14:13:17.391 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - -
2022-11-03 14:13:17.394 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 2.9154ms
2022-11-03 14:13:17.410 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-bundle.js - -
2022-11-03 14:13:17.410 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui.css - -
2022-11-03 14:13:17.413 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-standalone-preset.js - -
2022-11-03 14:13:17.433 G Sending file. Request path: '"/swagger-ui.css"'. Physical path: '"N/A"'
2022-11-03 14:13:17.439 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui.css - - - 200 143410 text/css 28.5081ms
2022-11-03 14:13:17.442 G Sending file. Request path: '"/swagger-ui-standalone-preset.js"'. Physical path: '"N/A"'
2022-11-03 14:13:17.451 G Sending file. Request path: '"/swagger-ui-bundle.js"'. Physical path: '"N/A"'
2022-11-03 14:13:17.455 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-standalone-preset.js - - - 200 336841 application/javascript 42.6502ms
2022-11-03 14:13:17.457 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-bundle.js - - - 200 1097461 application/javascript 47.0985ms
2022-11-03 14:13:17.652 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - -
2022-11-03 14:13:17.679 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/favicon-32x32.png - -
2022-11-03 14:13:17.688 G Sending file. Request path: '"/favicon-32x32.png"'. Physical path: '"N/A"'
2022-11-03 14:13:17.689 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/favicon-32x32.png - - - 200 628 image/png 10.7023ms
2022-11-03 14:13:20.217 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 2565.2381ms

485
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20230208.txt

@ -1,485 +0,0 @@
2023-02-08 10:20:44.794 G Starting web host.
2023-02-08 10:20:53.910 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2023-02-08 10:20:54.039 G Loaded ABP modules:
2023-02-08 10:20:54.041 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2023-02-08 10:20:54.042 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2023-02-08 10:20:54.043 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2023-02-08 10:20:54.043 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2023-02-08 10:20:54.045 G - Volo.Abp.Domain.AbpDddDomainModule
2023-02-08 10:20:54.047 G - Volo.Abp.Auditing.AbpAuditingModule
2023-02-08 10:20:54.048 G - Volo.Abp.Data.AbpDataModule
2023-02-08 10:20:54.048 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2023-02-08 10:20:54.049 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2023-02-08 10:20:54.051 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2023-02-08 10:20:54.053 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2023-02-08 10:20:54.054 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2023-02-08 10:20:54.055 G - Volo.Abp.Json.AbpJsonModule
2023-02-08 10:20:54.056 G - Volo.Abp.Timing.AbpTimingModule
2023-02-08 10:20:54.057 G - Volo.Abp.Localization.AbpLocalizationModule
2023-02-08 10:20:54.058 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2023-02-08 10:20:54.059 G - Volo.Abp.Settings.AbpSettingsModule
2023-02-08 10:20:54.059 G - Volo.Abp.Security.AbpSecurityModule
2023-02-08 10:20:54.060 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2023-02-08 10:20:54.060 G - Volo.Abp.Threading.AbpThreadingModule
2023-02-08 10:20:54.061 G - Volo.Abp.EventBus.AbpEventBusModule
2023-02-08 10:20:54.062 G - Volo.Abp.Guids.AbpGuidsModule
2023-02-08 10:20:54.065 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2023-02-08 10:20:54.066 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2023-02-08 10:20:54.067 G - Volo.Abp.Specifications.AbpSpecificationsModule
2023-02-08 10:20:54.067 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2023-02-08 10:20:54.068 G - Volo.Abp.Validation.AbpValidationModule
2023-02-08 10:20:54.069 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2023-02-08 10:20:54.070 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2023-02-08 10:20:54.070 G - Volo.Abp.Authorization.AbpAuthorizationModule
2023-02-08 10:20:54.071 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2023-02-08 10:20:54.074 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2023-02-08 10:20:54.075 G - Volo.Abp.Dapper.AbpDapperModule
2023-02-08 10:20:54.076 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2023-02-08 10:20:54.077 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2023-02-08 10:20:54.079 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2023-02-08 10:20:54.080 G - Volo.Abp.Http.Client.AbpHttpClientModule
2023-02-08 10:20:54.081 G - Volo.Abp.Http.AbpHttpModule
2023-02-08 10:20:54.081 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2023-02-08 10:20:54.083 G - Volo.Abp.Minify.AbpMinifyModule
2023-02-08 10:20:54.083 G - Volo.Abp.Castle.AbpCastleCoreModule
2023-02-08 10:20:54.084 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2023-02-08 10:20:54.085 G - Volo.Abp.Caching.AbpCachingModule
2023-02-08 10:20:54.086 G - Volo.Abp.Serialization.AbpSerializationModule
2023-02-08 10:20:54.087 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2023-02-08 10:20:54.088 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2023-02-08 10:20:54.090 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2023-02-08 10:20:54.093 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2023-02-08 10:20:54.095 G - Volo.Abp.Features.AbpFeaturesModule
2023-02-08 10:20:54.095 G - Volo.Abp.Users.AbpUsersAbstractionModule
2023-02-08 10:20:54.096 G - Volo.Abp.Application.AbpDddApplicationModule
2023-02-08 10:20:54.097 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2023-02-08 10:20:54.098 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2023-02-08 10:20:54.098 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2023-02-08 10:20:54.099 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2023-02-08 10:20:54.100 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2023-02-08 10:20:54.100 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2023-02-08 10:20:54.101 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2023-02-08 10:20:54.102 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2023-02-08 10:20:54.102 G - Volo.Abp.UI.AbpUiModule
2023-02-08 10:20:54.103 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2023-02-08 10:20:54.104 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2023-02-08 10:20:54.104 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2023-02-08 10:20:54.106 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2023-02-08 10:20:54.107 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2023-02-08 10:20:54.109 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2023-02-08 10:20:54.110 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2023-02-08 10:20:54.110 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2023-02-08 10:20:54.111 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2023-02-08 10:20:54.112 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2023-02-08 10:20:54.112 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2023-02-08 10:20:54.113 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2023-02-08 10:20:54.114 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2023-02-08 10:20:54.114 G - Volo.Abp.Autofac.AbpAutofacModule
2023-02-08 10:20:54.115 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2023-02-08 10:20:54.116 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2023-02-08 10:20:54.116 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2023-02-08 10:20:54.118 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2023-02-08 10:20:54.119 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2023-02-08 10:20:54.120 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2023-02-08 10:20:54.121 G - Volo.Abp.Hangfire.AbpHangfireModule
2023-02-08 10:20:54.192 G Start installing Hangfire SQL objects...
2023-02-08 10:21:46.319 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:23:21.353 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:23:21.381 G An exception occurred while trying to perform the migration.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:23:21.395 G Was unable to perform the Hangfire schema migration due to an exception. Ignore this message unless you've just installed or upgraded Hangfire.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:23:21.419 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-08 10:23:21.420 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-08 10:23:21.423 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-08 10:23:21.480 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:23:21.495 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-08 10:23:21.508 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-08 10:23:21.511 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-08 10:23:21.519 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:23:23.398 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2023-02-08 10:23:23.420 G An error occurred using the connection to database '"ABP"' on server '"192.168.0.140"'.
2023-02-08 10:25:41.938 G Starting web host.
2023-02-08 10:25:49.279 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2023-02-08 10:25:49.373 G Loaded ABP modules:
2023-02-08 10:25:49.374 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2023-02-08 10:25:49.375 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2023-02-08 10:25:49.375 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2023-02-08 10:25:49.376 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2023-02-08 10:25:49.376 G - Volo.Abp.Domain.AbpDddDomainModule
2023-02-08 10:25:49.376 G - Volo.Abp.Auditing.AbpAuditingModule
2023-02-08 10:25:49.377 G - Volo.Abp.Data.AbpDataModule
2023-02-08 10:25:49.377 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2023-02-08 10:25:49.378 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2023-02-08 10:25:49.378 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2023-02-08 10:25:49.378 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2023-02-08 10:25:49.379 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2023-02-08 10:25:49.379 G - Volo.Abp.Json.AbpJsonModule
2023-02-08 10:25:49.380 G - Volo.Abp.Timing.AbpTimingModule
2023-02-08 10:25:49.380 G - Volo.Abp.Localization.AbpLocalizationModule
2023-02-08 10:25:49.381 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2023-02-08 10:25:49.381 G - Volo.Abp.Settings.AbpSettingsModule
2023-02-08 10:25:49.382 G - Volo.Abp.Security.AbpSecurityModule
2023-02-08 10:25:49.384 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2023-02-08 10:25:49.385 G - Volo.Abp.Threading.AbpThreadingModule
2023-02-08 10:25:49.385 G - Volo.Abp.EventBus.AbpEventBusModule
2023-02-08 10:25:49.385 G - Volo.Abp.Guids.AbpGuidsModule
2023-02-08 10:25:49.386 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2023-02-08 10:25:49.386 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2023-02-08 10:25:49.387 G - Volo.Abp.Specifications.AbpSpecificationsModule
2023-02-08 10:25:49.387 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2023-02-08 10:25:49.388 G - Volo.Abp.Validation.AbpValidationModule
2023-02-08 10:25:49.388 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2023-02-08 10:25:49.389 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2023-02-08 10:25:49.390 G - Volo.Abp.Authorization.AbpAuthorizationModule
2023-02-08 10:25:49.391 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2023-02-08 10:25:49.392 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2023-02-08 10:25:49.393 G - Volo.Abp.Dapper.AbpDapperModule
2023-02-08 10:25:49.395 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2023-02-08 10:25:49.396 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2023-02-08 10:25:49.397 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2023-02-08 10:25:49.398 G - Volo.Abp.Http.Client.AbpHttpClientModule
2023-02-08 10:25:49.399 G - Volo.Abp.Http.AbpHttpModule
2023-02-08 10:25:49.399 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2023-02-08 10:25:49.400 G - Volo.Abp.Minify.AbpMinifyModule
2023-02-08 10:25:49.400 G - Volo.Abp.Castle.AbpCastleCoreModule
2023-02-08 10:25:49.402 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2023-02-08 10:25:49.407 G - Volo.Abp.Caching.AbpCachingModule
2023-02-08 10:25:49.408 G - Volo.Abp.Serialization.AbpSerializationModule
2023-02-08 10:25:49.410 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2023-02-08 10:25:49.410 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2023-02-08 10:25:49.411 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2023-02-08 10:25:49.412 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2023-02-08 10:25:49.412 G - Volo.Abp.Features.AbpFeaturesModule
2023-02-08 10:25:49.413 G - Volo.Abp.Users.AbpUsersAbstractionModule
2023-02-08 10:25:49.414 G - Volo.Abp.Application.AbpDddApplicationModule
2023-02-08 10:25:49.414 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2023-02-08 10:25:49.415 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2023-02-08 10:25:49.417 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2023-02-08 10:25:49.419 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2023-02-08 10:25:49.420 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2023-02-08 10:25:49.421 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2023-02-08 10:25:49.422 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2023-02-08 10:25:49.424 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2023-02-08 10:25:49.425 G - Volo.Abp.UI.AbpUiModule
2023-02-08 10:25:49.426 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2023-02-08 10:25:49.427 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2023-02-08 10:25:49.429 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2023-02-08 10:25:49.430 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2023-02-08 10:25:49.430 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2023-02-08 10:25:49.431 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2023-02-08 10:25:49.432 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2023-02-08 10:25:49.432 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2023-02-08 10:25:49.435 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2023-02-08 10:25:49.436 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2023-02-08 10:25:49.438 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2023-02-08 10:25:49.439 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2023-02-08 10:25:49.441 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2023-02-08 10:25:49.442 G - Volo.Abp.Autofac.AbpAutofacModule
2023-02-08 10:25:49.443 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2023-02-08 10:25:49.443 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2023-02-08 10:25:49.445 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2023-02-08 10:25:49.446 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2023-02-08 10:25:49.448 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2023-02-08 10:25:49.449 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2023-02-08 10:25:49.450 G - Volo.Abp.Hangfire.AbpHangfireModule
2023-02-08 10:25:49.516 G Start installing Hangfire SQL objects...
2023-02-08 10:26:10.573 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:26:10.586 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:26:10.594 G An exception occurred while trying to perform the migration.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:26:10.599 G Was unable to perform the Hangfire schema migration due to an exception. Ignore this message unless you've just installed or upgraded Hangfire.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:26:10.618 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-08 10:26:10.620 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-08 10:26:10.621 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-08 10:26:10.666 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:26:10.673 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-08 10:26:10.678 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-08 10:26:10.679 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-08 10:26:10.683 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:26:11.841 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2023-02-08 10:26:40.696 G Execution BackgroundServerProcess is still in the Failed state for 00:00:30.0013829 due to an exception, will be retried no more than in 00:00:15
System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
2023-02-08 10:27:03.885 G Execution BackgroundServerProcess is still in the Failed state for 00:00:53.1901256 due to an exception, will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:27:03.885 G Execution BackgroundServerProcess is still in the Failed state for 00:00:53.2064215 due to an exception, will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-08 10:27:03.893 G An error occurred using the connection to database '"ABP"' on server '"192.168.0.140"'.

900
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20230209.txt

@ -1,900 +0,0 @@
2023-02-09 08:51:34.696 G Starting web host.
2023-02-09 08:51:43.123 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2023-02-09 08:51:43.244 G Loaded ABP modules:
2023-02-09 08:51:43.246 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2023-02-09 08:51:43.247 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2023-02-09 08:51:43.247 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2023-02-09 08:51:43.248 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2023-02-09 08:51:43.249 G - Volo.Abp.Domain.AbpDddDomainModule
2023-02-09 08:51:43.250 G - Volo.Abp.Auditing.AbpAuditingModule
2023-02-09 08:51:43.250 G - Volo.Abp.Data.AbpDataModule
2023-02-09 08:51:43.251 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2023-02-09 08:51:43.252 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2023-02-09 08:51:43.253 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2023-02-09 08:51:43.255 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2023-02-09 08:51:43.256 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2023-02-09 08:51:43.257 G - Volo.Abp.Json.AbpJsonModule
2023-02-09 08:51:43.257 G - Volo.Abp.Timing.AbpTimingModule
2023-02-09 08:51:43.257 G - Volo.Abp.Localization.AbpLocalizationModule
2023-02-09 08:51:43.258 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2023-02-09 08:51:43.258 G - Volo.Abp.Settings.AbpSettingsModule
2023-02-09 08:51:43.259 G - Volo.Abp.Security.AbpSecurityModule
2023-02-09 08:51:43.259 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2023-02-09 08:51:43.260 G - Volo.Abp.Threading.AbpThreadingModule
2023-02-09 08:51:43.260 G - Volo.Abp.EventBus.AbpEventBusModule
2023-02-09 08:51:43.261 G - Volo.Abp.Guids.AbpGuidsModule
2023-02-09 08:51:43.261 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2023-02-09 08:51:43.262 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2023-02-09 08:51:43.262 G - Volo.Abp.Specifications.AbpSpecificationsModule
2023-02-09 08:51:43.263 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2023-02-09 08:51:43.263 G - Volo.Abp.Validation.AbpValidationModule
2023-02-09 08:51:43.264 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2023-02-09 08:51:43.265 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2023-02-09 08:51:43.265 G - Volo.Abp.Authorization.AbpAuthorizationModule
2023-02-09 08:51:43.266 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2023-02-09 08:51:43.267 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2023-02-09 08:51:43.267 G - Volo.Abp.Dapper.AbpDapperModule
2023-02-09 08:51:43.268 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2023-02-09 08:51:43.270 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2023-02-09 08:51:43.271 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2023-02-09 08:51:43.272 G - Volo.Abp.Http.Client.AbpHttpClientModule
2023-02-09 08:51:43.273 G - Volo.Abp.Http.AbpHttpModule
2023-02-09 08:51:43.273 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2023-02-09 08:51:43.274 G - Volo.Abp.Minify.AbpMinifyModule
2023-02-09 08:51:43.275 G - Volo.Abp.Castle.AbpCastleCoreModule
2023-02-09 08:51:43.275 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2023-02-09 08:51:43.276 G - Volo.Abp.Caching.AbpCachingModule
2023-02-09 08:51:43.277 G - Volo.Abp.Serialization.AbpSerializationModule
2023-02-09 08:51:43.277 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2023-02-09 08:51:43.278 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2023-02-09 08:51:43.279 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2023-02-09 08:51:43.279 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2023-02-09 08:51:43.280 G - Volo.Abp.Features.AbpFeaturesModule
2023-02-09 08:51:43.281 G - Volo.Abp.Users.AbpUsersAbstractionModule
2023-02-09 08:51:43.282 G - Volo.Abp.Application.AbpDddApplicationModule
2023-02-09 08:51:43.282 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2023-02-09 08:51:43.283 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2023-02-09 08:51:43.286 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2023-02-09 08:51:43.288 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2023-02-09 08:51:43.289 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2023-02-09 08:51:43.289 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2023-02-09 08:51:43.290 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2023-02-09 08:51:43.290 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2023-02-09 08:51:43.291 G - Volo.Abp.UI.AbpUiModule
2023-02-09 08:51:43.291 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2023-02-09 08:51:43.292 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2023-02-09 08:51:43.292 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2023-02-09 08:51:43.293 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2023-02-09 08:51:43.294 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2023-02-09 08:51:43.294 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2023-02-09 08:51:43.295 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2023-02-09 08:51:43.295 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2023-02-09 08:51:43.296 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2023-02-09 08:51:43.297 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2023-02-09 08:51:43.297 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2023-02-09 08:51:43.298 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2023-02-09 08:51:43.298 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2023-02-09 08:51:43.299 G - Volo.Abp.Autofac.AbpAutofacModule
2023-02-09 08:51:43.300 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2023-02-09 08:51:43.302 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2023-02-09 08:51:43.303 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2023-02-09 08:51:43.303 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2023-02-09 08:51:43.304 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2023-02-09 08:51:43.305 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2023-02-09 08:51:43.305 G - Volo.Abp.Hangfire.AbpHangfireModule
2023-02-09 08:51:43.386 G Start installing Hangfire SQL objects...
2023-02-09 08:52:04.515 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 08:52:04.528 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 08:52:04.535 G An exception occurred while trying to perform the migration.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 08:52:04.539 G Was unable to perform the Hangfire schema migration due to an exception. Ignore this message unless you've just installed or upgraded Hangfire.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 08:52:04.554 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-09 08:52:04.555 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-09 08:52:04.556 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-09 08:52:04.588 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 08:52:04.598 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-09 08:52:04.601 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-09 08:52:04.602 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-09 08:52:04.607 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 08:52:06.219 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2023-02-09 08:52:34.633 G Execution BackgroundServerProcess is still in the Failed state for 00:00:30.0190220 due to an exception, will be retried no more than in 00:00:15
System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
2023-02-09 08:52:57.100 G Execution BackgroundServerProcess is still in the Failed state for 00:00:52.4862824 due to an exception, will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 08:52:57.109 G An error occurred using the connection to database '"ABP"' on server '"192.168.0.140"'.
2023-02-09 08:52:57.101 G Execution BackgroundServerProcess is still in the Failed state for 00:00:52.4997857 due to an exception, will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 13:30:28.897 G Starting web host.
2023-02-09 13:30:38.638 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2023-02-09 13:30:38.837 G Loaded ABP modules:
2023-02-09 13:30:38.839 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2023-02-09 13:30:38.839 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2023-02-09 13:30:38.840 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2023-02-09 13:30:38.840 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2023-02-09 13:30:38.841 G - Volo.Abp.Domain.AbpDddDomainModule
2023-02-09 13:30:38.841 G - Volo.Abp.Auditing.AbpAuditingModule
2023-02-09 13:30:38.841 G - Volo.Abp.Data.AbpDataModule
2023-02-09 13:30:38.842 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2023-02-09 13:30:38.842 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2023-02-09 13:30:38.842 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2023-02-09 13:30:38.843 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2023-02-09 13:30:38.843 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2023-02-09 13:30:38.844 G - Volo.Abp.Json.AbpJsonModule
2023-02-09 13:30:38.844 G - Volo.Abp.Timing.AbpTimingModule
2023-02-09 13:30:38.844 G - Volo.Abp.Localization.AbpLocalizationModule
2023-02-09 13:30:38.845 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2023-02-09 13:30:38.845 G - Volo.Abp.Settings.AbpSettingsModule
2023-02-09 13:30:38.846 G - Volo.Abp.Security.AbpSecurityModule
2023-02-09 13:30:38.850 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2023-02-09 13:30:38.851 G - Volo.Abp.Threading.AbpThreadingModule
2023-02-09 13:30:38.851 G - Volo.Abp.EventBus.AbpEventBusModule
2023-02-09 13:30:38.852 G - Volo.Abp.Guids.AbpGuidsModule
2023-02-09 13:30:38.852 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2023-02-09 13:30:38.853 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2023-02-09 13:30:38.853 G - Volo.Abp.Specifications.AbpSpecificationsModule
2023-02-09 13:30:38.854 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2023-02-09 13:30:38.854 G - Volo.Abp.Validation.AbpValidationModule
2023-02-09 13:30:38.855 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2023-02-09 13:30:38.856 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2023-02-09 13:30:38.856 G - Volo.Abp.Authorization.AbpAuthorizationModule
2023-02-09 13:30:38.857 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2023-02-09 13:30:38.858 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2023-02-09 13:30:38.860 G - Volo.Abp.Dapper.AbpDapperModule
2023-02-09 13:30:38.862 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2023-02-09 13:30:38.863 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2023-02-09 13:30:38.864 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2023-02-09 13:30:38.864 G - Volo.Abp.Http.Client.AbpHttpClientModule
2023-02-09 13:30:38.866 G - Volo.Abp.Http.AbpHttpModule
2023-02-09 13:30:38.866 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2023-02-09 13:30:38.867 G - Volo.Abp.Minify.AbpMinifyModule
2023-02-09 13:30:38.868 G - Volo.Abp.Castle.AbpCastleCoreModule
2023-02-09 13:30:38.870 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2023-02-09 13:30:38.871 G - Volo.Abp.Caching.AbpCachingModule
2023-02-09 13:30:38.874 G - Volo.Abp.Serialization.AbpSerializationModule
2023-02-09 13:30:38.877 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2023-02-09 13:30:38.880 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2023-02-09 13:30:38.881 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2023-02-09 13:30:38.883 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2023-02-09 13:30:38.885 G - Volo.Abp.Features.AbpFeaturesModule
2023-02-09 13:30:38.886 G - Volo.Abp.Users.AbpUsersAbstractionModule
2023-02-09 13:30:38.888 G - Volo.Abp.Application.AbpDddApplicationModule
2023-02-09 13:30:38.891 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2023-02-09 13:30:38.894 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2023-02-09 13:30:38.895 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2023-02-09 13:30:38.896 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2023-02-09 13:30:38.897 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2023-02-09 13:30:38.898 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2023-02-09 13:30:38.898 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2023-02-09 13:30:38.900 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2023-02-09 13:30:38.901 G - Volo.Abp.UI.AbpUiModule
2023-02-09 13:30:38.903 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2023-02-09 13:30:38.904 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2023-02-09 13:30:38.905 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2023-02-09 13:30:38.906 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2023-02-09 13:30:38.908 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2023-02-09 13:30:38.912 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2023-02-09 13:30:38.912 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2023-02-09 13:30:38.914 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2023-02-09 13:30:38.915 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2023-02-09 13:30:38.916 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2023-02-09 13:30:38.916 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2023-02-09 13:30:38.917 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2023-02-09 13:30:38.918 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2023-02-09 13:30:38.919 G - Volo.Abp.Autofac.AbpAutofacModule
2023-02-09 13:30:38.921 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2023-02-09 13:30:38.922 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2023-02-09 13:30:38.923 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2023-02-09 13:30:38.925 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2023-02-09 13:30:38.925 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2023-02-09 13:30:38.926 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2023-02-09 13:30:38.927 G - Volo.Abp.Hangfire.AbpHangfireModule
2023-02-09 13:30:39.011 G Start installing Hangfire SQL objects...
2023-02-09 13:31:31.118 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 13:31:31.138 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 13:31:31.153 G An exception occurred while trying to perform the migration.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 13:31:31.169 G Was unable to perform the Hangfire schema migration due to an exception. Ignore this message unless you've just installed or upgraded Hangfire.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 13:31:31.202 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-09 13:31:31.204 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-09 13:31:31.205 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-09 13:31:31.255 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 13:31:31.271 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-09 13:31:31.276 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-09 13:31:31.279 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-09 13:31:31.290 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 13:31:34.112 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2023-02-09 13:31:34.135 G An error occurred using the connection to database '"ABP"' on server '"192.168.0.140"'.
2023-02-09 14:54:12.395 G Starting web host.
2023-02-09 14:54:22.190 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2023-02-09 14:54:22.306 G Loaded ABP modules:
2023-02-09 14:54:22.307 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2023-02-09 14:54:22.308 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2023-02-09 14:54:22.309 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2023-02-09 14:54:22.310 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2023-02-09 14:54:22.311 G - Volo.Abp.Domain.AbpDddDomainModule
2023-02-09 14:54:22.311 G - Volo.Abp.Auditing.AbpAuditingModule
2023-02-09 14:54:22.312 G - Volo.Abp.Data.AbpDataModule
2023-02-09 14:54:22.313 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2023-02-09 14:54:22.313 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2023-02-09 14:54:22.314 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2023-02-09 14:54:22.315 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2023-02-09 14:54:22.316 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2023-02-09 14:54:22.318 G - Volo.Abp.Json.AbpJsonModule
2023-02-09 14:54:22.318 G - Volo.Abp.Timing.AbpTimingModule
2023-02-09 14:54:22.319 G - Volo.Abp.Localization.AbpLocalizationModule
2023-02-09 14:54:22.320 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2023-02-09 14:54:22.320 G - Volo.Abp.Settings.AbpSettingsModule
2023-02-09 14:54:22.321 G - Volo.Abp.Security.AbpSecurityModule
2023-02-09 14:54:22.322 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2023-02-09 14:54:22.322 G - Volo.Abp.Threading.AbpThreadingModule
2023-02-09 14:54:22.323 G - Volo.Abp.EventBus.AbpEventBusModule
2023-02-09 14:54:22.323 G - Volo.Abp.Guids.AbpGuidsModule
2023-02-09 14:54:22.324 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2023-02-09 14:54:22.324 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2023-02-09 14:54:22.325 G - Volo.Abp.Specifications.AbpSpecificationsModule
2023-02-09 14:54:22.325 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2023-02-09 14:54:22.326 G - Volo.Abp.Validation.AbpValidationModule
2023-02-09 14:54:22.326 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2023-02-09 14:54:22.327 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2023-02-09 14:54:22.327 G - Volo.Abp.Authorization.AbpAuthorizationModule
2023-02-09 14:54:22.328 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2023-02-09 14:54:22.329 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2023-02-09 14:54:22.329 G - Volo.Abp.Dapper.AbpDapperModule
2023-02-09 14:54:22.330 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2023-02-09 14:54:22.330 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2023-02-09 14:54:22.332 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2023-02-09 14:54:22.336 G - Volo.Abp.Http.Client.AbpHttpClientModule
2023-02-09 14:54:22.338 G - Volo.Abp.Http.AbpHttpModule
2023-02-09 14:54:22.338 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2023-02-09 14:54:22.339 G - Volo.Abp.Minify.AbpMinifyModule
2023-02-09 14:54:22.340 G - Volo.Abp.Castle.AbpCastleCoreModule
2023-02-09 14:54:22.340 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2023-02-09 14:54:22.341 G - Volo.Abp.Caching.AbpCachingModule
2023-02-09 14:54:22.341 G - Volo.Abp.Serialization.AbpSerializationModule
2023-02-09 14:54:22.342 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2023-02-09 14:54:22.344 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2023-02-09 14:54:22.344 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2023-02-09 14:54:22.345 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2023-02-09 14:54:22.346 G - Volo.Abp.Features.AbpFeaturesModule
2023-02-09 14:54:22.346 G - Volo.Abp.Users.AbpUsersAbstractionModule
2023-02-09 14:54:22.347 G - Volo.Abp.Application.AbpDddApplicationModule
2023-02-09 14:54:22.348 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2023-02-09 14:54:22.350 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2023-02-09 14:54:22.350 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2023-02-09 14:54:22.351 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2023-02-09 14:54:22.351 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2023-02-09 14:54:22.352 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2023-02-09 14:54:22.352 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2023-02-09 14:54:22.353 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2023-02-09 14:54:22.354 G - Volo.Abp.UI.AbpUiModule
2023-02-09 14:54:22.354 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2023-02-09 14:54:22.355 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2023-02-09 14:54:22.356 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2023-02-09 14:54:22.356 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2023-02-09 14:54:22.357 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2023-02-09 14:54:22.357 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2023-02-09 14:54:22.358 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2023-02-09 14:54:22.359 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2023-02-09 14:54:22.359 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2023-02-09 14:54:22.361 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2023-02-09 14:54:22.365 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2023-02-09 14:54:22.366 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2023-02-09 14:54:22.367 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2023-02-09 14:54:22.368 G - Volo.Abp.Autofac.AbpAutofacModule
2023-02-09 14:54:22.369 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2023-02-09 14:54:22.369 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2023-02-09 14:54:22.370 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2023-02-09 14:54:22.371 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2023-02-09 14:54:22.371 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2023-02-09 14:54:22.372 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2023-02-09 14:54:22.373 G - Volo.Abp.Hangfire.AbpHangfireModule
2023-02-09 14:54:22.454 G Start installing Hangfire SQL objects...
2023-02-09 14:55:14.579 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 14:55:14.592 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 14:55:14.602 G An exception occurred while trying to perform the migration.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 14:55:14.606 G Was unable to perform the Hangfire schema migration due to an exception. Ignore this message unless you've just installed or upgraded Hangfire.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 14:55:14.637 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-09 14:55:14.638 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-09 14:55:14.639 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-09 14:55:14.676 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 14:55:14.687 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-09 14:55:14.687 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-09 14:55:14.688 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-09 14:55:14.694 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 14:55:16.621 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2023-02-09 14:55:16.649 G An error occurred using the connection to database '"ABP"' on server '"192.168.0.140"'.
2023-02-09 15:02:32.540 G Starting web host.
2023-02-09 15:02:42.968 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2023-02-09 15:02:43.086 G Loaded ABP modules:
2023-02-09 15:02:43.088 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2023-02-09 15:02:43.088 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2023-02-09 15:02:43.089 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2023-02-09 15:02:43.089 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2023-02-09 15:02:43.090 G - Volo.Abp.Domain.AbpDddDomainModule
2023-02-09 15:02:43.090 G - Volo.Abp.Auditing.AbpAuditingModule
2023-02-09 15:02:43.091 G - Volo.Abp.Data.AbpDataModule
2023-02-09 15:02:43.091 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2023-02-09 15:02:43.092 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2023-02-09 15:02:43.092 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2023-02-09 15:02:43.093 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2023-02-09 15:02:43.095 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2023-02-09 15:02:43.096 G - Volo.Abp.Json.AbpJsonModule
2023-02-09 15:02:43.097 G - Volo.Abp.Timing.AbpTimingModule
2023-02-09 15:02:43.098 G - Volo.Abp.Localization.AbpLocalizationModule
2023-02-09 15:02:43.098 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2023-02-09 15:02:43.099 G - Volo.Abp.Settings.AbpSettingsModule
2023-02-09 15:02:43.099 G - Volo.Abp.Security.AbpSecurityModule
2023-02-09 15:02:43.100 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2023-02-09 15:02:43.100 G - Volo.Abp.Threading.AbpThreadingModule
2023-02-09 15:02:43.101 G - Volo.Abp.EventBus.AbpEventBusModule
2023-02-09 15:02:43.101 G - Volo.Abp.Guids.AbpGuidsModule
2023-02-09 15:02:43.102 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2023-02-09 15:02:43.102 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2023-02-09 15:02:43.103 G - Volo.Abp.Specifications.AbpSpecificationsModule
2023-02-09 15:02:43.103 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2023-02-09 15:02:43.104 G - Volo.Abp.Validation.AbpValidationModule
2023-02-09 15:02:43.105 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2023-02-09 15:02:43.106 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2023-02-09 15:02:43.107 G - Volo.Abp.Authorization.AbpAuthorizationModule
2023-02-09 15:02:43.107 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2023-02-09 15:02:43.109 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2023-02-09 15:02:43.111 G - Volo.Abp.Dapper.AbpDapperModule
2023-02-09 15:02:43.111 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2023-02-09 15:02:43.112 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2023-02-09 15:02:43.113 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2023-02-09 15:02:43.113 G - Volo.Abp.Http.Client.AbpHttpClientModule
2023-02-09 15:02:43.114 G - Volo.Abp.Http.AbpHttpModule
2023-02-09 15:02:43.115 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2023-02-09 15:02:43.116 G - Volo.Abp.Minify.AbpMinifyModule
2023-02-09 15:02:43.117 G - Volo.Abp.Castle.AbpCastleCoreModule
2023-02-09 15:02:43.118 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2023-02-09 15:02:43.119 G - Volo.Abp.Caching.AbpCachingModule
2023-02-09 15:02:43.119 G - Volo.Abp.Serialization.AbpSerializationModule
2023-02-09 15:02:43.120 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2023-02-09 15:02:43.121 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2023-02-09 15:02:43.121 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2023-02-09 15:02:43.122 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2023-02-09 15:02:43.123 G - Volo.Abp.Features.AbpFeaturesModule
2023-02-09 15:02:43.123 G - Volo.Abp.Users.AbpUsersAbstractionModule
2023-02-09 15:02:43.124 G - Volo.Abp.Application.AbpDddApplicationModule
2023-02-09 15:02:43.125 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2023-02-09 15:02:43.125 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2023-02-09 15:02:43.126 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2023-02-09 15:02:43.127 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2023-02-09 15:02:43.128 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2023-02-09 15:02:43.129 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2023-02-09 15:02:43.133 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2023-02-09 15:02:43.134 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2023-02-09 15:02:43.134 G - Volo.Abp.UI.AbpUiModule
2023-02-09 15:02:43.135 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2023-02-09 15:02:43.136 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2023-02-09 15:02:43.137 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2023-02-09 15:02:43.138 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2023-02-09 15:02:43.138 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2023-02-09 15:02:43.139 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2023-02-09 15:02:43.140 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2023-02-09 15:02:43.142 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2023-02-09 15:02:43.143 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2023-02-09 15:02:43.145 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2023-02-09 15:02:43.146 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2023-02-09 15:02:43.147 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2023-02-09 15:02:43.148 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2023-02-09 15:02:43.149 G - Volo.Abp.Autofac.AbpAutofacModule
2023-02-09 15:02:43.150 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2023-02-09 15:02:43.150 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2023-02-09 15:02:43.151 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2023-02-09 15:02:43.152 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2023-02-09 15:02:43.153 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2023-02-09 15:02:43.154 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2023-02-09 15:02:43.155 G - Volo.Abp.Hangfire.AbpHangfireModule
2023-02-09 15:02:43.263 G Start installing Hangfire SQL objects...
2023-02-09 15:03:35.366 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 15:03:35.386 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 15:03:35.393 G An exception occurred while trying to perform the migration.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 15:03:35.400 G Was unable to perform the Hangfire schema migration due to an exception. Ignore this message unless you've just installed or upgraded Hangfire.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 15:03:35.427 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-09 15:03:35.429 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-09 15:03:35.430 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-09 15:03:35.474 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 15:03:35.486 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-02-09 15:03:35.510 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-02-09 15:03:35.511 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-02-09 15:03:35.522 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-02-09 15:03:37.510 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2023-02-09 15:03:37.543 G An error occurred using the connection to database '"ABP"' on server '"192.168.0.140"'.

270
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20230504.txt

@ -1,270 +0,0 @@
2023-05-04 10:03:49.435 G Starting web host.
2023-05-04 10:03:56.895 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2023-05-04 10:03:57.001 G Loaded ABP modules:
2023-05-04 10:03:57.002 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2023-05-04 10:03:57.003 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2023-05-04 10:03:57.003 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2023-05-04 10:03:57.004 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2023-05-04 10:03:57.004 G - Volo.Abp.Domain.AbpDddDomainModule
2023-05-04 10:03:57.005 G - Volo.Abp.Auditing.AbpAuditingModule
2023-05-04 10:03:57.006 G - Volo.Abp.Data.AbpDataModule
2023-05-04 10:03:57.006 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2023-05-04 10:03:57.006 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2023-05-04 10:03:57.007 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2023-05-04 10:03:57.007 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2023-05-04 10:03:57.008 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2023-05-04 10:03:57.008 G - Volo.Abp.Json.AbpJsonModule
2023-05-04 10:03:57.008 G - Volo.Abp.Timing.AbpTimingModule
2023-05-04 10:03:57.009 G - Volo.Abp.Localization.AbpLocalizationModule
2023-05-04 10:03:57.009 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2023-05-04 10:03:57.010 G - Volo.Abp.Settings.AbpSettingsModule
2023-05-04 10:03:57.010 G - Volo.Abp.Security.AbpSecurityModule
2023-05-04 10:03:57.010 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2023-05-04 10:03:57.011 G - Volo.Abp.Threading.AbpThreadingModule
2023-05-04 10:03:57.011 G - Volo.Abp.EventBus.AbpEventBusModule
2023-05-04 10:03:57.012 G - Volo.Abp.Guids.AbpGuidsModule
2023-05-04 10:03:57.012 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2023-05-04 10:03:57.012 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2023-05-04 10:03:57.013 G - Volo.Abp.Specifications.AbpSpecificationsModule
2023-05-04 10:03:57.013 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2023-05-04 10:03:57.014 G - Volo.Abp.Validation.AbpValidationModule
2023-05-04 10:03:57.014 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2023-05-04 10:03:57.016 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2023-05-04 10:03:57.017 G - Volo.Abp.Authorization.AbpAuthorizationModule
2023-05-04 10:03:57.018 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2023-05-04 10:03:57.018 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2023-05-04 10:03:57.019 G - Volo.Abp.Dapper.AbpDapperModule
2023-05-04 10:03:57.019 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2023-05-04 10:03:57.020 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2023-05-04 10:03:57.020 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2023-05-04 10:03:57.020 G - Volo.Abp.Http.Client.AbpHttpClientModule
2023-05-04 10:03:57.021 G - Volo.Abp.Http.AbpHttpModule
2023-05-04 10:03:57.021 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2023-05-04 10:03:57.022 G - Volo.Abp.Minify.AbpMinifyModule
2023-05-04 10:03:57.022 G - Volo.Abp.Castle.AbpCastleCoreModule
2023-05-04 10:03:57.023 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2023-05-04 10:03:57.023 G - Volo.Abp.Caching.AbpCachingModule
2023-05-04 10:03:57.023 G - Volo.Abp.Serialization.AbpSerializationModule
2023-05-04 10:03:57.024 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2023-05-04 10:03:57.024 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2023-05-04 10:03:57.025 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2023-05-04 10:03:57.025 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2023-05-04 10:03:57.026 G - Volo.Abp.Features.AbpFeaturesModule
2023-05-04 10:03:57.026 G - Volo.Abp.Users.AbpUsersAbstractionModule
2023-05-04 10:03:57.027 G - Volo.Abp.Application.AbpDddApplicationModule
2023-05-04 10:03:57.027 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2023-05-04 10:03:57.027 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2023-05-04 10:03:57.028 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2023-05-04 10:03:57.028 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2023-05-04 10:03:57.029 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2023-05-04 10:03:57.029 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2023-05-04 10:03:57.030 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2023-05-04 10:03:57.030 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2023-05-04 10:03:57.031 G - Volo.Abp.UI.AbpUiModule
2023-05-04 10:03:57.031 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2023-05-04 10:03:57.032 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2023-05-04 10:03:57.033 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2023-05-04 10:03:57.033 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2023-05-04 10:03:57.034 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2023-05-04 10:03:57.034 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2023-05-04 10:03:57.035 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2023-05-04 10:03:57.035 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2023-05-04 10:03:57.036 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2023-05-04 10:03:57.036 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2023-05-04 10:03:57.037 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2023-05-04 10:03:57.037 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2023-05-04 10:03:57.038 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2023-05-04 10:03:57.039 G - Volo.Abp.Autofac.AbpAutofacModule
2023-05-04 10:03:57.039 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2023-05-04 10:03:57.040 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2023-05-04 10:03:57.040 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2023-05-04 10:03:57.041 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2023-05-04 10:03:57.042 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2023-05-04 10:03:57.042 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2023-05-04 10:03:57.043 G - Volo.Abp.Hangfire.AbpHangfireModule
2023-05-04 10:03:57.118 G Start installing Hangfire SQL objects...
2023-05-04 10:04:18.239 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-05-04 10:04:18.257 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-05-04 10:04:18.265 G An exception occurred while trying to perform the migration.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-05-04 10:04:18.272 G Was unable to perform the Hangfire schema migration due to an exception. Ignore this message unless you've just installed or upgraded Hangfire.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-05-04 10:04:18.295 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-05-04 10:04:18.296 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-05-04 10:04:18.297 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-05-04 10:04:18.335 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-05-04 10:04:18.342 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2023-05-04 10:04:18.343 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2023-05-04 10:04:18.344 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2023-05-04 10:04:18.349 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-05-04 10:04:19.766 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2023-05-04 10:04:48.384 G Execution BackgroundServerProcess is still in the Failed state for 00:00:30.0292985 due to an exception, will be retried no more than in 00:00:15
System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
2023-05-04 10:05:11.811 G Execution BackgroundServerProcess is still in the Failed state for 00:00:53.4677994 due to an exception, will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-05-04 10:05:11.811 G Execution BackgroundServerProcess is still in the Failed state for 00:00:53.4561314 due to an exception, will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2023-05-04 10:05:11.819 G An error occurred using the connection to database '"ABP"' on server '"192.168.0.140"'.

85
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20230610.txt

@ -1,85 +0,0 @@
2023-06-10 16:17:58.147 G Starting web host.
2023-06-10 16:18:07.496 G User profile is available. Using '"C:\Users\44673\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2023-06-10 16:18:07.583 G Loaded ABP modules:
2023-06-10 16:18:07.584 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2023-06-10 16:18:07.585 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2023-06-10 16:18:07.586 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2023-06-10 16:18:07.587 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2023-06-10 16:18:07.587 G - Volo.Abp.Domain.AbpDddDomainModule
2023-06-10 16:18:07.588 G - Volo.Abp.Auditing.AbpAuditingModule
2023-06-10 16:18:07.589 G - Volo.Abp.Data.AbpDataModule
2023-06-10 16:18:07.589 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2023-06-10 16:18:07.590 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2023-06-10 16:18:07.591 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2023-06-10 16:18:07.591 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2023-06-10 16:18:07.592 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2023-06-10 16:18:07.593 G - Volo.Abp.Json.AbpJsonModule
2023-06-10 16:18:07.593 G - Volo.Abp.Timing.AbpTimingModule
2023-06-10 16:18:07.594 G - Volo.Abp.Localization.AbpLocalizationModule
2023-06-10 16:18:07.594 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2023-06-10 16:18:07.595 G - Volo.Abp.Settings.AbpSettingsModule
2023-06-10 16:18:07.596 G - Volo.Abp.Security.AbpSecurityModule
2023-06-10 16:18:07.596 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2023-06-10 16:18:07.597 G - Volo.Abp.Threading.AbpThreadingModule
2023-06-10 16:18:07.598 G - Volo.Abp.EventBus.AbpEventBusModule
2023-06-10 16:18:07.598 G - Volo.Abp.Guids.AbpGuidsModule
2023-06-10 16:18:07.599 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2023-06-10 16:18:07.600 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2023-06-10 16:18:07.600 G - Volo.Abp.Specifications.AbpSpecificationsModule
2023-06-10 16:18:07.601 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2023-06-10 16:18:07.602 G - Volo.Abp.Validation.AbpValidationModule
2023-06-10 16:18:07.602 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2023-06-10 16:18:07.603 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2023-06-10 16:18:07.604 G - Volo.Abp.Authorization.AbpAuthorizationModule
2023-06-10 16:18:07.604 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2023-06-10 16:18:07.605 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2023-06-10 16:18:07.606 G - Volo.Abp.Dapper.AbpDapperModule
2023-06-10 16:18:07.606 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2023-06-10 16:18:07.607 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2023-06-10 16:18:07.608 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2023-06-10 16:18:07.608 G - Volo.Abp.Http.Client.AbpHttpClientModule
2023-06-10 16:18:07.609 G - Volo.Abp.Http.AbpHttpModule
2023-06-10 16:18:07.609 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2023-06-10 16:18:07.610 G - Volo.Abp.Minify.AbpMinifyModule
2023-06-10 16:18:07.611 G - Volo.Abp.Castle.AbpCastleCoreModule
2023-06-10 16:18:07.611 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2023-06-10 16:18:07.612 G - Volo.Abp.Caching.AbpCachingModule
2023-06-10 16:18:07.613 G - Volo.Abp.Serialization.AbpSerializationModule
2023-06-10 16:18:07.614 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2023-06-10 16:18:07.614 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2023-06-10 16:18:07.615 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2023-06-10 16:18:07.615 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2023-06-10 16:18:07.616 G - Volo.Abp.Features.AbpFeaturesModule
2023-06-10 16:18:07.617 G - Volo.Abp.Users.AbpUsersAbstractionModule
2023-06-10 16:18:07.617 G - Volo.Abp.Application.AbpDddApplicationModule
2023-06-10 16:18:07.618 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2023-06-10 16:18:07.619 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2023-06-10 16:18:07.619 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2023-06-10 16:18:07.620 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2023-06-10 16:18:07.621 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2023-06-10 16:18:07.622 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2023-06-10 16:18:07.622 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2023-06-10 16:18:07.623 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2023-06-10 16:18:07.624 G - Volo.Abp.UI.AbpUiModule
2023-06-10 16:18:07.624 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2023-06-10 16:18:07.625 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2023-06-10 16:18:07.626 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2023-06-10 16:18:07.626 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2023-06-10 16:18:07.627 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2023-06-10 16:18:07.628 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2023-06-10 16:18:07.629 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2023-06-10 16:18:07.629 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2023-06-10 16:18:07.630 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2023-06-10 16:18:07.631 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2023-06-10 16:18:07.631 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2023-06-10 16:18:07.632 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2023-06-10 16:18:07.633 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2023-06-10 16:18:07.633 G - Volo.Abp.Autofac.AbpAutofacModule
2023-06-10 16:18:07.634 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2023-06-10 16:18:07.635 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2023-06-10 16:18:07.635 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2023-06-10 16:18:07.636 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2023-06-10 16:18:07.637 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2023-06-10 16:18:07.637 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2023-06-10 16:18:07.638 G - Volo.Abp.Hangfire.AbpHangfireModule
2023-06-10 16:18:07.746 G Start installing Hangfire SQL objects...

6
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs

@ -17,11 +17,13 @@ public class Program
.Build();
try
{
new InfluxHelper(configuration).Start().Query("create database vmi").Wait();
new InfluxHelper(configuration).Start();
}
catch (Exception ex)
{
throw new Exception("influxdb 启动失败", ex);
Console.Write("时序数据库启动失败");
Console.Write(ex.ToString());
//throw;
}
Log.Logger = new LoggerConfiguration()

3
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json

@ -5,7 +5,8 @@
"ConnectionStrings": {
"Default": "Server=dev.ccwin-in.com,13319;Database=BJABP;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True",
"SettleAccountService": "Server=dev.ccwin-in.com,13319;Database=BQ_SA;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;",
"WMSBJBMPT": "Server=dev.ccwin-in.com,6208;Database=WMS_BJBMPT_2;User ID=sa;Password=ChangkeTec@2021;Trusted_Connection=False;TrustServerCertificate=True;"
"WMSBJBMPT": "Server=dev.ccwin-in.com,6208;Database=WMS_BJBMPT_2;User ID=sa;Password=ChangkeTec@2021;Trusted_Connection=False;TrustServerCertificate=True;",
"questdb": "host=dev.ccwin-in.com;port=10580;username=admin;password=quest;database=vmi;ServerCompatibilityMode=NoTypeLoading;"
},
"Serilog": {
"Using": [],

6
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js

@ -371,7 +371,7 @@ export default {
const config = reactive(props.config);
// 分页
const pageModel = reactive({
sizeList: [1, 50, 100],
sizeList: [1, 10, 50, 100],
pageIndex: 1,
pageSize: 10,
total: 0,
@ -689,7 +689,9 @@ export default {
formData.append(q, importModel.value[q]);
}
});
if (config.query.schema.properties.businessType.default) {
formData.append("businessType", config.query.schema.properties.businessType.default);
}
for (let i = 0; i < fileList.value.length; i++) {
formData.append(`files`, fileList.value[i].raw);
}

39
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js

@ -0,0 +1,39 @@
import html from "html";
export default {
template: html`<div class="app-table el-table">
<div class="row">
<div class="cell el-table__cell" v-for="item in columns">
<div class="cell">{{item.title}}</div>
</div>
</div>
<div v-for="row in data" class="row">
<template v-for="(val,key) in row">
<div class="cell el-table__cell" v-if="columns.find(o=>o.dataKey===key)">
<div class="cell">{{val}}</div>
</div>
</template>
</div>
</div>`,
styles: html`<style>
.app-table {
display: table;
content-visibility: visible;
}
.app-table .row {
display: table-row;
background-color: var(--el-table-tr-bg-color);
border-top: var(--el-table-border);
border-left: var(--el-table-border);
}
.app-table .cell.el-table__cell {
display: table-cell;
padding: 8px 0;
border-right: var(--el-table-border);
border-bottom: var(--el-table-border);
}
</style>`,
props: ["modelValue", "columns", "data"],
emit: ["update:modelValue"],
setup(props, context) {},
};

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_can_detail_service.js

@ -11,8 +11,8 @@ const schema = {
type: "string",
},
version: {
title: "版本",
type: "int",
title: "期间",
type: "string",
},
price: {
title: "单价",

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_can_sa_detail_service.js

@ -11,8 +11,8 @@ const schema = {
type: "string",
},
version: {
title: "版本",
type: "int",
title: "期间",
type: "string",
},
price: {
title: "单价",

22
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/inventory.js

@ -0,0 +1,22 @@
const options1 = [
{ value: 0, label: "无" },
{ value: 1, label: "JIS件" },
{ value: 2, label: "JIT直供件" },
{ value: 3, label: "印度件" },
{ value: 4, label: "北汽4S备件" },
];
const options2 = [
{ value: "01", label: "前保" },
{ value: " 02", label: "后保" },
{ value: "03", label: " 左门槛" },
{ value: "04", label: "右门槛" },
{ value: "05", label: "扰流板" },
{ value: "06", label: "前左轮眉" },
{ value: "07", label: "前右轮眉 " },
{ value: "08", label: "后左轮眉" },
{ value: "09", label: "后右轮眉" },
];
const proType = { title: "发货类型", type: "number", input: "select", options: options1 };
const codeType = { title: "生产码类型", type: "string", input: "select", options: options2 };
export { proType, codeType };

69
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/log.js

@ -1,3 +1,5 @@
import { proType, codeType } from "./inventory.js";
//变动单据号、发生时间、生产码类型、、订单号、库位、变动数、EDI顺序号、备注、变动类型(In、Out标识)、发货类型(JIS\JIT\买单件\备件等)、
//实扣LU零件号、实扣客户零件号、结算LU零件号、结算客户零件号、实扣生产码、结算生产码
//库位、开始结束时间段、发货类型、生产码、生产码类型、LU零件号、订单号
@ -9,36 +11,33 @@ const schema = {
title: "变动单号",
type: "string",
},
CreatedDate: {
createdDate: {
title: "发生时间",
type: "string",
},
CodeType: {
title: "生产码类型",
type: "string",
},
Tmpe4: {
codeType,
tmpe4: {
title: "订单号",
type: "string",
},
ErpToLoc: {
erpToLoc: {
title: "库位",
type: "string",
},
Count: {
count: {
title: "变动数",
type: "number",
},
ProType: {
title: "变动单号",
type: "发货类型",
changedType: {
title: "变动类型",
type: "string",
},
VinCode: {
proType,
vinCode: {
title: "生产码",
type: "string",
},
LU: {
lu: {
title: "LU零件号",
type: "string",
},
@ -100,6 +99,48 @@ export default function () {
value: null,
readOnly: true,
},
{
logic: "and",
column: "createdDate",
action: "like",
value: null,
readOnly: true,
},
{
logic: "and",
column: "lu",
action: "like",
value: null,
readOnly: true,
},
{
logic: "and",
column: "tmpe4",
action: "like",
value: null,
readOnly: true,
},
{
logic: "and",
column: "vinCode",
action: "like",
value: null,
readOnly: true,
},
{
logic: "and",
column: "codeType",
action: "like",
value: null,
readOnly: true,
},
{
logic: "and",
column: "proType",
action: "like",
value: null,
readOnly: true,
},
],
},
skipCount: {

46
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/vmi.js

@ -1,3 +1,5 @@
import { proType, codeType } from "./inventory.js";
export default function () {
return {
title: "寄售库存",
@ -24,27 +26,29 @@ export default function () {
title: "生产码",
type: "string",
},
codeType: {
title: "生产码类型",
type: "string",
input: "select",
options: [
{ value: "01", label: "前保" },
{ value: "02", label: "后保" },
{ value: "03", label: "门槛" },
],
},
proType: {
title: "发货类型",
type: "string",
input: "select",
options: [
{ value: "JIS", label: "JIS" },
{ value: "JIT", label: "JIT" },
{ value: "买单件", label: "买单件" },
{ value: "备件", label: "备件" },
],
},
codeType,
proType,
// codeType: {
// title: "生产码类型",
// type: "string",
// input: "select",
// options: [
// { value: "01", label: "前保" },
// { value: "02", label: "后保" },
// { value: "03", label: "门槛" },
// ],
// },
// proType: {
// title: "发货类型",
// type: "string",
// input: "select",
// options: [
// { value: "JIS", label: "JIS" },
// { value: "JIT", label: "JIT" },
// { value: "买单件", label: "买单件" },
// { value: "备件", label: "备件" },
// ],
// },
qty: {
title: "数量",
type: "string",

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/input/bbac_se_detail_service.js

@ -153,8 +153,8 @@ export default function () {
default: [
{
logic: "and",
column: "version",
action: "equal",
column: "wmsBillNum",
action: "like",
value: null,
readOnly: true,
},

20
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_ba_service.js

@ -51,16 +51,18 @@ const schema = {
},
};
const queryUrl = "settleaccount/b-bAC_BA_SERVICE/main-query";
const exportUrl = "settleaccount/b-bAC_BA_SERVICE/export";
const invoiceUrl = "settleaccount/b-bAC_BA_SERVICE/generate-invoice";
const rejectUrl = "settleaccount/b-bAC_BA_SERVICE/reject";
const receivedUrl = "/api/settleaccount/h-bPO_BA_SERVICE/received";
const queryUrl = "settleaccount/bbac_ba_service/main-query";
const exportUrl = "settleaccount/bbac_ba_service/export";
const invoiceUrl = "settleaccount/bbac_ba_service/generate-invoice";
const receivedUrl = "settleaccount/bbac_ba_service/received";
const rejectUrl = "settleaccount/bbac_ba_service/reject";
const reissueUrl = "settleaccount/bbac_ba_service/reissue-invoice";
const queryMethod = "POST";
const exportMethod = "POST";
const invoiceMethod = "POST";
const rejectMethod = "POST";
const receivedMethod = "POST";
const rejectMethod = "POST";
const reissueMethod = "POST";
export default function () {
return {
@ -123,12 +125,14 @@ export default function () {
edit: {
exportUrl,
invoiceUrl,
rejectUrl,
receivedUrl,
rejectUrl,
reissueUrl,
exportMethod,
invoiceMethod,
rejectMethod,
receivedMethod,
rejectMethod,
reissueMethod,
schema: schema,
},
};

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_detail_service.js

@ -11,8 +11,8 @@ const schema = {
type: "string",
},
version: {
title: "版本",
type: "int",
title: "期间",
type: "string",
},
price: {
title: "单价",

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/input/hbpo_se_detail_service.js

@ -152,8 +152,8 @@ export default function () {
default: [
{
logic: "and",
column: "version",
action: "equal",
column: "wmsBillNum",
action: "like",
value: null,
readOnly: true,
},

5
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/input/hbpo_se_edi_service.js

@ -46,9 +46,8 @@ const schema = {
},
};
const baseUrl = "settleaccount/code-setting";
const queryUrl = `${baseUrl}/get-list`;
const exportUrl = `${baseUrl}/export`;
const queryUrl = "settleaccount/hbpo_se_edi_service/get-list";
const exportUrl = "settleaccount/hbpo_se_edi_service/export";
const queryMethod = "POST";
const exportMethod = "POST";

21
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_ba_service.js

@ -51,17 +51,18 @@ const schema = {
},
};
const baseUrl = "settleaccount/h-bPO_BA_SERVICE";
const queryUrl = `${baseUrl}/main-query`;
const detailsUrl = `${baseUrl}/get/%s`;
const exportUrl = `${baseUrl}/export`;
const invoiceUrl = "settleaccount/h-bPO_BA_SERVICE/generate-invoice";
const receivedUrl = "settleaccount/h-bPO_BA_SERVICE/received";
const queryUrl = "settleaccount/hbpo_ba_service/main-query";
const exportUrl = "settleaccount/hbpo_ba_service/export";
const invoiceUrl = "settleaccount/hbpo_ba_service/generate-invoice";
const receivedUrl = "settleaccount/hbpo_ba_service/received";
const rejectUrl = "settleaccount/hbpo_ba_service/reject";
const reissueUrl = "settleaccount/hbpo_ba_service/reissue-invoice";
const queryMethod = "POST";
const detailsMethod = "POST";
const exportMethod = "POST";
const invoiceMethod = "POST";
const receivedMethod = "POST";
const rejectMethod = "POST";
const reissueMethod = "POST";
export default function () {
return {
@ -122,14 +123,16 @@ export default function () {
schema: schema,
},
edit: {
detailsUrl,
exportUrl,
invoiceUrl,
receivedUrl,
detailsMethod,
rejectUrl,
reissueUrl,
exportMethod,
invoiceMethod,
receivedMethod,
rejectMethod,
reissueMethod,
schema: schema,
},
};

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_can_sa_detail_service.js

@ -11,8 +11,8 @@ const schema = {
type: "string",
},
version: {
title: "版本",
type: "int",
title: "期间",
type: "string",
},
price: {
title: "单价",

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_can_sa_detail_service.js

@ -11,8 +11,8 @@ const schema = {
type: "string",
},
version: {
title: "版本",
type: "int",
title: "期间",
type: "string",
},
price: {
title: "单价",

5
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-service.js

@ -11,7 +11,6 @@ const stateName = {
{ label: "等待执行", value: "Enqueued" },
],
};
const schema = {
title: "数据对比",
type: "object",
@ -108,6 +107,10 @@ export default function () {
sorting: {
hidden: true,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},

20
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material.js

@ -2,28 +2,12 @@ const schema = {
title: "物料主数据",
type: "object",
properties: {
factory: {
title: "工厂",
type: "string",
},
materialCode: {
title: "物料号",
title: "厂内物料号",
type: "string",
},
materialDesc: {
title: "物料描述",
type: "string",
},
unit: {
title: "基本计量单位",
type: "string",
},
estimateType: {
title: "估价类",
type: "string",
},
estimateTypeDesc: {
title: "估价类描述",
title: "厂内物料描述",
type: "string",
},
},

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list-app-service-bj.js

@ -3,7 +3,7 @@ const schema = {
type: "object",
properties: {
lu: {
title: "零件号",
title: "客户零件号",
type: "string",
},
price: {

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js

@ -5,7 +5,7 @@ const schema = {
type: "object",
properties: {
lu: {
title: "零件号",
title: "销售零件号",
type: "string",
},
price: {
@ -79,7 +79,7 @@ export default function () {
default: [
{
logic: "and",
column: "version",
column: "lu",
action: "like",
value: null,
readOnly: true,

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_detail_service.js

@ -119,6 +119,10 @@ export default function () {
sorting: {
hidden: true,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},

12
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_service.js

@ -11,11 +11,17 @@ const schema = {
title: "结算单号",
type: "string",
},
businessType: {
title: "业务类型",
type: "string",
hidden: true,
default: 0,
},
},
};
const queryUrl = "settleaccount/pub_sa_service/get-list";
const deleteUrl = "settleaccount/pub_sa_service/delete";
const deleteUrl = "settleaccount/pub_sa_service/delete-list";
const importUrl = "settleaccount/pub_sa_service/import-by-business-type";
const queryMethod = "POST";
const deleteMethod = "POST";
@ -73,6 +79,10 @@ export default function () {
sorting: {
hidden: true,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_se_detail_service.js

@ -118,8 +118,8 @@ export default function () {
default: [
{
logic: "and",
column: "version",
action: "equal",
column: "wmsBillNum",
action: "like",
value: null,
readOnly: true,
},

8
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js

@ -5,15 +5,15 @@ const schema = {
type: "object",
properties: {
lu: {
title: "客户零件号",
title: "客户物料号",
type: "string",
},
repLU: {
title: "替换客户零件号",
title: "替换客户物料号",
type: "string",
},
businessType: {
title: "业务类",
title: "业务类",
input: "select",
options: businessTypes,
},
@ -85,7 +85,9 @@ export default function () {
table: {
schema: schema,
},
import:{
},
edit: {
importUrl,
exportUrl,

132
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_relationship.js

@ -0,0 +1,132 @@
const schema = {
title: "通用代码",
type: "object",
properties: {
project: {
title: "项目",
type: "string",
readOnly: true,
showForList: true,
rules: [
{
required: true,
},
],
},
value: {
title: "值",
type: "string",
readOnly: true,
showForList: true,
rules: [
{
required: true,
},
],
},
description: {
title: "描述",
type: "string",
input: "textarea",
showForList: true,
rules: [
{
required: true,
},
{ max: 60 },
],
},
},
};
const baseUrl = "settleaccount/code-setting";
const queryUrl = `${baseUrl}/get-list`;
const detailsUrl = `${baseUrl}/get/%s`;
const createUrl = `${baseUrl}/create`;
const updateUrl = `${baseUrl}/update/%s`;
const deleteUrl = `${baseUrl}/delete-list`;
const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
const detailsMethod = "POST";
const createMethod = "POST";
const updateMethod = "POST";
const deleteMethod = "POST";
const importMethod = "POST";
const exportMethod = "POST";
export default function () {
return {
query: {
url: queryUrl,
method: queryMethod,
hasFilter: true,
schema: {
title: "通用代码",
type: "object",
properties: {
filters: {
title: "项目",
type: "array",
hidden: true,
items: {
type: "object",
properties: {
logic: {
type: "int",
},
column: {
type: "string",
},
action: {
type: "int",
},
value: {
type: "string",
},
},
},
default: [
{
logic: "and",
column: "project",
action: "like",
value: null,
readOnly: true,
},
],
},
skipCount: {
hidden: true,
default: 0,
},
maxResultCount: {
hidden: true,
default: 10,
},
sorting: {
hidden: true,
},
},
},
},
table: {
schema: schema,
},
edit: {
detailsUrl,
createUrl,
updateUrl,
deleteUrl,
importUrl,
exportUrl,
detailsMethod,
createMethod,
updateMethod,
deleteMethod,
importMethod,
exportMethod,
schema: schema,
},
};
}

38
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js

@ -478,6 +478,44 @@ export default [
],
},
},
{
path: "tb_relationdhip",
meta: {
type: "page",
title: "客户库位关系表",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "job-item",
meta: {

18
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js

@ -1656,6 +1656,15 @@ export default [
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "delete",
meta: {
@ -2079,6 +2088,15 @@ export default [
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "delete",
meta: {

15
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_relationdhip.js

@ -0,0 +1,15 @@
import AppList from "../../components/list/index.js";
import html from "html";
import useConfig from "../../models/tb_relationship.js";
export default {
components: { AppList },
template: html`<app-list :config="config" @command="onCommand" />`,
setup() {
const config = useConfig();
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
return { config, onCommand };
},
};

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/contrast/bj_pub_sa_detail_jobservice.js

@ -11,6 +11,8 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.name.default = "备件结算与发运数据对比";
config.query.schema.properties.businessType.default = 7;
return { config, onCommand };
},
};

1
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_detail_service.js

@ -9,6 +9,7 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default=7;
return { config, onCommand };
},
};

1
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_service.js

@ -10,6 +10,7 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default=7;
return { config, onCommand };
},
};

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/contrast/in_pub_sa_detail_jobservice.js

@ -11,6 +11,8 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default = 8;
config.query.schema.properties.name.default = "印度件结算与发运数据对比";
return { config, onCommand };
},
};

1
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_detail_service.js

@ -10,6 +10,7 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default = 8;
return { config, onCommand };
},
};

1
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_service.js

@ -10,6 +10,7 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default = 8;
return { config, onCommand };
},
};

70
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/invoice/invoice_map_group.js

@ -1,24 +1,22 @@
import AppList from "../../../components/list/index.js";
import html from "html";
import { ref } from "vue";
import { delay } from "../../../utils/index.js";
import useConfig from "../../../models/invoice/invoice_map_group.js";
import request from "../../../request/index.js";
import AppTable from "../../components/table/index.js";
export default {
components: { AppList },
components: { AppList, AppTable },
template: html`<app-list :config="config" @command="onCommand" />
<el-drawer v-model="drawer" destroy-on-close size="50%" class="page-drawer">
<template #header> <span class="el-dialog__title"> INVOICE_GRP_DETAIL_DTO </span> </template>
<el-row v-loading="loading">
<el-col style="height:calc(100vh - 180px);">
<el-tabs style="width:100%;height:100%;" v-if="drawer&&!loading">
<el-row style="height:calc(100vh - 160px);" v-loading="loading">
<el-col>
<el-tabs>
<el-tab-pane label="invoicE_WAIT_DETAIL" v-if="model.invoicE_WAIT_DETAIL.length">
<el-auto-resizer>
<template #default="{ height, width }">
<el-table-v2 :data="model.invoicE_WAIT_DETAIL" :columns="columns1" :width="width" :height="height" />
</template>
</el-auto-resizer>
<el-scrollbar>
<app-table :data="model.invoicE_WAIT_DETAIL" :columns="columns1" />
</el-scrollbar>
</el-tab-pane>
<el-tab-pane label="invoicE_MAP_GROUP" v-if="model.invoicE_MAP_GROUP.length">
<el-auto-resizer>
@ -46,10 +44,12 @@ export default {
styles: html` <style>
.page-drawer .el-tab-pane {
width: 100%;
height: 100%;
height: calc(100vh - 160px);
}
.page-drawer .el-tabs__content {
height: calc(100% - 40px);
.page-drawer .el-tabs__content,
.page-drawer .el-scrollbar {
width: 100%;
height: calc(100vh - 160px - 40px);
}
</style>`,
setup() {
@ -57,39 +57,16 @@ export default {
const drawer = ref(false);
const loading = ref(false);
const model = ref({
invoicE_WAIT_DETAIL: [
{
version: 11111,
invbillNum: "INV230725142640-001",
inGroupNum: "INV2023",
lu: "lu",
price: 11111,
qty: 11111,
amt: 11111,
bussiessType: "bussiessType",
},
{
version: 22222,
invbillNum: "INV230725142640-002",
inGroupNum: "INV2023",
lu: "lu",
price: 22222,
qty: 22222,
amt: 22222,
bussiessType: "bussiessType",
},
],
invoicE_MAP_GROUP: [{ version: "version" }],
invoicE_NOT_SETTLE: [{ version: "version" }],
invoicE_WAIT_DETAIL: [],
invoicE_MAP_GROUP: [],
invoicE_NOT_SETTLE: [],
});
const onCommand = async (item, rows) => {
drawer.value = true;
loading.value = true;
const data = { [item.path]: rows[0][item.path] };
// const response = await request("settleaccount/b-bAC_BA_SERVICE/detail-query", data, { method: "POST" });
// model.value = response.data;
await delay(1000);
const response = await request("settleaccount/invoice_service/detail-query", data, { method: "POST" });
model.value = response.data;
loading.value = false;
};
const columns1 = [
@ -171,6 +148,15 @@ export default {
title: "不可结算分组号",
},
];
return { config, onCommand, drawer, loading, model, columns1, columns2, columns3 };
return {
config,
onCommand,
drawer,
loading,
model,
columns1,
columns2,
columns3,
};
},
};

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/bbac_jit_pub_sa_detail_jobservice.js

@ -11,6 +11,8 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default = 3;
config.query.schema.properties.name.default = "直供件BBAC结算与发运数据对比";
return { config, onCommand };
},
};

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/hbpo_jit_pub_sa_detail_jobservice.js

@ -7,10 +7,12 @@ export default {
template: html`<app-list :config="config" @command="onCommand" />`,
setup() {
const config = useConfig();
config.query.schema.title = "发运与结算二次";
config.query.schema.title = "发运与结算";
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default = 4;
config.query.schema.properties.name.default = "直供件HBPO结算与发运数据对比";
return { config, onCommand };
},
};

1
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/bbac_jit_pub_sa_detail_service.js

@ -10,6 +10,7 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default = 3;
return { config, onCommand };
},
};

1
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/bbac_jit_pub_sa_service.js

@ -10,6 +10,7 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default = 3;
return { config, onCommand };
},
};

1
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/hbpo_jit_pub_sa_detail_service.js

@ -10,6 +10,7 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default = 4;
return { config, onCommand };
},
};

1
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/hbpo_jit_pub_sa_service.js

@ -10,6 +10,7 @@ export default {
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
config.query.schema.properties.businessType.default = 4;
return { config, onCommand };
},
};

98
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SA_DTO.cs

@ -0,0 +1,98 @@
using System;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// BBAC结算单
/// </summary>
public class BBAC_SA_DTO : EntityDto<Guid>
{
/// <summary>
/// 期间
/// </summary>
[Display(Name = "期间")]
public int Version { get; set; }
/// <summary>
/// 结算单据
/// </summary>
[Display(Name = "结算单据")]
public string BillNum { get; set; }
/// <summary>
/// 出库单号
/// </summary>
[Display(Name = "出库单号")]
public string DNBillNum { get; set; }
/// <summary>
/// 1、新建 2、已有出库3、已有扣减寄售库
/// </summary>
[Display(Name = "状态")]
public string State { get; set; }
/// <summary>
/// 明细记录行数
/// </summary>
[Display(Name = "明细记录行数")]
public string RecordCount { get; set; }
/// <summary>
/// 工厂地点
/// </summary>
[Display(Name = "工厂地点")]
public string Site { get; set; }
/// <summary>
/// 业务类型
/// </summary>
[Display(Name = "业务类型")]
public EnumBusinessType BusinessType { get; set; }
}
/// <summary>
/// BBAC结算明细导入
/// </summary>
public class BBAC_SA_DETAIL_IMPORT_DTO
{
/// <summary>
/// 结算日期
/// </summary>
[Display(Name = "Posting Date")]
[ImporterHeader(Name = "Posting Date", Format = "yyyy/MM/dd HH:mm:ss")]
public DateTime SettleDate { set; get; }
/// <summary>
/// 结算分组号
/// </summary>
[Display(Name = "Reference")]
[Required(ErrorMessage = "{0}不能为空")]
[ImporterHeader(Name = "Reference")]
public string GroupNum { get; set; }
/// <summary>
/// 客户零件号
/// </summary>
[Display(Name = "Material")]
[Required(ErrorMessage = "{0}不能为空")]
[ImporterHeader(Name = "Material")]
public string LU { get; set; }
/// <summary>
/// 数量
/// </summary>
[Display(Name = "结算数量")]
[ImporterHeader(IsIgnore = true)]
public decimal Qty { get; set; }
/// <summary>
/// 生产号
/// </summary>
[Display(Name = "External Call Number")]
[Required(ErrorMessage = "{0}不能为空")]
[ImporterHeader(Name = "External Call Number")]
public string PN { get; set; }
}

6
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SE_EDI_DTO.cs

@ -1,4 +1,4 @@
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Core;
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;
@ -20,7 +20,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// 期间
/// </summary>
[Display(Name = "期间")]
public int Version { get; set; }
public string Version { get; set; }
/// <summary>
/// 零件号
@ -85,7 +85,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// </summary>
[Display(Name = "期间")]
[ExporterHeader(DisplayName = "期间")]
public int Version { get; set; }
public string Version { get; set; }
/// <summary>
/// 零件号

5
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs

@ -1,13 +1,14 @@
using System;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Volo.Abp.Application.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// HBPO结算单
/// </summary>
public class HBPO_SA_DTO
public class HBPO_SA_DTO : EntityDto<Guid>
{
/// <summary>
/// 期间
@ -60,7 +61,7 @@ public class HBPO_SA_DETAIL_IMPORT_DTO
/// <summary>
/// 结算日期
/// </summary>
[Display(Name = "结算日期")]
[Display(Name = "ReceiveDate")]
[ImporterHeader(Name = "ReceiveDate", Format = "yyyy/MM/dd HH:mm:ss")]
public DateTime SettleDate { set; get; }

220
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs

@ -57,6 +57,226 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
public EnumBusinessType BusinessType { get; set; }
}
/// <summary>
/// 直供件BBAC导入
/// </summary>
public class ZhiGongJianBBACImportDto
{
/// <summary>
/// 结算日期
/// </summary>
[Display(Name = "Pstng Date")]
[ImporterHeader(Name = "Pstng Date")]
public DateTime SettleDate { set; get; }
/// <summary>
/// 零件号
/// </summary>
[Display(Name = "Material")]
[Required(ErrorMessage = "{0}不能为空")]
[ImporterHeader(Name = "Material")]
public string LU { get; set; }
/// <summary>
/// 生产号
/// </summary>
[Display(Name = "External Delivery ID")]
[ImporterHeader(Name = "External Delivery ID")]
[Required(ErrorMessage = "{0}不能为空")]
public string PN { get; set; }
/// <summary>
/// 数量
/// </summary>
[Display(Name = "Quantity")]
[ImporterHeader(Name = "Quantity")]
public decimal Qty { get; set; }
/// <summary>
/// 结算分组号
/// </summary>
[Display(Name = "Delivery")]
[ImporterHeader(Name = "Delivery")]
[Required(ErrorMessage = "{0}不能为空")]
public string GroupNum { get; set; }
}
/// <summary>
/// 直供件HBPO导入
/// </summary>
public class ZhiGongJianHBPOImportDto
{
/// <summary>
/// 结算日期
/// </summary>
[Display(Name = "结算日期")]
[ImporterHeader(IsIgnore = true)]
public DateTime SettleDate { set; get; }
/// <summary>
/// 零件号
/// </summary>
[Display(Name = "零件号")]
[Required(ErrorMessage = "{0}不能为空")]
[ImporterHeader(Name = "零件号")]
public string LU { get; set; }
/// <summary>
/// 生产号
/// </summary>
[Display(Name = "订单编号")]
[ImporterHeader(Name = "订单编号")]
[Required(ErrorMessage = "{0}不能为空")]
public string PN { get; set; }
/// <summary>
/// 数量
/// </summary>
[Display(Name = "数量")]
[ImporterHeader(Name = "数量")]
public decimal Qty { get; set; }
/// <summary>
/// 结算分组号
/// </summary>
[Display(Name = "订单编号")]
[ImporterHeader(Name = "订单编号")]
[Required(ErrorMessage = "{0}不能为空")]
public string GroupNum { get; set; }
}
/// <summary>
/// 买单件HBPO导入
/// </summary>
public class MaiDanJianHBPOImportDto
{
/// <summary>
/// 结算日期
/// </summary>
[Display(Name = "买单日期")]
[ImporterHeader(Name = "买单日期")]
public DateTime SettleDate { set; get; }
/// <summary>
/// 零件号
/// </summary>
[Display(Name = "零件号")]
[Required(ErrorMessage = "{0}不能为空")]
[ImporterHeader(Name = "零件号")]
public string LU { get; set; }
/// <summary>
/// 生产号
/// </summary>
[Display(Name = "现产品生产号")]
[ImporterHeader(Name = "现产品生产号")]
[Required(ErrorMessage = "{0}不能为空")]
public string PN { get; set; }
/// <summary>
/// 数量
/// </summary>
[Display(Name = "数量")]
[ImporterHeader(Name = "数量")]
public decimal Qty { get; set; }
/// <summary>
/// 结算分组号
/// </summary>
[Display(Name = "五联单号")]
[ImporterHeader(Name = "五联单号")]
[Required(ErrorMessage = "{0}不能为空")]
public string GroupNum { get; set; }
}
/// <summary>
/// 备件导入
/// </summary>
public class BeiJianImportDto
{
/// <summary>
/// 结算日期
/// </summary>
[Display(Name = "结算日期")]
[ImporterHeader(IsIgnore = true)]
public DateTime SettleDate { set; get; }
/// <summary>
/// 零件号
/// </summary>
[Display(Name = "零件号")]
[Required(ErrorMessage = "{0}不能为空")]
[ImporterHeader(Name = "零件号")]
public string LU { get; set; }
/// <summary>
/// 生产号
/// </summary>
[Display(Name = "交付识别号")]
[ImporterHeader(Name = "交付识别号")]
[Required(ErrorMessage = "{0}不能为空")]
public string PN { get; set; }
/// <summary>
/// 数量
/// </summary>
[Display(Name = "数量")]
[ImporterHeader(Name = "数量")]
public decimal Qty { get; set; }
/// <summary>
/// 结算分组号
/// </summary>
[Display(Name = "凭证号")]
[ImporterHeader(Name = "凭证号")]
[Required(ErrorMessage = "{0}不能为空")]
public string GroupNum { get; set; }
}
/// <summary>
/// 印度件导入
/// </summary>
public class YinDuJianImportDto
{
/// <summary>
/// 结算日期
/// </summary>
[Display(Name = "Delivery Date")]
[ImporterHeader(Name = "Delivery Date")]
public DateTime SettleDate { set; get; }
/// <summary>
/// 零件号
/// </summary>
[Display(Name = "Material")]
[Required(ErrorMessage = "{0}不能为空")]
[ImporterHeader(Name = "Material")]
public string LU { get; set; }
/// <summary>
/// 生产号
/// </summary>
[Display(Name = "External Delivery ID")]
[ImporterHeader(Name = "External Delivery ID")]
[Required(ErrorMessage = "{0}不能为空")]
public string PN { get; set; }
/// <summary>
/// 数量
/// </summary>
[Display(Name = "数量")]
[ImporterHeader(Name = "Item")]
public decimal Qty { get; set; }
/// <summary>
/// 结算分组号
/// </summary>
[Display(Name = "External Delivery ID")]
[ImporterHeader(Name = "External Delivery ID")]
[Required(ErrorMessage = "{0}不能为空")]
public string GroupNum { get; set; }
}
/// <summary>
/// 导入
/// </summary>

436
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs

@ -0,0 +1,436 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.LinqAsync;
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SettleAccount.Domain.BQ;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Caching;
using Win.Abp.Snowflakes;
using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.SettleAccount.CommonManagers;
using Win.Sfs.SettleAccount.Constant;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
using Win.Sfs.SettleAccount.Entities.Prices;
using Win.Sfs.SettleAccount.ExcelImporter;
using Win.Sfs.SettleAccount.ExportReports;
using Win.Sfs.SettleAccount.MaterialRelationships;
using Win.Sfs.Shared.RepositoryBase;
namespace Win.Sfs.SettleAccount.Entities.BQ;
/// <summary>
/// JISBBAC结算
/// </summary>
[AllowAnonymous]
[Route("api/settleaccount/[controller]/[action]")]
public class BBAC_SA_SERVICE : SettleAccountApplicationBase<BBAC_SA>
{
/// <summary>
/// BBAC结算仓储
/// </summary>
private readonly INormalEfCoreRepository<BBAC_SA, Guid> _bbacSaRepository;
/// <summary>
/// BBAC结算明细仓储
/// </summary>
private readonly INormalEfCoreRepository<BBAC_SA_DETAIL, Guid> _bbacSaDetailRepository;
/// <summary>
/// BBAC可结算仓储
/// </summary>
private readonly INormalEfCoreRepository<BBAC_CAN_SA, Guid> _bbacCanSaRepository;
/// <summary>
/// BBAC可结算明细仓储
/// </summary>
private readonly INormalEfCoreRepository<BBAC_CAN_SA_DETAIL, Guid> _bbacCanSaDetailRepository;
/// <summary>
/// BBAC不可结算明细仓储
/// </summary>
private readonly INormalEfCoreRepository<BBAC_NOT_SA_DETAIL, Guid> _bbacNotSaDetailRepository;
/// <summary>
/// 销售价格仓储
/// </summary>
private readonly INormalEfCoreRepository<PriceList, Guid> _priceListRepository;
/// <summary>
/// 客户零件关系仓储
/// </summary>
private readonly INormalEfCoreRepository<MaterialRelationship, Guid> _materialRelationshipRepository;
/// <summary>
/// 替换件关系仓储
/// </summary>
private readonly INormalEfCoreRepository<TB_RePartsRelationship, Guid> _tbRePartsRelationshipRepository;
/// <summary>
/// 业务类型
/// </summary>
private readonly EnumBusinessType _businessType = EnumBusinessType.JisBBAC;
/// <summary>
/// 构造
/// </summary>
public BBAC_SA_SERVICE(INormalEfCoreRepository<BBAC_SA, Guid> bbacSaRepository,
INormalEfCoreRepository<BBAC_SA_DETAIL, Guid> bbacSaDetailRepository,
INormalEfCoreRepository<BBAC_CAN_SA, Guid> bbacCanSaRepository,
INormalEfCoreRepository<BBAC_CAN_SA_DETAIL, Guid> bbacCanSaDetailRepository,
INormalEfCoreRepository<BBAC_NOT_SA_DETAIL, Guid> bbacNotSaDetailRepository,
INormalEfCoreRepository<PriceList, Guid> priceListRepository,
INormalEfCoreRepository<MaterialRelationship, Guid> materialRelationshipRepository,
INormalEfCoreRepository<TB_RePartsRelationship, Guid> tbRePartsRelationshipRepository,
IDistributedCache<BBAC_SA> cache,
IExcelImportAppService excelImportService,
ISnowflakeIdGenerator snowflakeIdGenerator,
ICommonManager commonManager
) : base(cache, excelImportService, snowflakeIdGenerator, commonManager)
{
_bbacSaRepository = bbacSaRepository;
_bbacSaDetailRepository = bbacSaDetailRepository;
_bbacCanSaRepository = bbacCanSaRepository;
_bbacCanSaDetailRepository = bbacCanSaDetailRepository;
_bbacNotSaDetailRepository = bbacNotSaDetailRepository;
_priceListRepository = priceListRepository;
_materialRelationshipRepository = materialRelationshipRepository;
_tbRePartsRelationshipRepository = tbRePartsRelationshipRepository;
}
#region 导入、导出
/// <summary>
/// 导入
/// </summary>
[HttpPost]
public async Task<string> ImportAsync([FromForm] IFormFileCollection files)
{
#region 导入数据转换、数据校验
ExportImporter _exportImporter = new ExportImporter();
var importDtos = await _exportImporter.UploadExcelImport<BBAC_SA_DETAIL_IMPORT_DTO>(files, _excelImportService);
//买单件BBAC
var importMaiDanJianHBOPDtos = importDtos.FindAll(t => t.PN.Contains("R0"));
//JisBBAC
var importHBOPDtos = importDtos.FindAll(t => t.PN.Contains("R0") == false);
var importBBACSaDetails = ObjectMapper.Map<List<BBAC_SA_DETAIL_IMPORT_DTO>, List<BBAC_SA_DETAIL>>(importHBOPDtos);
//数据校验
var checkList = new List<ErrorExportDto>();
//结算分组号
var bbacSaGroupNums = importBBACSaDetails.Select(t => t.GroupNum).Distinct();
//已存在的结算分组号
var havBBACSaGroupNums = (await _bbacSaDetailRepository.GetListAsync(t => bbacSaGroupNums.Contains(t.GroupNum))).Select(t => t.GroupNum).Distinct();
if (havBBACSaGroupNums.Any() == true)
{
foreach (var item in havBBACSaGroupNums)
{
checkList.Add(new ErrorExportDto(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, $"结算分组号{item}已存在", string.Empty));
}
}
if (checkList.Count > 0)
{
return await ExportErrorReportAsync(checkList);
}
#endregion
if (importBBACSaDetails.Any())
{
//await SaDataHandleAsync(importBBACSaDetails);
}
return ApplicationConsts.SuccessStr;
}
#endregion
#region CURD
/// <summary>
/// 获取列表
/// </summary>
[HttpPost]
public async Task<PagedResultDto<BBAC_SA_DTO>> GetListAsync(RequestDto input)
{
var entities = await _bbacSaRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true);
var totalCount = await _bbacSaRepository.GetCountByFilterAsync(input.Filters);
var dtos = ObjectMapper.Map<List<BBAC_SA>, List<BBAC_SA_DTO>>(entities);
return new PagedResultDto<BBAC_SA_DTO>(totalCount, dtos);
}
/// <summary>
/// 删除
/// </summary>
[HttpPost]
public async Task DeleteAsync(Guid id)
{
//结算主表
BBAC_SA bbacSaDelEntity;
//结算明细
List<BBAC_SA_DETAIL> bbacSaDetailDelEntitys;
//可结算主表
List<BBAC_CAN_SA> bbacCanSaDelEntitys;
//可结算明细
List<BBAC_CAN_SA_DETAIL> bbacCanSaDetailDelEntitys;
//不可结算
List<BBAC_NOT_SA_DETAIL> bbacNotSaDetailDelEntitys;
bbacSaDelEntity = await _bbacSaRepository.FindAsync(id);
if (bbacSaDelEntity == null)
{
throw new UserFriendlyException($"未获取到结算单!", "400");
}
//结算单据
string bbacSaBillNum = bbacSaDelEntity.BillNum;
bbacCanSaDelEntitys = await _bbacCanSaRepository.GetListAsync(t => t.SettleBillNum == bbacSaBillNum);
//验证可结算主表状态
if (bbacCanSaDelEntitys.Any(t => t.State != SettleBillState.))
{
throw new UserFriendlyException($"该单据可结算单状态无法删除!", "400");
}
bbacSaDetailDelEntitys = await _bbacSaDetailRepository.GetListAsync(t => t.BillNum == bbacSaBillNum);
bbacCanSaDetailDelEntitys = await _bbacCanSaDetailRepository.GetListAsync(t => t.SettleBillNum == bbacSaBillNum);
bbacNotSaDetailDelEntitys = await _bbacNotSaDetailRepository.GetListAsync(t => t.SettleBillNum == bbacSaBillNum);
//删除
await _bbacSaRepository.DeleteAsync(bbacSaDelEntity);
if (bbacSaDetailDelEntitys.Any())
{
await _bbacSaDetailRepository.DeleteManyAsync(bbacSaDetailDelEntitys);
}
if (bbacCanSaDelEntitys.Any())
{
await _bbacCanSaRepository.DeleteManyAsync(bbacCanSaDelEntitys);
}
if (bbacCanSaDetailDelEntitys.Any())
{
await _bbacCanSaDetailRepository.DeleteManyAsync(bbacCanSaDetailDelEntitys);
}
if (bbacNotSaDetailDelEntitys.Any())
{
await _bbacNotSaDetailRepository.DeleteManyAsync(bbacNotSaDetailDelEntitys);
}
}
/// <summary>
/// 删除
/// </summary>
[HttpPost]
public async Task DeleteListAsync(List<Guid> ids)
{
//结算主表
List<BBAC_SA> bbacSas = new List<BBAC_SA>();
//结算明细
List<BBAC_SA_DETAIL> bbacSaDetails = new List<BBAC_SA_DETAIL>();
//可结算主表
List<BBAC_CAN_SA> bbacCanSas = new List<BBAC_CAN_SA>();
//可结算明细
List<BBAC_CAN_SA_DETAIL> bbacCanSaDetails = new List<BBAC_CAN_SA_DETAIL>();
//不可结算
List<BBAC_NOT_SA_DETAIL> bbacNotSaDetails = new List<BBAC_NOT_SA_DETAIL>();
foreach (var id in ids)
{
try
{
var bbacSaDelItems = await GetBBACSaDelItemsAsync(id);
bbacSas.AddRange(bbacSaDelItems.bbacSas);
bbacSaDetails.AddRange(bbacSaDelItems.bbacSaDetails);
bbacCanSas.AddRange(bbacSaDelItems.bbacCanSas);
bbacCanSaDetails.AddRange(bbacSaDelItems.bbacCanSaDetails);
bbacNotSaDetails.AddRange(bbacSaDelItems.bbacNotSaDetails);
}
catch (Exception)
{
throw;
}
}
//删除
if (bbacSas.Any())
{
await _bbacSaRepository.DeleteManyAsync(bbacSas);
}
if (bbacSaDetails.Any())
{
await _bbacSaDetailRepository.DeleteManyAsync(bbacSaDetails);
}
if (bbacCanSas.Any())
{
await _bbacCanSaRepository.DeleteManyAsync(bbacCanSas);
}
if (bbacCanSaDetails.Any())
{
await _bbacCanSaDetailRepository.DeleteManyAsync(bbacCanSaDetails);
}
if (bbacNotSaDetails.Any())
{
await _bbacNotSaDetailRepository.DeleteManyAsync(bbacNotSaDetails);
}
}
#endregion
#region 私有方法
/// <summary>
/// 结算数据处理
/// </summary>
private async Task SaDataHandleAsync(List<BBAC_SA_DETAIL> bbacSaDetails)
{
//结算单号
var bbacSaBillNum = OrderNumberGenerator.GenerateOrderNumber("SA");
//结算主表
var bbacSa = new BBAC_SA()
{
BillNum = bbacSaBillNum,
State = "1",
};
//可结算单号
var bbacCanSaBillNum = OrderNumberGenerator.GenerateOrderNumber("C");
//可结算主表
var bbacCanSa = new BBAC_CAN_SA()
{
BillNum = bbacCanSaBillNum,
SettleBillNum = bbacSaBillNum,
State = SettleBillState.,
BusinessType = _businessType
};
//可结算明细
var bbacCanSaDetails = new List<BBAC_CAN_SA_DETAIL>();
//不可结算明细
var bbacNotSaDetails = new List<BBAC_NOT_SA_DETAIL>();
//客户零件关系
var materialRelationships = new List<MaterialRelationship>();
#region 处理结算数据
//销售价格
var priceListEntitys = await _priceListRepository.GetAllAsync();
bbacSaDetails.ForEach(bbacSaDetail =>
{
List<string> luList = bbacSaDetail.LU.Split(" ").ToList();
bbacSaDetail.LU = luList[0].Replace(" ", "");
if (luList.Count > 1)
{
luList.RemoveAt(0);
var luAssemble = luList.Select(t => t.Replace(" ", ""));
bbacSaDetail.LU += luAssemble.Aggregate(" ", (current, index) => current + index);
}
bbacSaDetail.BillNum = bbacSaBillNum;
bbacSaDetail.KeyCode = bbacSaDetail.PN + bbacSaDetail.LU;
//根据物料号、结算日期获取价格
var priceListEntity = priceListEntitys.Find(t => t.LU == bbacSaDetail.LU && bbacSaDetail.SettleDate > t.BeginTime && bbacSaDetail.SettleDate < t.EndTime);
bbacSaDetail.Price = priceListEntity?.Price ?? default;
});
//导入的零件号集合
var importPubSaLUs = bbacSaDetails.Select(t => t.LU).Distinct();
var materialRelationshipEntitys = await _materialRelationshipRepository.GetListAsync(t => importPubSaLUs.Contains(t.SettleMaterialCode));
var materialRelationshipEntitySettleMaterialCodes = materialRelationshipEntitys.Select(t => t.SettleMaterialCode).Distinct();
/*
* ()
*
* 6-
*/
var noExistSettleMaterialCodes = importPubSaLUs.Except(materialRelationshipEntitySettleMaterialCodes);
noExistSettleMaterialCodes.ForEach(t =>
{
var materialRelationship = new MaterialRelationship(GuidGenerator.Create(), t.Replace(" ", "-"), "", t, _businessType.ToString());
materialRelationships.Add(materialRelationship);
});
#endregion
#region 入库数据赋值
//根据价格区分结算、不可结算
var bbacSaDetailsCanSes = bbacSaDetails.FindAll(t => t.Price != default);
var bbacSaDetailsNotCanSes = bbacSaDetails.FindAll(t => t.Price == default);
//可结算明细
bbacCanSaDetails = ObjectMapper.Map<List<BBAC_SA_DETAIL>, List<BBAC_CAN_SA_DETAIL>>(bbacSaDetailsCanSes);
//不可结算明细
bbacNotSaDetails = ObjectMapper.Map<List<BBAC_SA_DETAIL>, List<BBAC_NOT_SA_DETAIL>>(bbacSaDetailsNotCanSes);
#endregion
#region 添加入库
await _bbacSaRepository.InsertAsync(bbacSa);
await _bbacSaDetailRepository.InsertManyAsync(bbacSaDetails);
if (bbacCanSaDetails.Count > 0)
{
bbacCanSa.InvGroupNum = bbacCanSaDetails.Count.ToString();
bbacCanSaDetails.ForEach(bbacCanSaDetail =>
{
bbacCanSaDetail.BillNum = bbacCanSaDetail.InvGroupNum = bbacCanSaBillNum;
bbacCanSaDetail.BusinessType = _businessType;
});
await _bbacCanSaRepository.InsertAsync(bbacCanSa);
await _bbacCanSaDetailRepository.InsertManyAsync(bbacCanSaDetails);
}
if (bbacNotSaDetails.Count > 0)
{
bbacNotSaDetails.ForEach(bbacNotSaDetail =>
{
bbacNotSaDetail.BusinessType = _businessType;
});
await _bbacNotSaDetailRepository.InsertManyAsync(bbacNotSaDetails);
}
if (materialRelationships.Count > 0)
{
await _materialRelationshipRepository.InsertManyAsync(materialRelationships);
}
#endregion
}
/// <summary>
/// 获取结算关联项
/// </summary>
private async Task<(List<BBAC_SA> bbacSas, List<BBAC_SA_DETAIL> bbacSaDetails, List<BBAC_CAN_SA> bbacCanSas, List<BBAC_CAN_SA_DETAIL> bbacCanSaDetails, List<BBAC_NOT_SA_DETAIL> bbacNotSaDetails)> GetBBACSaDelItemsAsync(Guid id)
{
//结算主表
List<BBAC_SA> bbacSas = new List<BBAC_SA>();
//结算明细
List<BBAC_SA_DETAIL> bbacSaDetails = new List<BBAC_SA_DETAIL>();
//可结算主表
List<BBAC_CAN_SA> bbacCanSas = new List<BBAC_CAN_SA>();
//可结算明细
List<BBAC_CAN_SA_DETAIL> bbacCanSaDetails = new List<BBAC_CAN_SA_DETAIL>();
//不可结算
List<BBAC_NOT_SA_DETAIL> bbacNotSaDetails = new List<BBAC_NOT_SA_DETAIL>();
var bbacSaEntity = await _bbacSaRepository.FirstOrDefaultAsync(t => t.Id.Equals(id));
if (bbacSaEntity != null)
{
//结算单据
string bbacSaBillNum = bbacSaEntity.BillNum;
bbacCanSas = await _bbacCanSaRepository.GetListAsync(t => t.SettleBillNum == bbacSaBillNum);
//验证可结算主表状态
if (bbacCanSas.Any() && bbacCanSas.Any(t => t.State != SettleBillState.))
{
throw new UserFriendlyException($"{bbacSaBillNum} 该单据可结算单状态无法删除!", "400");
}
bbacSas.Add(bbacSaEntity);
bbacSaDetails = await _bbacSaDetailRepository.GetListAsync(t => t.BillNum == bbacSaBillNum);
bbacCanSaDetails = await _bbacCanSaDetailRepository.GetListAsync(t => t.SettleBillNum == bbacSaBillNum);
bbacNotSaDetails = await _bbacNotSaDetailRepository.GetListAsync(t => t.SettleBillNum == bbacSaBillNum);
}
return (bbacSas, bbacSaDetails, bbacCanSas, bbacCanSaDetails, bbacNotSaDetails);
}
#endregion
}

4
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SE_DETAIL_Service.cs

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SettleAccount.Domain.BQ;
using Shouldly;
@ -47,7 +47,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
[HttpPost]
public async Task<string> ExportAsync(RequestDto input)
{
string fileName = $"BBAC发运单_{Guid.NewGuid()}.xlsx";
string fileName = $"JisBBAC发运数据_{Guid.NewGuid()}.xlsx";
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true);
var dtos = ObjectMapper.Map<List<BBAC_SE_DETAIL>, List<BBAC_SE_DETAIL_EXPORT_DTO>>(entities);

349
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs

@ -1,28 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using SettleAccount.Domain.BQ;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Repositories;
using Volo.Abp;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Caching;
using Win.Abp.Snowflakes;
using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.CommonManagers;
using Win.Sfs.SettleAccount.Entities.Prices;
using Win.Sfs.SettleAccount.MaterialRelationships;
using Win.Sfs.Shared.RepositoryBase;
using System;
using System.Linq;
using Microsoft.AspNetCore.Http;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.SettleAccount.CommonManagers;
using Win.Sfs.SettleAccount.Constant;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
using Win.Sfs.SettleAccount.Entities.Prices;
using Win.Sfs.SettleAccount.ExcelImporter;
using Win.Sfs.SettleAccount.ExportReports;
using OfficeOpenXml;
using OfficeOpenXml.Core;
using Win.Sfs.SettleAccount.MaterialRelationships;
using Win.Sfs.Shared.RepositoryBase;
namespace Win.Sfs.SettleAccount.Entities.BQ;
@ -73,6 +71,11 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
/// </summary>
private readonly INormalEfCoreRepository<TB_RePartsRelationship, Guid> _tbRePartsRelationshipRepository;
/// <summary>
/// 业务类型
/// </summary>
private readonly EnumBusinessType _businessType = EnumBusinessType.JisHBPO;
/// <summary>
/// 构造
/// </summary>
@ -107,10 +110,184 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
[HttpPost]
public async Task<string> ImportAsync([FromForm] IFormFileCollection files)
{
//业务类型
var businessType = EnumBusinessType.JisHBPO;
#region 导入数据转换、数据校验
ExportImporter _exportImporter = new ExportImporter();
var result = await _exportImporter.UploadExcelImport<HBPO_SA_DETAIL_IMPORT_DTO>(files, _excelImportService);
var importHBOPSaDetails = ObjectMapper.Map<List<HBPO_SA_DETAIL_IMPORT_DTO>, List<HBPO_SA_DETAIL>>(result);
//Site包含CN1 亦庄
//Site包含CN5 顺义
var importCN1HBOPSaDetails = importHBOPSaDetails.FindAll(t => t.Site.Contains("CN1"));
var importCN5HBOPSaDetails = importHBOPSaDetails.FindAll(t => t.Site.Contains("CN5"));
//数据校验
var checkList = new List<ErrorExportDto>();
//结算分组号
var hbpoSaGroupNums = importHBOPSaDetails.Select(t => t.GroupNum).Distinct();
//已存在的结算分组号
var havHBPOSaGroupNums = (await _hbpoSaDetailRepository.GetListAsync(t => hbpoSaGroupNums.Contains(t.GroupNum))).Select(t => t.GroupNum).Distinct();
if (havHBPOSaGroupNums.Any() == true)
{
foreach (var item in havHBPOSaGroupNums)
{
checkList.Add(new ErrorExportDto(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, $"结算分组号{item}已存在", string.Empty));
}
}
if (checkList.Count > 0)
{
return await ExportErrorReportAsync(checkList);
}
#endregion
if (importCN1HBOPSaDetails.Any())
{
await SaDataHandleAsync(importCN1HBOPSaDetails, "CN1");
}
if (importCN5HBOPSaDetails.Any())
{
await SaDataHandleAsync(importCN5HBOPSaDetails, "CN5");
}
return ApplicationConsts.SuccessStr;
}
#endregion
#region CURD
/// <summary>
/// 获取列表
/// </summary>
[HttpPost]
public async Task<PagedResultDto<HBPO_SA_DTO>> GetListAsync(RequestDto input)
{
var entities = await _hbpoSaRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true);
var totalCount = await _hbpoSaRepository.GetCountByFilterAsync(input.Filters);
var dtos = ObjectMapper.Map<List<HBPO_SA>, List<HBPO_SA_DTO>>(entities);
return new PagedResultDto<HBPO_SA_DTO>(totalCount, dtos);
}
/// <summary>
/// 删除
/// </summary>
[HttpPost]
public async Task DeleteAsync(Guid id)
{
//结算主表
HBPO_SA hbpoSaDelEntity;
//结算明细
List<HBPO_SA_DETAIL> hbpoSaDetailDelEntitys;
//可结算主表
List<HBPO_CAN_SA> hbpoCanSaDelEntitys;
//可结算明细
List<HBPO_CAN_SA_DETAIL> hbpoCanSaDetailDelEntitys;
//不可结算
List<HBPO_NOT_SA_DETAIL> hbpoNotSaDetailDelEntitys;
hbpoSaDelEntity = await _hbpoSaRepository.FindAsync(id);
if (hbpoSaDelEntity == null)
{
throw new UserFriendlyException($"未获取到结算单!", "400");
}
//结算单据
string hbpoSaBillNum = hbpoSaDelEntity.BillNum;
hbpoCanSaDelEntitys = await _hbpoCanSaRepository.GetListAsync(t => t.SettleBillNum == hbpoSaBillNum);
//验证可结算主表状态
if (hbpoCanSaDelEntitys.Any(t => t.State != SettleBillState.))
{
throw new UserFriendlyException($"该单据可结算单状态无法删除!", "400");
}
hbpoSaDetailDelEntitys = await _hbpoSaDetailRepository.GetListAsync(t => t.BillNum == hbpoSaBillNum);
hbpoCanSaDetailDelEntitys = await _hbpoCanSaDetailRepository.GetListAsync(t => t.SettleBillNum == hbpoSaBillNum);
hbpoNotSaDetailDelEntitys = await _hbpoNotSaDetailRepository.GetListAsync(t => t.SettleBillNum == hbpoSaBillNum);
//删除
await _hbpoSaRepository.DeleteAsync(hbpoSaDelEntity);
if (hbpoSaDetailDelEntitys.Any())
{
await _hbpoSaDetailRepository.DeleteManyAsync(hbpoSaDetailDelEntitys);
}
if (hbpoCanSaDelEntitys.Any())
{
await _hbpoCanSaRepository.DeleteManyAsync(hbpoCanSaDelEntitys);
}
if (hbpoCanSaDetailDelEntitys.Any())
{
await _hbpoCanSaDetailRepository.DeleteManyAsync(hbpoCanSaDetailDelEntitys);
}
if (hbpoNotSaDetailDelEntitys.Any())
{
await _hbpoNotSaDetailRepository.DeleteManyAsync(hbpoNotSaDetailDelEntitys);
}
}
/// <summary>
/// 删除
/// </summary>
[HttpPost]
public async Task DeleteListAsync(List<Guid> ids)
{
//结算主表
List<HBPO_SA> hbpoSas = new List<HBPO_SA>();
//结算明细
List<HBPO_SA_DETAIL> hbpoSaDetails = new List<HBPO_SA_DETAIL>();
//可结算主表
List<HBPO_CAN_SA> hbpoCanSas = new List<HBPO_CAN_SA>();
//可结算明细
List<HBPO_CAN_SA_DETAIL> hbpoCanSaDetails = new List<HBPO_CAN_SA_DETAIL>();
//不可结算
List<HBPO_NOT_SA_DETAIL> hbpoNotSaDetails = new List<HBPO_NOT_SA_DETAIL>();
foreach (var id in ids)
{
try
{
var hbpoSaDelItems = await GetHBPOSaDelItemsAsync(id);
hbpoSas.AddRange(hbpoSaDelItems.hbpoSas);
hbpoSaDetails.AddRange(hbpoSaDelItems.hbpoSaDetails);
hbpoCanSas.AddRange(hbpoSaDelItems.hbpoCanSas);
hbpoCanSaDetails.AddRange(hbpoSaDelItems.hbpoCanSaDetails);
hbpoNotSaDetails.AddRange(hbpoSaDelItems.hbpoNotSaDetails);
}
catch (Exception)
{
throw;
}
}
//删除
if (hbpoSas.Any())
{
await _hbpoSaRepository.DeleteManyAsync(hbpoSas);
}
if (hbpoSaDetails.Any())
{
await _hbpoSaDetailRepository.DeleteManyAsync(hbpoSaDetails);
}
if (hbpoCanSas.Any())
{
await _hbpoCanSaRepository.DeleteManyAsync(hbpoCanSas);
}
if (hbpoCanSaDetails.Any())
{
await _hbpoCanSaDetailRepository.DeleteManyAsync(hbpoCanSaDetails);
}
if (hbpoNotSaDetails.Any())
{
await _hbpoNotSaDetailRepository.DeleteManyAsync(hbpoNotSaDetails);
}
}
#endregion
#region 私有方法
/// <summary>
/// 结算数据处理
/// </summary>
private async Task SaDataHandleAsync(List<HBPO_SA_DETAIL> hbpoSaDetails, string site)
{
//结算单号
var hbpoSaBillNum = OrderNumberGenerator.GenerateOrderNumber("SA");
//结算主表
@ -118,10 +295,9 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
{
BillNum = hbpoSaBillNum,
State = "1",
BusinessType = businessType
BusinessType = _businessType,
Site = site,
};
//结算明细
var hbpoSaDetails = new List<HBPO_SA_DETAIL>();
//可结算单号
var hbpoCanSaBillNum = OrderNumberGenerator.GenerateOrderNumber("C");
//可结算主表
@ -130,7 +306,8 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
BillNum = hbpoCanSaBillNum,
SettleBillNum = hbpoSaBillNum,
State = SettleBillState.,
BusinessType = businessType
BusinessType = _businessType,
Site = site,
};
//可结算明细
var hbpoCanSaDetails = new List<HBPO_CAN_SA_DETAIL>();
@ -139,61 +316,32 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
//客户零件关系
var materialRelationships = new List<MaterialRelationship>();
#region 导入数据转换、数据校验
ExportImporter _exportImporter = new ExportImporter();
var result = await _exportImporter.UploadExcelImport<HBPO_SA_DETAIL_IMPORT_DTO>(files, _excelImportService);
var importPubSaDetails = ObjectMapper.Map<List<HBPO_SA_DETAIL_IMPORT_DTO>, List<HBPO_SA_DETAIL>>(result);
return "";
//结算分组号
var hbpoSaGroupNums = importPubSaDetails.Select(t => t.GroupNum).Distinct();
//已存在的结算分组号
var havPubSaGroupNums = (await _hbpoSaDetailRepository.GetListAsync(t => hbpoSaGroupNums.Contains(t.GroupNum))).Select(t => t.GroupNum).Distinct();
if (havPubSaGroupNums.Any() == true)
{
foreach (var item in havPubSaGroupNums)
{
checkList.Add(new ErrorExportDto(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, $"结算分组号{item}已存在", string.Empty));
}
//throw new UserFriendlyException($"导入失败,结算分组号({string.Join(",", havPubSaGroupNums)})已存在", "400");
}
if (checkList.Count > 0)
{
return await ExportErrorReportAsync(checkList);
}
#endregion
#region 处理结算数据
//销售价格
var priceListEntitys = await _priceListRepository.GetAllAsync();
importPubSaDetails.ForEach(importPubSaDetail =>
hbpoSaDetails.ForEach(hbpoSaDetail =>
{
List<string> luList = importPubSaDetail.LU.Split(" ").ToList();
importPubSaDetail.LU = luList[0].Replace(" ", "");
List<string> luList = hbpoSaDetail.LU.Split(" ").ToList();
hbpoSaDetail.LU = luList[0].Replace(" ", "");
if (luList.Count > 1)
{
luList.RemoveAt(0);
var luAssemble = luList.Select(t => t.Replace(" ", ""));
importPubSaDetail.LU += luAssemble.Aggregate(" ", (current, index) => current + index);
hbpoSaDetail.LU += luAssemble.Aggregate(" ", (current, index) => current + index);
}
importPubSaDetail.BillNum = hbpoSaBillNum;
//importPubSaDetail.Site = "XX工厂";
importPubSaDetail.KeyCode = importPubSaDetail.PN + importPubSaDetail.LU;
hbpoSaDetail.BillNum = hbpoSaBillNum;
hbpoSaDetail.KeyCode = hbpoSaDetail.PN + hbpoSaDetail.LU;
//根据物料号、结算日期获取价格
var priceListEntity = priceListEntitys.Find(t => t.LU == importPubSaDetail.LU && importPubSaDetail.SettleDate > t.BeginTime && importPubSaDetail.SettleDate < t.EndTime);
importPubSaDetail.Price = priceListEntity?.Price ?? 0;
importPubSaDetail.BusinessType = businessType;
var priceListEntity = priceListEntitys.Find(t => t.LU == hbpoSaDetail.LU && hbpoSaDetail.SettleDate > t.BeginTime && hbpoSaDetail.SettleDate < t.EndTime);
hbpoSaDetail.Price = priceListEntity?.Price ?? default;
hbpoSaDetail.BusinessType = _businessType;
});
//导入的零件号集合
var importPubSaLUs = importPubSaDetails.Select(t => t.LU).Distinct();
var importPubSaLUs = hbpoSaDetails.Select(t => t.LU).Distinct();
var materialRelationshipEntitys = await _materialRelationshipRepository.GetListAsync(t => importPubSaLUs.Contains(t.SettleMaterialCode));
var materialRelationshipEntitySettleMaterialCodes = materialRelationshipEntitys.Select(t => t.SettleMaterialCode).Distinct();
@ -206,19 +354,15 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
noExistSettleMaterialCodes.ForEach(t =>
{
var materialRelationship = new MaterialRelationship(GuidGenerator.Create(), t.Replace(" ", "-"), "", t, businessType.ToString());
var materialRelationship = new MaterialRelationship(GuidGenerator.Create(), t.Replace(" ", "-"), "", t, _businessType.ToString());
materialRelationships.Add(materialRelationship);
});
#endregion
#region 入库数据赋值
//结算明细
hbpoSaDetails = importPubSaDetails;
//不可结算 结算分组号码(根据价格区分结算、不可结算)
var hbpoNotSaGroupNums = hbpoSaDetails.FindAll(t => t.Price == default(decimal)).Select(t => t.GroupNum).Distinct();
var hbpoSaDetailsCanSes = hbpoSaDetails.FindAll(t => hbpoNotSaGroupNums.Contains(t.GroupNum) == false);
var hbpoSaDetailsNotCanSes = hbpoSaDetails.FindAll(t => hbpoNotSaGroupNums.Contains(t.GroupNum) == true);
//根据价格区分结算、不可结算
var hbpoSaDetailsCanSes = hbpoSaDetails.FindAll(t => t.Price != default);
var hbpoSaDetailsNotCanSes = hbpoSaDetails.FindAll(t => t.Price == default);
//可结算明细
hbpoCanSaDetails = ObjectMapper.Map<List<HBPO_SA_DETAIL>, List<HBPO_CAN_SA_DETAIL>>(hbpoSaDetailsCanSes);
@ -235,7 +379,7 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
hbpoCanSaDetails.ForEach(hbpoCanSaDetail =>
{
hbpoCanSaDetail.BillNum = hbpoCanSaDetail.InvGroupNum = hbpoCanSaBillNum;
hbpoCanSaDetail.BusinessType = businessType;
hbpoCanSaDetail.BusinessType = _businessType;
});
await _hbpoCanSaRepository.InsertAsync(hbpoCanSa);
@ -245,7 +389,7 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
{
hbpoNotSaDetails.ForEach(hbpoNotSaDetail =>
{
hbpoNotSaDetail.BusinessType = businessType;
hbpoNotSaDetail.BusinessType = _businessType;
});
await _hbpoNotSaDetailRepository.InsertManyAsync(hbpoNotSaDetails);
@ -255,79 +399,44 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
await _materialRelationshipRepository.InsertManyAsync(materialRelationships);
}
#endregion
return ApplicationConsts.SuccessStr;
}
#endregion
#region CURD
/// <summary>
/// 获取列表
/// 获取结算关联项
/// </summary>
[HttpPost]
public async Task<PagedResultDto<HBPO_SA_DTO>> GetListAsync(RequestDto input)
{
var entities = await _hbpoSaRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true);
var totalCount = await _hbpoSaRepository.GetCountByFilterAsync(input.Filters);
var dtos = ObjectMapper.Map<List<HBPO_SA>, List<HBPO_SA_DTO>>(entities);
return new PagedResultDto<HBPO_SA_DTO>(totalCount, dtos);
}
/// <summary>
/// 删除
/// </summary>
[HttpPost]
public async Task DeleteAsync(Guid id)
private async Task<(List<HBPO_SA> hbpoSas, List<HBPO_SA_DETAIL> hbpoSaDetails, List<HBPO_CAN_SA> hbpoCanSas, List<HBPO_CAN_SA_DETAIL> hbpoCanSaDetails, List<HBPO_NOT_SA_DETAIL> hbpoNotSaDetails)> GetHBPOSaDelItemsAsync(Guid id)
{
//结算主表
HBPO_SA hbpoSaDelEntity;
List<HBPO_SA> hbpoSas = new List<HBPO_SA>();
//结算明细
List<HBPO_SA_DETAIL> hbpoSaDetailDelEntitys;
List<HBPO_SA_DETAIL> hbpoSaDetails = new List<HBPO_SA_DETAIL>();
//可结算主表
List<HBPO_CAN_SA> hbpoCanSaDelEntitys;
List<HBPO_CAN_SA> hbpoCanSas = new List<HBPO_CAN_SA>();
//可结算明细
List<HBPO_CAN_SA_DETAIL> hbpoCanSaDetailDelEntitys;
List<HBPO_CAN_SA_DETAIL> hbpoCanSaDetails = new List<HBPO_CAN_SA_DETAIL>();
//不可结算
List<HBPO_NOT_SA_DETAIL> hbpoNotSaDetailDelEntitys;
List<HBPO_NOT_SA_DETAIL> hbpoNotSaDetails = new List<HBPO_NOT_SA_DETAIL>();
hbpoSaDelEntity = await _hbpoSaRepository.FindAsync(id);
if (hbpoSaDelEntity == null)
var hbpoSaEntity = await _hbpoSaRepository.FirstOrDefaultAsync(t => t.Id.Equals(id));
if (hbpoSaEntity != null)
{
throw new UserFriendlyException($"未获取到结算单!", "400");
}
//结算单据
string hbpoSaBillNum = hbpoSaDelEntity.BillNum;
string hbpoSaBillNum = hbpoSaEntity.BillNum;
hbpoCanSaDelEntitys = await _hbpoCanSaRepository.GetListAsync(t => t.SettleBillNum == hbpoSaBillNum);
hbpoCanSas = await _hbpoCanSaRepository.GetListAsync(t => t.SettleBillNum == hbpoSaBillNum);
//验证可结算主表状态
if (hbpoCanSaDelEntitys.Any(t => t.State != SettleBillState.))
if (hbpoCanSas.Any() && hbpoCanSas.Any(t => t.State != SettleBillState.))
{
throw new UserFriendlyException($"该单据可结算单状态无法删除!", "400");
throw new UserFriendlyException($"{hbpoSaBillNum} 该单据可结算单状态无法删除!", "400");
}
hbpoSaDetailDelEntitys = await _hbpoSaDetailRepository.GetListAsync(t => t.BillNum == hbpoSaBillNum);
hbpoCanSaDetailDelEntitys = await _hbpoCanSaDetailRepository.GetListAsync(t => t.SettleBillNum == hbpoSaBillNum);
hbpoNotSaDetailDelEntitys = await _hbpoNotSaDetailRepository.GetListAsync(t => t.SettleBillNum == hbpoSaBillNum);
//删除
await _hbpoSaRepository.DeleteAsync(hbpoSaDelEntity);
if (hbpoSaDetailDelEntitys.Any())
{
await _hbpoSaDetailRepository.DeleteManyAsync(hbpoSaDetailDelEntitys);
}
if (hbpoCanSaDelEntitys.Any())
{
await _hbpoCanSaRepository.DeleteManyAsync(hbpoCanSaDelEntitys);
}
if (hbpoCanSaDetailDelEntitys.Any())
{
await _hbpoCanSaDetailRepository.DeleteManyAsync(hbpoCanSaDetailDelEntitys);
}
if (hbpoNotSaDetailDelEntitys.Any())
{
await _hbpoNotSaDetailRepository.DeleteManyAsync(hbpoNotSaDetailDelEntitys);
hbpoSas.Add(hbpoSaEntity);
hbpoSaDetails = await _hbpoSaDetailRepository.GetListAsync(t => t.BillNum == hbpoSaBillNum);
hbpoCanSaDetails = await _hbpoCanSaDetailRepository.GetListAsync(t => t.SettleBillNum == hbpoSaBillNum);
hbpoNotSaDetails = await _hbpoNotSaDetailRepository.GetListAsync(t => t.SettleBillNum == hbpoSaBillNum);
}
return (hbpoSas, hbpoSaDetails, hbpoCanSas, hbpoCanSaDetails, hbpoNotSaDetails);
}
#endregion
}

4
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SE_DETAIL_SERVICE.cs

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SettleAccount.Domain.BQ;
using Shouldly;
@ -44,7 +44,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
[HttpPost]
public async Task<string> ExportAsync(RequestDto input)
{
string fileName = $"HBPO发运单_{Guid.NewGuid()}.xlsx";
string fileName = $"JisHBPO发运数据_{Guid.NewGuid()}.xlsx";
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true);
var dtos = ObjectMapper.Map<List<HBPO_SE_DETAIL>, List<HBPO_SE_DETAIL_EXPORT_DTO>>(entities);

322
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs

@ -1,8 +1,10 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Threading.Tasks;
using Magicodes.ExporterAndImporter.Core.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
@ -107,7 +109,36 @@ public class PUB_SA_SERVICE : SettleAccountApplicationBase<PUB_SA>
[HttpPost]
public async Task<string> ImportByBusinessTypeAsync([FromForm] PUB_SAImportRequestDto pubSaImportRequestDto)
{
return await ImportAsync(pubSaImportRequestDto.Files, pubSaImportRequestDto.BusinessType);
string result = string.Empty;
switch (pubSaImportRequestDto.BusinessType)
{
case EnumBusinessType.None:
break;
case EnumBusinessType.JisBBAC:
break;
case EnumBusinessType.JisHBPO:
break;
case EnumBusinessType.ZhiGongJianBBAC:
result = await ImportZhiGongJianBBACAsync(pubSaImportRequestDto.Files);
break;
case EnumBusinessType.ZhiGongJianHBPO:
result = await ImportZhiGongJianHBPOAsync(pubSaImportRequestDto.Files);
break;
case EnumBusinessType.MaiDanJianBBAC:
break;
case EnumBusinessType.MaiDanJianHBPO:
result = await ImportMaiDanJianHBPOAsync(pubSaImportRequestDto.Files);
break;
case EnumBusinessType.BeiJian:
result = await ImportBeiJianAsync(pubSaImportRequestDto.Files);
break;
case EnumBusinessType.YinDuJian:
result = await ImportYinDuJianAsync(pubSaImportRequestDto.Files);
break;
default:
break;
}
return result;
}
#endregion
@ -242,6 +273,7 @@ public class PUB_SA_SERVICE : SettleAccountApplicationBase<PUB_SA>
/// <summary>
/// 导入
/// </summary>
[Obsolete(message: "过时废弃")]
private async Task<string> ImportAsync([FromForm] IFormFileCollection files, EnumBusinessType businessType)
{
//数据校验
@ -393,6 +425,290 @@ public class PUB_SA_SERVICE : SettleAccountApplicationBase<PUB_SA>
return ApplicationConsts.SuccessStr;
}
/// <summary>
/// 直供件BBAC导入
/// </summary>
private async Task<string> ImportZhiGongJianBBACAsync([FromForm] IFormFileCollection files)
{
#region 导入数据转换
ExportImporter _exportImporter = new ExportImporter();
var importResults = await _exportImporter.UploadExcelImport<ZhiGongJianBBACImportDto>(files, _excelImportService);
var importPubSaDetails = ObjectMapper.Map<List<ZhiGongJianBBACImportDto>, List<PUB_SA_DETAIL>>(importResults);
#endregion
#region 数据校验
var checkList = await CheckAsync(importPubSaDetails);
if (checkList.Count > 0)
{
return await ExportErrorReportAsync(checkList);
}
#endregion
return await SaDataHandleAsync(importPubSaDetails, EnumBusinessType.ZhiGongJianBBAC);
}
/// <summary>
/// 直供件HBPO导入
/// </summary>
private async Task<string> ImportZhiGongJianHBPOAsync([FromForm] IFormFileCollection files)
{
#region 导入数据转换
ExportImporter _exportImporter = new ExportImporter();
var importResults = await _exportImporter.UploadExcelImport<ZhiGongJianHBPOImportDto>(files, _excelImportService);
//截取结算分组前8位为结算日期
importResults.ForEach(importResult =>
{
importResult.SettleDate = DateTime.ParseExact(importResult.GroupNum.Substring(0, 8), "yyyyMMdd", CultureInfo.InvariantCulture);
});
var importPubSaDetails = ObjectMapper.Map<List<ZhiGongJianHBPOImportDto>, List<PUB_SA_DETAIL>>(importResults);
#endregion
#region 数据校验
var checkList = await CheckAsync(importPubSaDetails);
if (checkList.Count > 0)
{
return await ExportErrorReportAsync(checkList);
}
#endregion
return await SaDataHandleAsync(importPubSaDetails, EnumBusinessType.ZhiGongJianHBPO);
}
/// <summary>
/// 买单件HBPO导入
/// </summary>
private async Task<string> ImportMaiDanJianHBPOAsync([FromForm] IFormFileCollection files)
{
#region 导入数据转换
ExportImporter _exportImporter = new ExportImporter();
var importResults = await _exportImporter.UploadExcelImport<MaiDanJianHBPOImportDto>(files, _excelImportService);
importResults.ForEach(importResult =>
{
importResult.SettleDate = DateTime.Now;
});
var importPubSaDetails = ObjectMapper.Map<List<MaiDanJianHBPOImportDto>, List<PUB_SA_DETAIL>>(importResults);
#endregion
#region 数据校验
var checkList = await CheckAsync(importPubSaDetails);
if (checkList.Count > 0)
{
return await ExportErrorReportAsync(checkList);
}
#endregion
return await SaDataHandleAsync(importPubSaDetails, EnumBusinessType.BeiJian);
}
/// <summary>
/// 备件导入
/// </summary>
private async Task<string> ImportBeiJianAsync([FromForm] IFormFileCollection files)
{
#region 导入数据转换
ExportImporter _exportImporter = new ExportImporter();
var importResults = await _exportImporter.UploadExcelImport<BeiJianImportDto>(files, _excelImportService);
importResults.ForEach(importResult =>
{
importResult.SettleDate = DateTime.Now;
});
var importPubSaDetails = ObjectMapper.Map<List<BeiJianImportDto>, List<PUB_SA_DETAIL>>(importResults);
#endregion
#region 数据校验
var checkList = await CheckAsync(importPubSaDetails);
if (checkList.Count > 0)
{
return await ExportErrorReportAsync(checkList);
}
#endregion
return await SaDataHandleAsync(importPubSaDetails, EnumBusinessType.BeiJian);
}
/// <summary>
/// 印度件导入
/// </summary>
private async Task<string> ImportYinDuJianAsync([FromForm] IFormFileCollection files)
{
#region 导入数据转换
ExportImporter _exportImporter = new ExportImporter();
var importResults = await _exportImporter.UploadExcelImport<YinDuJianImportDto>(files, _excelImportService);
var importPubSaDetails = ObjectMapper.Map<List<YinDuJianImportDto>, List<PUB_SA_DETAIL>>(importResults);
#endregion
#region 数据校验
var checkList = await CheckAsync(importPubSaDetails);
if (checkList.Count > 0)
{
return await ExportErrorReportAsync(checkList);
}
#endregion
return await SaDataHandleAsync(importPubSaDetails, EnumBusinessType.YinDuJian);
}
/// <summary>
/// 数据校验
/// </summary>
private async Task<List<ErrorExportDto>> CheckAsync(List<PUB_SA_DETAIL> pubSaDetails)
{
#region 数据校验
//数据校验
var checkList = new List<ErrorExportDto>();
//结算分组号
var pubSaGroupNums = pubSaDetails.Select(t => t.GroupNum).Distinct();
//已存在的结算分组号
var havPubSaGroupNums = (await _pubSaDetailRepository.GetListAsync(t => pubSaGroupNums.Contains(t.GroupNum))).Select(t => t.GroupNum).Distinct();
if (havPubSaGroupNums.Any() == true)
{
foreach (var item in havPubSaGroupNums)
{
checkList.Add(new ErrorExportDto(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, $"结算分组号{item}已存在", string.Empty));
}
}
return checkList;
#endregion
}
/// <summary>
/// 结算数据处理
/// </summary>
private async Task<string> SaDataHandleAsync(List<PUB_SA_DETAIL> pubSaDetails, EnumBusinessType businessType)
{
//客户零件关系
var materialRelationships = new List<MaterialRelationship>();
#region 处理结算数据
//销售价格
var priceListEntitys = await _priceListRepository.GetAllAsync();
pubSaDetails.ForEach(importPubSaDetail =>
{
List<string> luList = importPubSaDetail.LU.Split(" ").ToList();
importPubSaDetail.LU = luList[0].Replace(" ", "");
if (luList.Count > 1)
{
luList.RemoveAt(0);
var luAssemble = luList.Select(t => t.Replace(" ", ""));
importPubSaDetail.LU += luAssemble.Aggregate(" ", (current, index) => current + index);
}
importPubSaDetail.BusinessType = businessType;
importPubSaDetail.Site = "XX工厂";
importPubSaDetail.KeyCode = importPubSaDetail.PN + importPubSaDetail.LU;
//根据物料号、结算日期获取价格
var priceListEntity = priceListEntitys.Find(t => t.LU == importPubSaDetail.LU && importPubSaDetail.SettleDate > t.BeginTime && importPubSaDetail.SettleDate < t.EndTime);
importPubSaDetail.Price = priceListEntity?.Price ?? 0;
});
//导入的零件号集合
var importPubSaLUs = pubSaDetails.Select(t => t.LU).Distinct();
var materialRelationshipEntitys = await _materialRelationshipRepository.GetListAsync(t => importPubSaLUs.Contains(t.SettleMaterialCode));
var materialRelationshipEntitySettleMaterialCodes = materialRelationshipEntitys.Select(t => t.SettleMaterialCode).Distinct();
/*
* ()
*
* 6-
*/
var noExistSettleMaterialCodes = importPubSaLUs.Except(materialRelationshipEntitySettleMaterialCodes);
noExistSettleMaterialCodes.ForEach(t =>
{
var materialRelationship = new MaterialRelationship(GuidGenerator.Create(), t.Replace(" ", "-"), "", t, businessType.ToString());
materialRelationships.Add(materialRelationship);
});
#endregion
#region 添加入库
await SeDataEntryAsync(pubSaDetails);
if (materialRelationships.Count > 0)
{
await _materialRelationshipRepository.InsertManyAsync(materialRelationships);
}
#endregion
return ApplicationConsts.SuccessStr;
}
/// <summary>
/// 结算数据入库
/// </summary>
private async Task SeDataEntryAsync(List<PUB_SA_DETAIL> pubSaDetails)
{
//业务类型
EnumBusinessType businessType = pubSaDetails.First().BusinessType;
//结算单号
var pubSaBillNum = OrderNumberGenerator.GenerateOrderNumber("SA");
//结算主表
var pubSa = new PUB_SA()
{
BillNum = pubSaBillNum,
State = "1",
BusinessType = businessType
};
//可结算单号
var pubCanSaBillNum = OrderNumberGenerator.GenerateOrderNumber("C");
//可结算主表
var pubCanSa = new PUB_CAN_SA()
{
BillNum = pubCanSaBillNum,
SettleBillNum = pubSaBillNum,
State = SettleBillState.,
BusinessType = businessType
};
#region 入库数据赋值
pubSaDetails.ForEach(pubSaDetail =>
{
pubSaDetail.BillNum = pubSaBillNum;
});
//不可结算 结算分组号码(根据价格区分结算、不可结算)
var pubNotSaGroupNums = pubSaDetails.FindAll(t => t.Price == default(decimal)).Select(t => t.GroupNum).Distinct();
var pubSaDetailsCanSes = pubSaDetails.FindAll(t => pubNotSaGroupNums.Contains(t.GroupNum) == false);
var pubSaDetailsNotCanSes = pubSaDetails.FindAll(t => pubNotSaGroupNums.Contains(t.GroupNum) == true);
//可结算明细
var pubCanSaDetails = ObjectMapper.Map<List<PUB_SA_DETAIL>, List<PUB_CAN_SA_DETAIL>>(pubSaDetailsCanSes);
//不可结算明细
var pubNotSaDetails = ObjectMapper.Map<List<PUB_SA_DETAIL>, List<PUB_NOT_SA_DETAIL>>(pubSaDetailsNotCanSes);
#endregion
#region 添加入库
await _repository.InsertAsync(pubSa);
await _pubSaDetailRepository.InsertManyAsync(pubSaDetails);
if (pubCanSaDetails.Count > 0)
{
pubCanSa.InvGroupNum = pubCanSaDetails.Count.ToString();
pubCanSaDetails.ForEach(pubCanSaDetail =>
{
pubCanSaDetail.BillNum = pubCanSaDetail.InvGroupNum = pubCanSaBillNum;
pubCanSaDetail.BusinessType = businessType;
});
await _pubCanSaRepository.InsertAsync(pubCanSa);
await _pubCanSaDetailRepository.InsertManyAsync(pubCanSaDetails);
}
if (pubNotSaDetails.Count > 0)
{
pubNotSaDetails.ForEach(pubNotSaDetail =>
{
pubNotSaDetail.BusinessType = businessType;
});
await _pubNotSaDetailRepository.InsertManyAsync(pubNotSaDetails);
}
#endregion
}
/// <summary>
/// 获取结算关联项
/// </summary>
@ -417,7 +733,7 @@ public class PUB_SA_SERVICE : SettleAccountApplicationBase<PUB_SA>
pubCanSas = await _pubCanSaRepository.GetListAsync(t => t.SettleBillNum == pubSaBillNum);
//验证可结算主表状态
if (pubCanSas.Any(t => t.State != SettleBillState.) == false)
if (pubCanSas.Any() && pubCanSas.Any(t => t.State != SettleBillState.))
{
throw new UserFriendlyException($"{pubSaBillNum} 该单据可结算单状态无法删除!", "400");
}
@ -428,7 +744,7 @@ public class PUB_SA_SERVICE : SettleAccountApplicationBase<PUB_SA>
pubNotSaDetails = await _pubNotSaDetailRepository.GetListAsync(t => t.SettleBillNum == pubSaBillNum);
}
return (pubSas, pubSaDetails, pubCanSas , pubCanSaDetails, pubNotSaDetails);
return (pubSas, pubSaDetails, pubCanSas, pubCanSaDetails, pubNotSaDetails);
}
#endregion
}

8
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SE_DETAIL_SERVICE.cs

@ -50,8 +50,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
public async Task<string> ExportAsync(PUB_SE_DETAIL_RequestDto input)
{
input.Filters.Add(new FilterCondition("BusinessType", input.BusinessType.ToString(), EnumFilterAction.Equal, EnumFilterLogic.And));
var businessTypeDisplayName = input.BusinessType.GetDisplayName();
var businessTypeDisplayName = input.BusinessType.ToString();
DisplayAttribute attributeOfType = input.BusinessType.GetAttributeOfType<DisplayAttribute>();
if (attributeOfType != null)
{
businessTypeDisplayName = attributeOfType.Name;
}
string fileName = $"{businessTypeDisplayName}发运数据_{Guid.NewGuid()}.xlsx";
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true);
var dtos = ObjectMapper.Map<List<PUB_SE_DETAIL>, List<PUB_SE_DETAIL_EXPORT_DTO>>(entities);

218
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

@ -8,11 +8,12 @@ using System.Linq.Dynamic.Core;
using System.Reflection;
using System.Threading.Tasks;
using ClosedXML.Excel;
using Flurl;
using Flurl.Http;
using InfluxDB.LineProtocol.Client;
using LinqToDB.Data;
using LinqToDB.EntityFrameworkCore;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Core.Extension;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.SignalR;
using Microsoft.EntityFrameworkCore;
@ -21,12 +22,14 @@ using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OpenApi.Extensions;
using Omu.ValueInjecter;
using SettleAccount.Job.SignalR;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.BlobStoring;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Uow;
using Volo.Abp.Users;
using Volo.Abp.Validation;
using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
@ -40,11 +43,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ;
public interface IVmiService : IApplicationService, ITransientDependency, IJobService
{
void In(VmiCategory category, string erpToLoc, string partCode, string lu, decimal count, object message);
void Change(VmiLogType logType, VmiType vmiType, string erpToLoc, string partCode, string lu, string number, decimal qty, object source, string groupId);
void Out(VmiCategory category, string erpToLoc, string partCode, string lu, decimal count, object message);
void Run(string logGroupId, VmiType type);
void UnDo(string groupId);
}
[AllowAnonymous]
@ -57,13 +58,15 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
private readonly INormalEfCoreRepository<VmiSnapshot, Guid> _snapshotRepository;
private readonly IBlobContainer<MyFileContainer> _fileContainer;
private readonly IHubContext<PageHub> _hubContext;
private readonly ICurrentUser _currentUser;
public VmiAppService(IConfiguration cfg,
INormalEfCoreRepository<VmiBalance, Guid> balanceRepository,
INormalEfCoreRepository<VmiLog, Guid> logRepository,
INormalEfCoreRepository<VmiSnapshot, Guid> snapshotRepository,
IBlobContainer<MyFileContainer> fileContainer,
IHubContext<PageHub> hubContext)
IHubContext<PageHub> hubContext,
ICurrentUser currentUser)
{
this._cfg = cfg;
this._balanceRepository = balanceRepository;
@ -71,6 +74,49 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
this._snapshotRepository = snapshotRepository;
this._fileContainer = fileContainer;
this._hubContext = hubContext;
this._currentUser = currentUser;
LinqToDBForEFTools.Initialize();
}
/// <summary>
/// Excel 转 JSON
/// </summary>
[HttpPost, Consumes("multipart/form-data")]
public async Task<List<PUB_ADJ_DETAIL_IMP_DTO>> ExcelToJSONAsync(List<IFormFile> files)
{
using var ms = new MemoryStream();
await files.FirstOrDefault().OpenReadStream().CopyToAsync(ms).ConfigureAwait(false);
return this.ImportInternal<PUB_ADJ_DETAIL_IMP_DTO>(ms.ToArray());
}
private List<T> ImportInternal<T>(byte[] data)
{
var list = new List<T>();
using var workbook = new XLWorkbook(new MemoryStream(data));
var properties = typeof(T).GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.GetProperty)
.Where(o => o.GetAttributes<ImporterHeaderAttribute>().Any())
.ToDictionary(o => o.GetAttribute<ImporterHeaderAttribute>().Name, o => o);
var ws = workbook.Worksheets.FirstOrDefault();
for (int rowIndex = 2; rowIndex <= ws.RowsUsed().Count(); rowIndex++)
{
var row = ws.Row(rowIndex);
var model = Activator.CreateInstance<T>();
list.Add(model);
for (var columnIndex = 1; columnIndex < ws.ColumnsUsed().Count(); columnIndex++)
{
var cell = row.Cell(columnIndex);
var headerName = ws.Cell(1, columnIndex).Value.ToString().Trim();
if (properties.TryGetValue(headerName, out var property))
{
var value = cell.Value.ToString();
if (!string.IsNullOrEmpty(value))
{
property.SetValue(model, Convert.ChangeType(value, property.PropertyType));
}
}
}
}
return list;
}
/// <summary>
@ -78,7 +124,7 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
/// </summary>
[HttpPost]
[DisableValidation]
public virtual async Task Invoke(IServiceProvider serviceProvider)
public virtual Task Invoke(IServiceProvider serviceProvider)
{
this._hubContext.Clients.All.ServerToClient("JobItem", "refresh", "");
Directory.CreateDirectory(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot/files/vmi"));
@ -87,54 +133,98 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
using var dbContext = new VmiSqliteContext(connectionString);
if (!dbContext.GetService<IRelationalDatabaseCreator>().Exists() && dbContext.Database.EnsureCreated())
{
var list = await serviceProvider.GetRequiredService<SettleAccountDbContext>().Set<VmiBalance>().AsNoTracking().ToListAsync().ConfigureAwait(false);
foreach (var item in list)
var query = serviceProvider.GetRequiredService<SettleAccountDbContext>().Set<VmiBalance>().AsNoTracking();
var list = new List<VmiBalance>();
using var dc = dbContext.CreateLinqToDBConnection();
dc.BeginTransaction();
try
{
foreach (var item in query)
{
dbContext.Set<VmiBalance>().Add(item);
list.Add(item);
if (list.Count == 10000)
{
//dbContext.Set<VmiBalance>().AddRange(list);
dc.BulkCopy(new BulkCopyOptions { TableName = "VmiBalance" }, list);
list.Clear();
}
}
dbContext.SaveChanges();
if (list.Count > 0)
{
dc.BulkCopy(new BulkCopyOptions { TableName = "VmiBalance" }, list);
}
dc.Transaction.Commit();
var snapshot = new VmiSnapshot { Name = date, Path = connectionString };
this._snapshotRepository.InsertAsync(snapshot).Wait();
}
catch
{
dc.Transaction.Rollback();
throw;
}
}
this._hubContext.Clients.All.ServerToClient("JobItem", "refresh", "");
return Task.CompletedTask;
}
/// <summary>
/// 入库
/// 入库
/// </summary>
/// <param name="logType">库存事务类型</param>
/// <param name="vmiType">入库出库类型</param>
/// <param name="erpToLoc">唯一索引</param>
/// <param name="partCode">唯一索引</param>
/// <param name="lu">唯一索引</param>
/// <param name="number">关联单号</param>
/// <param name="qty">变动数量</param>
/// <param name="source">来源单据</param>
/// <param name="groupId">分组号</param>
[HttpPost]
public void In(VmiCategory category, string erpToLoc, string partCode, string lu, decimal count, object message)
[UnitOfWork]
public void Change(VmiLogType logType, VmiType vmiType, string erpToLoc, string partCode, string lu, string number, decimal qty, object source, string groupId)
{
var balance = this._balanceRepository.FirstOrDefault(o => o.ErpToLoc == erpToLoc && o.PartCode == partCode && o.LU == lu);
var log = new VmiLog(GuidGenerator.Create())
{
CreatedTime = DateTime.Now,
CreatedBy = _currentUser.UserName,
RelationNumber = number,
Qty = qty,
ChangedType = vmiType,
LogType = logType,
GroupId = groupId
};
log.InjectFrom(source);
if (balance == null)
{
balance = new VmiBalance(GuidGenerator.Create()) { ErpToLoc = erpToLoc, PartCode = partCode, LU = lu, Qty = qty };
balance.InjectFrom(source);
this._balanceRepository.InsertAsync(balance).Wait();
}
/// <summary>
/// 出库
/// </summary>
[HttpPost]
public void Out(VmiCategory category, string erpToLoc, string partCode, string lu, decimal count, object message)
else
{
balance.Qty += qty;
this._balanceRepository.UpdateAsync(balance).Wait();
}
this._logRepository.InsertAsync(log);
new InfluxHelper(_cfg).Insert(log);
}
/// <summary>
/// 库存事务重放
/// 库存事务回滚
/// </summary>
/// <param name="logGroupId"></param>
/// <param name="type"></param>
[NonAction]
public void Run(string logGroupId, VmiType type)
[UnitOfWork]
public void UnDo(string groupId)
{
}
/// <summary>
/// InfluxDB Query Test
/// </summary>
/// <param name="q"></param>
/// <returns></returns>
[HttpPost]
public async Task<dynamic> influxdb(string q)
var logs = this._logRepository.Where(o => o.GroupId == groupId).AsNoTracking();
foreach (var item in logs)
{
var helper = new InfluxHelper(_cfg);
return await helper.GetUrl().AppendPathSegment("query").SetQueryParam("q", q).SetQueryParam("db", "vmi").GetJsonAsync().ConfigureAwait(false);
//var balance = this._balanceRepository.FirstOrDefault(o => o.ErpToLoc == item.ErpToLoc&& o.PartCode == item. && o.LU == item.LogType);
//var log = new VmiLog();
//log.InjectFrom(item);
//log.CreatedTime = item.CreatedTime;
}
}
/// <summary>
@ -164,6 +254,12 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
return fileName;
}
[HttpGet]
public void VmiLogInsertTest()
{
new InfluxHelper(_cfg).Insert(new VmiLog(GuidGenerator.Create()));
}
/// <summary>
/// 库存事务查询
/// </summary>
@ -172,44 +268,28 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
[HttpPost]
public async Task<PagedResultDto<VmiLog>> Log(RequestDto input)
{
var type = typeof(VmiLog);
var querySql = $"select * from {typeof(VmiLog).Name}";
var countSql = $"select count(*) from {typeof(VmiLog).Name}";
var where = "";
if (input.Filters.Any())
var query = new InfluxHelper(_cfg).Query<VmiLog>().Where(input.Filters.ToLambda<VmiLog>());
var count = query.Count();
input.Sorting?.Split(',').Select(o => o.Trim()).Where(o => !string.IsNullOrEmpty(o)).ForEach(o =>
{
foreach (var item in input.Filters)
var values = o.Split(' ').Select(o => o.Trim()).Where(o => !string.IsNullOrEmpty(o)).ToArray();
if (values.Length == 1)
{
var property = type.GetProperties().FirstOrDefault(p => p.Name.ToLowerInvariant() == item.Column.ToLowerInvariant());
if (property != null)
{
var @operator = GetOperator(item.Action);
var value = GetValue(property, item.Value);
where += $" {(string.IsNullOrEmpty(where) ? "where" : "and")} {property.Name}{string.Format(GetOperator(item.Action), item.Value)}";
}
query = query.OrderBy(values[0]);
}
}
var herlper = new InfluxHelper(_cfg);
var countResult = await herlper.Query(countSql + where).ConfigureAwait(false);
var count = Convert.ToInt32(countResult.results.FirstOrDefault()?.series.FirstOrDefault()?.values.FirstOrDefault()?.LastOrDefault());
where += $" order by time desc limit {input.MaxResultCount} offset {input.SkipCount} ";
var result = await herlper.Query(querySql + where).ConfigureAwait(false);
var entities = new List<VmiLog>();
result.results.FirstOrDefault()?.series.FirstOrDefault()?.values.ForEach(v =>
else if (values.Length == 2)
{
var entity = Activator.CreateInstance<VmiLog>();
entities.Add(entity);
var i = 0;
result.results.FirstOrDefault().series.FirstOrDefault().columns.ForEach(c =>
if (values[1].ToLowerInvariant() == "desc")
{
var property = type.GetProperty(c);
if (property != null)
query = query.OrderByPropertyName(values[0], SqlSugar.OrderByType.Desc);
}
else
{
this.SetPropertyValue(property, entity, v[i]);
i++;
query = query.OrderBy(values[0]);
}
}
});
});
var entities = query.Skip(input.SkipCount).Take(input.MaxResultCount).ToList();
return new PagedResultDto<VmiLog>(count, entities);
}
@ -303,12 +383,6 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran
return stream.ToArray();
}
[HttpGet]
public async Task<LineProtocolWriteResult> InfluxInsertTest(string q)
{
return await new InfluxHelper(_cfg).Insert(new VmiLog()).ConfigureAwait(false);
}
private static void SetCell<TExportModel>(TExportModel? model, IXLCell cell, PropertyInfo property)
{
var propertyType = property.PropertyType;

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.csproj

@ -124,9 +124,11 @@
<PackageReference Include="Flurl.Http" Version="3.2.4" />
<PackageReference Include="InfluxDB.Collector" Version="1.1.1" />
<PackageReference Include="InfluxDB.LineProtocol" Version="1.1.1" />
<PackageReference Include="linq2db.EntityFrameworkCore" Version="5.17.0" />
<PackageReference Include="NPOI" Version="2.5.4" />
<PackageReference Include="Riven.CodeArts.Db.Influx17x" Version="0.1.0" />
<PackageReference Include="Shouldly" Version="4.0.3" />
<PackageReference Include="SqlSugarCore" Version="5.1.4.94" />
<PackageReference Include="System.IO.Compression.ZipFile" Version="4.3.0" />
<PackageReference Include="ValueInjecter" Version="3.2.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc" Version="4.3.3" />

28
code/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs

@ -142,6 +142,8 @@ namespace Win.Sfs.SettleAccount
CreateMapBBAC_SE_DETAIL();
CreateMapBBAC_SE_EDI();
CreateMapBBAC_SA();
CreateMapBBAC_SA_DETAIL();
CreateMapHBPO_SE_DETAIL();
CreateMapHBPO_SE_EDI();
@ -961,6 +963,27 @@ namespace Win.Sfs.SettleAccount
CreateMap<BBAC_SE_EDI, BBAC_SE_EDI_EXPORT_DTO>();
}
/// <summary>
/// BBAC结算
/// </summary>
private void CreateMapBBAC_SA()
{
CreateMap<BBAC_SA, BBAC_SA_DTO>();
}
/// <summary>
/// BBAC结算明细
/// </summary>
private void CreateMapBBAC_SA_DETAIL()
{
CreateMap<BBAC_SA_DETAIL, BBAC_CAN_SA_DETAIL>()
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum));
CreateMap<BBAC_SA_DETAIL, BBAC_NOT_SA_DETAIL>()
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum));
CreateMap<BBAC_SA_DETAIL_IMPORT_DTO, BBAC_SA_DETAIL>();
}
/// <summary>
/// HBPO发运单
/// </summary>
@ -1030,6 +1053,11 @@ namespace Win.Sfs.SettleAccount
CreateMap<PUB_SA_DETAIL, PUB_SA_DETAIL_EXPORT_DTO>();
CreateMap<PUB_SA_DETAIL_IMPORT_DTO, PUB_SA_DETAIL>();
CreateMap<ZhiGongJianBBACImportDto, PUB_SA_DETAIL>();
CreateMap<ZhiGongJianHBPOImportDto, PUB_SA_DETAIL>();
CreateMap<MaiDanJianHBPOImportDto, PUB_SA_DETAIL>();
CreateMap<BeiJianImportDto, PUB_SA_DETAIL>();
CreateMap<YinDuJianImportDto, PUB_SA_DETAIL>();
}
/// <summary>

67
code/src/Modules/SettleAccount/src/SettleAccount.Application/influxdb/InfluxHelper.cs

@ -1,17 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Reflection;
using System.Threading.Tasks;
using Flurl;
using Flurl.Http;
using InfluxDB.LineProtocol.Client;
using InfluxDB.LineProtocol.Payload;
using Microsoft.Extensions.Configuration;
using Volo.Abp.Domain.Entities.Auditing;
using SqlSugar;
using Win.Sfs.SettleAccount.Entities.BQ.Vmi;
namespace Win.Sfs.SettleAccount.influxdb;
@ -25,47 +14,35 @@ public class InfluxHelper
this._configuration = configuration;
}
public InfluxHelper Start()
public void Start()
{
if (!Process.GetProcessesByName("influxd").Any())
{
var influxPath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "influxdb");
var process = new Process();
process.StartInfo = new ProcessStartInfo
{
UseShellExecute = false,
CreateNoWindow = true,
WorkingDirectory = influxPath,
FileName = Path.Combine(influxPath, "influxd.exe"),
Arguments = $"-config {Path.Combine(influxPath, "influxdb.conf")}",
};
process.Start();
}
return this;
var db = GetClient();
db.DbMaintenance.CreateDatabase();
db.CodeFirst.InitTables<VmiLog>();
}
public async Task<InfluxQueryResult> Query(string q)
public ISugarQueryable<T> Query<T>()
{
var influxUrl = GetUrl();
var response = await $"{influxUrl}/query".PostUrlEncodedAsync(new { q, db = this._database }).ConfigureAwait(false);
return await response.GetJsonAsync<InfluxQueryResult>().ConfigureAwait(false);
var db = GetClient();
return db.Queryable<T>();
}
public string GetUrl()
public void Insert<T>(T entity) where T : class, new()
{
return (_configuration.GetConnectionString("influxdb") ?? "http://localhost:8086").TrimEnd('/');
var db = GetClient();
db.Insertable(entity).ExecuteCommand();
}
public async Task<LineProtocolWriteResult> Insert<T>(T entity) where T : AuditedEntity<Guid>
private SqlSugarClient GetClient()
{
var connectionString = _configuration.GetConnectionString("questdb") ?? $"host=localhost;port=8812;username=admin;password=quest;database={this._database};ServerCompatibilityMode=NoTypeLoading;";
var db = new SqlSugarClient(new ConnectionConfig
{
var influxUrl = GetUrl();
var client = new LineProtocolClient(new Uri(influxUrl), this._database);
var table = typeof(T).Name;
var payload = new LineProtocolPayload();
var dictonary = typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)
.ToDictionary(o => o.Name, o => o.GetValue(entity, null));
payload.Add(new LineProtocolPoint(table, dictonary, new Dictionary<string, string> { { "Id", entity.Id.ToString() } }, entity.CreationTime.ToUniversalTime()));
var result = await client.WriteAsync(payload).ConfigureAwait(false);
return result;
ConnectionString = connectionString,
DbType = DbType.QuestDB,
InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true,
});
return db;
}
}

2
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SA.cs

@ -7,7 +7,7 @@ namespace SettleAccount.Domain.BQ;
[Display(Name = "BBAC结算导入")]
public class BBAC_SA:FullAuditedAggregateRoot<Guid>
public class BBAC_SA : AuditedAggregateRoot<Guid>
{
[Display(Name = "期间")]
public int Version { get; set; }

6
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_EDI.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;
@ -10,7 +10,7 @@ public class BBAC_SE_EDI:FullAuditedAggregateRoot<Guid>
public string KeyCode { get; set; } = null!;
[Display(Name = "期间")]
public int Version { get; set; }
public string Version { get; set; }
[Display(Name = "零件号")]
public string LU { get; set; } = null!;
@ -47,7 +47,7 @@ public class BBAC_SE_EDI:FullAuditedAggregateRoot<Guid>
public BBAC_SE_EDI()
{ }
public BBAC_SE_EDI(Guid guid, string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate
public BBAC_SE_EDI(Guid guid, string keyCode, string version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate
,string site, string extend1, string extend2, string extend3, string extend4)
{

23
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Vmi/VmiBalance.cs

@ -1,46 +1,37 @@
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities;
using Win.Sfs.SettleAccount.Entities.BQ.Syncs;
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi;
/// <summary>
/// ERP库位+零件号+生产码
/// </summary>
public class VmiBalance : Entity<Guid>
public class VmiBalance : BasicAggregateRoot<Guid>
{
public VmiBalance(Guid id)
{
this.Id = id;
}
/// <summary>
/// key
/// </summary>
[Display(Name ="ERP库位")]
[Display(Name = "ERP库位")]
public string ErpToLoc { get; set; }
/// <summary>
/// key
/// </summary>
[Display(Name = "LU零件号")]
public string LU { get; set; }
[Display(Name = "客户零件号")]
public string PartCode { get; set; }
/// <summary>
/// key
/// </summary>
[Display(Name = "生产码")]
public string VinCode { get; set; }
[Display(Name = "客户零件号")]
public string CodeType { get; set; }
[Display(Name = "生产码类型")]
public EnumDeliverSubBillType DeliverSubBillType { get; set; }
[Display(Name = "发货类型")]
public string ProType { get; set; }
public EnumDeliverBjBmpBillType DeliverBillType { get; set; }
[Display(Name = "数量")]
public decimal Qty { get; set; }
@ -67,5 +58,5 @@ public class VmiBalance : Entity<Guid>
public string PjsNum { get; set; }
[Display(Name = "备注")]
public string Desc { get; set; }
public string Remark { get; set; }
}

21
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Vmi/VmiCategory.cs

@ -1,21 +0,0 @@
using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities;
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi;
/// <summary>
/// 寄售库存操作分类
/// </summary>
public class VmiCategory : Entity<Guid>
{
public VmiCategory(Guid id)
{
this.Id = id;
}
public VmiType Type { get; set; }
public string Number { get; set; }
public string Name { get; set; }
public List<VmiLog> Logs { get; set; } = new List<VmiLog>();
}

192
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Vmi/VmiLog.cs

@ -1,169 +1,97 @@
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.Domain.Entities;
using Win.Sfs.SettleAccount.Entities.BQ.Syncs;
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi;
/// <summary>
/// 寄售库存操作记录
/// </summary>
public class VmiLog : AuditedEntity<Guid>
public class VmiLog : BasicAggregateRoot<Guid>
{
/// <summary>
/// 批量操作Id
/// </summary>
public string GroupId { get; set; }
/// <summary>
/// 库存事务执行类型
/// </summary>
public VmiLogType VmiType { get; set; }
/// <summary>
/// 库存事务分类Number
/// </summary>
public string Category { get; set; }
public VmiLog()
{
}
/// <summary>
/// 库存变动
/// </summary>
public decimal Count { get; set; }
public VmiLog(Guid id)
{
this.Id = id;
}
/// <summary>
/// 变动时间
/// </summary>
public DateTime CreatedDate { get; set; } = DateTime.Now;
#region 非需求显示字段
/// <summary>
/// 便动人
/// </summary>
public string CreatedBy { get; set; }
[Display(Name = "分组编号")]
public string GroupId { get; set; }
/// <summary>
/// 变动单号
/// </summary>
public string OrderNumber { get; set; }
[Display(Name = "库存事务分类")]
public VmiLogType LogType { get; set; }
#region 变动前库存
[Display(Name = "库存变动")]
public decimal Count { get; set; }
/// <summary>
/// Erp目标库位
/// </summary>
public string ErpToLoc { get; set; }
#endregion 非需求显示字段
/// <summary>
/// LU零件号
/// </summary>
public string LU { get; set; }
/// <summary>
/// 客户零件号
/// </summary>
public string PartCode { get; set; }
/// <summary>
/// 生产码
/// </summary>
[Display(Name = "", Description = "Key")]
public string VinCode { get; set; }
/// <summary>
/// 生产码类型
/// </summary>
public string CodeType { get; set; }
/// <summary>
/// 发货类型
/// </summary>
public string ProType { get; set; }
/// <summary>
/// 数量
/// </summary>
public decimal Qty { get; set; }
[Display(Name = "变动单号")]
public string RelationNumber { get; set; }
/// <summary>
/// 发运日期
/// </summary>
public DateTime ShippingDate { get; set; }
[Display(Name = "变动时间")]
public DateTime CreatedTime { get; set; } = DateTime.Now;
/// <summary>
/// 订单日期
/// </summary>
public DateTime CreationTime { get; set; }
[Display(Name = "变动类型")]
public VmiType ChangedType { get; set; }
/// <summary>
/// EDI顺序号
/// </summary>
public string SeqNumber { get; set; }
[Display(Name = "便动人")]
public string CreatedBy { get; set; }
/// <summary>
/// 塑件唯一码
/// </summary>
public string UniqueCode { get; set; }
[Display(Name = "实扣LU零件号")]
public string No1 { get; set; }
/// <summary>
/// EDI总成号
/// </summary>
public string MatchNumber { get; set; }
[Display(Name = "实扣客户零件号")]
public string No2 { get; set; }
/// <summary>
/// PJIS生产顺序号
/// </summary>
public string PjsNum { get; set; }
[Display(Name = "结算LU零件号")]
public string No3 { get; set; }
/// <summary>
/// 备注
/// </summary>
public string BalanceDesc { get; set; }
[Display(Name = "结算客户零件号")]
public string No4 { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Desc { get; set; }
[Display(Name = "实扣生产码")]
public string No5 { get; set; }
#endregion 变动前库存
[Display(Name = "结算生产码")]
public string No6 { get; set; }
#region 入库附加信息
[Display(Name = "生产码类型")]
public string DeliverSubBillType { get; set; }
/// <summary>
/// 客户订单号
/// </summary>
public string Tmpe4 { get; set; }
[Display(Name = "发货类型")]
public EnumDeliverBjBmpBillType DeliverBillType { get; set; }
#endregion 入库附加信息
[Display(Name = "数量")]
public decimal Qty { get; set; }
#region 出库附加信息
[Display(Name = "发运日期")]
public DateTime ShippingDate { get; set; }
/// <summary>
/// 实扣LU零件号
/// </summary>
public string F2 { get; set; }
[Display(Name = "订单日期")]
public DateTime CreationTime { get; set; }
/// <summary>
/// 实扣客户零件号
/// </summary>
public string G2 { get; set; }
[Display(Name = "EDI顺序号")]
public string SeqNumber { get; set; }
/// <summary>
/// 结算LU零件号
/// </summary>
public string H2 { get; set; }
[Display(Name = "客户订单号")]
public string CustomOrderNumber { get; set; }
/// <summary>
/// 结算客户零件号
/// </summary>
public string I2 { get; set; }
[Display(Name = "EDI总成号")]
public string MatchNumber { get; set; }
/// <summary>
/// 实扣生产码
/// </summary>
public string J2 { get; set; }
[Display(Name = "PJIS生产顺序号")]
public string PjsNum { get; set; }
/// <summary>
/// 结算生产码
/// </summary>
public string K2 { get; set; }
[Display(Name = "ERP库位")]
public string ErpToLoc { get; set; }
#endregion 出库附加信息
[Display(Name = "备注")]
public string Desc { get; set; }
}

22
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Vmi/VmiType.cs

@ -1,3 +1,5 @@
using System.ComponentModel.DataAnnotations;
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi;
/// <summary>
@ -16,7 +18,7 @@ public enum VmiType
Out
}
public enum VmiLogType
public enum VmiLogRunType
{
/// <summary>
/// 初次执行
@ -33,3 +35,21 @@ public enum VmiLogType
/// </summary>
ReDo
}
public enum VmiLogType
{
[Display(Name = "发运入库")]
Type100 = 100,
[Display(Name = "结算出库")]
Type200 = 200,
[Display(Name = "客户退货")]
Type300 = 300,
[Display(Name = "调整入库")]
Type400 = 400,
[Display(Name = "调整出库")]
Type500 = 500,
}

30
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs

@ -1251,15 +1251,15 @@ namespace Win.Sfs.SettleAccount
b.ConfigureByConvention();
});
builder.Entity<VmiCategory>(b =>
{
b.ToTable($"{options.TablePrefix}_VmiCategory", options.Schema);
b.ConfigureByConvention();
b.Property(o => o.Number).HasMaxLength(50).IsRequired();
b.HasIndex(o => o.Number).IsUnique();
b.Property(o => o.Name).HasMaxLength(50).IsRequired();
b.HasIndex(o => o.Name).IsUnique();
});
//builder.Entity<VmiCategory>(b =>
//{
// b.ToTable($"{options.TablePrefix}_VmiCategory", options.Schema);
// b.ConfigureByConvention();
// b.Property(o => o.Number).HasMaxLength(50).IsRequired();
// b.HasIndex(o => o.Number).IsUnique();
// b.Property(o => o.Name).HasMaxLength(50).IsRequired();
// b.HasIndex(o => o.Name).IsUnique();
//});
builder.Entity<VmiBalance>(b =>
{
@ -1267,7 +1267,7 @@ namespace Win.Sfs.SettleAccount
b.ConfigureByConvention();
b.HasAlternateKey(o => new { o.ErpToLoc, o.PartCode, o.LU });
});
builder.Entity<VmiBalance>().HasData(new VmiBalance("test".ToGuid()) { ErpToLoc = "key1", PartCode = "key2", LU = "key3", Desc = "test" });
builder.Entity<VmiBalance>().HasData(new VmiBalance("test".ToGuid()) { ErpToLoc = "key1", PartCode = "key2", LU = "key3", Remark = "test" });
builder.Entity<VmiLog>(b =>
{
@ -1283,11 +1283,11 @@ namespace Win.Sfs.SettleAccount
//seed
builder.Entity<JobItem>().HasData(new JobItem("vmi".ToGuid()) { Name = "库存快照", Cron = "0 0 8 26 *", Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" });
builder.Entity<VmiCategory>().HasData(new VmiCategory("发运入库".ToGuid()) { Type = VmiType.In, Name = "发运入库", Number = "100" });
builder.Entity<VmiCategory>().HasData(new VmiCategory("结算出库".ToGuid()) { Type = VmiType.Out, Name = "结算出库", Number = "200" });
builder.Entity<VmiCategory>().HasData(new VmiCategory("客户退货".ToGuid()) { Type = VmiType.Out, Name = "客户退货", Number = "300" });
builder.Entity<VmiCategory>().HasData(new VmiCategory("调整入库".ToGuid()) { Type = VmiType.In, Name = "调整入库", Number = "400" });
builder.Entity<VmiCategory>().HasData(new VmiCategory("调整出库".ToGuid()) { Type = VmiType.Out, Name = "调整出库", Number = "500" });
//builder.Entity<VmiCategory>().HasData(new VmiCategory("发运入库".ToGuid()) { Type = VmiType.In, Name = "发运入库", Number = "100" });
//builder.Entity<VmiCategory>().HasData(new VmiCategory("结算出库".ToGuid()) { Type = VmiType.Out, Name = "结算出库", Number = "200" });
//builder.Entity<VmiCategory>().HasData(new VmiCategory("客户退货".ToGuid()) { Type = VmiType.Out, Name = "客户退货", Number = "300" });
//builder.Entity<VmiCategory>().HasData(new VmiCategory("调整入库".ToGuid()) { Type = VmiType.In, Name = "调整入库", Number = "400" });
//builder.Entity<VmiCategory>().HasData(new VmiCategory("调整出库".ToGuid()) { Type = VmiType.Out, Name = "调整出库", Number = "500" });
//builder.Entity<VmiCategory>().HasData(new VmiCategory("漏发补货".ToGuid()) { Type = VmiType.In, Name = "漏发补货", Number = "600" });
//builder.Entity<VmiCategory>().HasData(new VmiCategory("负库存补货".ToGuid()) { Type = VmiType.In, Name = "负库存补货", Number = "700" });
}

1
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/VmiSqliteContext.cs

@ -21,6 +21,5 @@ public class VmiSqliteContext : DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<VmiBalance>().HasKey(o => o.Id);
modelBuilder.Entity<VmiBalance>().Property<DateTime>("BackupDate");
}
}

5134
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.Designer.cs

File diff suppressed because it is too large

53
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.cs

@ -0,0 +1,53 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202308011 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Version",
table: "Set_BBAC_SE_EDI",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<bool>(
name: "IsReturn",
table: "Set_BBAC_NOT_SA_DETAIL",
type: "bit",
maxLength: 50,
nullable: false,
defaultValue: false,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "Version",
table: "Set_BBAC_SE_EDI",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "IsReturn",
table: "Set_BBAC_NOT_SA_DETAIL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(bool),
oldType: "bit",
oldMaxLength: 50);
}
}
}

5024
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.Designer.cs

File diff suppressed because it is too large

384
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.cs

@ -0,0 +1,384 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class vmi7 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId",
table: "Set_VmiLog");
migrationBuilder.DropTable(
name: "Set_VmiCategory");
migrationBuilder.DropIndex(
name: "IX_Set_VmiLog_VmiCategoryId",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "BalanceDesc",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "Category",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "CodeType",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "CreatorId",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "F2",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "G2",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "H2",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "I2",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "LastModificationTime",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "LastModifierId",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "VmiCategoryId",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "CodeType",
table: "Set_VmiBalance");
migrationBuilder.DropColumn(
name: "Desc",
table: "Set_VmiBalance");
migrationBuilder.RenameColumn(
name: "VmiType",
table: "Set_VmiLog",
newName: "LogType");
migrationBuilder.RenameColumn(
name: "VinCode",
table: "Set_VmiLog",
newName: "RelationNumber");
migrationBuilder.RenameColumn(
name: "UniqueCode",
table: "Set_VmiLog",
newName: "No6");
migrationBuilder.RenameColumn(
name: "Tmpe4",
table: "Set_VmiLog",
newName: "No5");
migrationBuilder.RenameColumn(
name: "ProType",
table: "Set_VmiLog",
newName: "No4");
migrationBuilder.RenameColumn(
name: "PartCode",
table: "Set_VmiLog",
newName: "No3");
migrationBuilder.RenameColumn(
name: "OrderNumber",
table: "Set_VmiLog",
newName: "No2");
migrationBuilder.RenameColumn(
name: "LU",
table: "Set_VmiLog",
newName: "No1");
migrationBuilder.RenameColumn(
name: "K2",
table: "Set_VmiLog",
newName: "DeliverSubBillType");
migrationBuilder.RenameColumn(
name: "J2",
table: "Set_VmiLog",
newName: "CustomOrderNumber");
migrationBuilder.RenameColumn(
name: "CreatedDate",
table: "Set_VmiLog",
newName: "CreatedTime");
migrationBuilder.RenameColumn(
name: "ProType",
table: "Set_VmiBalance",
newName: "Remark");
migrationBuilder.AddColumn<int>(
name: "ChangedType",
table: "Set_VmiLog",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "DeliverBillType",
table: "Set_VmiLog",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "DeliverBillType",
table: "Set_VmiBalance",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "DeliverSubBillType",
table: "Set_VmiBalance",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.UpdateData(
table: "Set_VmiBalance",
keyColumn: "Id",
keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"),
column: "Remark",
value: "test");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ChangedType",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "DeliverBillType",
table: "Set_VmiLog");
migrationBuilder.DropColumn(
name: "DeliverBillType",
table: "Set_VmiBalance");
migrationBuilder.DropColumn(
name: "DeliverSubBillType",
table: "Set_VmiBalance");
migrationBuilder.RenameColumn(
name: "RelationNumber",
table: "Set_VmiLog",
newName: "VinCode");
migrationBuilder.RenameColumn(
name: "No6",
table: "Set_VmiLog",
newName: "UniqueCode");
migrationBuilder.RenameColumn(
name: "No5",
table: "Set_VmiLog",
newName: "Tmpe4");
migrationBuilder.RenameColumn(
name: "No4",
table: "Set_VmiLog",
newName: "ProType");
migrationBuilder.RenameColumn(
name: "No3",
table: "Set_VmiLog",
newName: "PartCode");
migrationBuilder.RenameColumn(
name: "No2",
table: "Set_VmiLog",
newName: "OrderNumber");
migrationBuilder.RenameColumn(
name: "No1",
table: "Set_VmiLog",
newName: "LU");
migrationBuilder.RenameColumn(
name: "LogType",
table: "Set_VmiLog",
newName: "VmiType");
migrationBuilder.RenameColumn(
name: "DeliverSubBillType",
table: "Set_VmiLog",
newName: "K2");
migrationBuilder.RenameColumn(
name: "CustomOrderNumber",
table: "Set_VmiLog",
newName: "J2");
migrationBuilder.RenameColumn(
name: "CreatedTime",
table: "Set_VmiLog",
newName: "CreatedDate");
migrationBuilder.RenameColumn(
name: "Remark",
table: "Set_VmiBalance",
newName: "ProType");
migrationBuilder.AddColumn<string>(
name: "BalanceDesc",
table: "Set_VmiLog",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Category",
table: "Set_VmiLog",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CodeType",
table: "Set_VmiLog",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "CreatorId",
table: "Set_VmiLog",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "F2",
table: "Set_VmiLog",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "G2",
table: "Set_VmiLog",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "H2",
table: "Set_VmiLog",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "I2",
table: "Set_VmiLog",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "LastModificationTime",
table: "Set_VmiLog",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "LastModifierId",
table: "Set_VmiLog",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "VmiCategoryId",
table: "Set_VmiLog",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CodeType",
table: "Set_VmiBalance",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Desc",
table: "Set_VmiBalance",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.CreateTable(
name: "Set_VmiCategory",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
Number = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
Type = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Set_VmiCategory", x => x.Id);
});
migrationBuilder.UpdateData(
table: "Set_VmiBalance",
keyColumn: "Id",
keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"),
columns: new[] { "Desc", "ProType" },
values: new object[] { "test", null });
migrationBuilder.InsertData(
table: "Set_VmiCategory",
columns: new[] { "Id", "Name", "Number", "Type" },
values: new object[,]
{
{ new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), "发运入库", "100", 0 },
{ new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), "结算出库", "200", 1 },
{ new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), "客户退货", "300", 1 },
{ new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), "调整入库", "400", 0 },
{ new Guid("42230472-9f26-7484-ff2a-451878e9955f"), "调整出库", "500", 1 }
});
migrationBuilder.CreateIndex(
name: "IX_Set_VmiLog_VmiCategoryId",
table: "Set_VmiLog",
column: "VmiCategoryId");
migrationBuilder.CreateIndex(
name: "IX_Set_VmiCategory_Name",
table: "Set_VmiCategory",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Set_VmiCategory_Number",
table: "Set_VmiCategory",
column: "Number",
unique: true);
migrationBuilder.AddForeignKey(
name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId",
table: "Set_VmiLog",
column: "VmiCategoryId",
principalTable: "Set_VmiCategory",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
}
}
}

5120
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.Designer.cs

File diff suppressed because it is too large

45
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.cs

@ -0,0 +1,45 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202308031 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DeleterId",
table: "Set_BBAC_SA");
migrationBuilder.DropColumn(
name: "DeletionTime",
table: "Set_BBAC_SA");
migrationBuilder.DropColumn(
name: "IsDeleted",
table: "Set_BBAC_SA");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "DeleterId",
table: "Set_BBAC_SA",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "DeletionTime",
table: "Set_BBAC_SA",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "IsDeleted",
table: "Set_BBAC_SA",
type: "bit",
nullable: false,
defaultValue: false);
}
}
}

200
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

@ -212,9 +212,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("IsReturn")
b.Property<bool>("IsReturn")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasColumnType("bit");
b.Property<string>("KeyCode")
.HasMaxLength(50)
@ -400,24 +400,10 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<Guid?>("DeleterId")
.HasColumnType("uniqueidentifier")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime2")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
@ -783,8 +769,8 @@ namespace Win.Sfs.SettleAccount.Migrations
b.Property<string>("Site")
.HasColumnType("nvarchar(max)");
b.Property<int>("Version")
.HasColumnType("int");
b.Property<string>("Version")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
@ -3972,17 +3958,17 @@ namespace Win.Sfs.SettleAccount.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("CodeType")
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
b.Property<string>("CustomOrderNumber")
.HasColumnType("nvarchar(max)");
b.Property<string>("Desc")
.HasColumnType("nvarchar(max)");
b.Property<int>("DeliverBillType")
.HasColumnType("int");
b.Property<int>("DeliverSubBillType")
.HasColumnType("int");
b.Property<string>("ErpToLoc")
.IsRequired()
@ -4002,12 +3988,12 @@ namespace Win.Sfs.SettleAccount.Migrations
b.Property<string>("PjsNum")
.HasColumnType("nvarchar(max)");
b.Property<string>("ProType")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Qty")
.HasColumnType("decimal(18,2)");
b.Property<string>("Remark")
.HasColumnType("nvarchar(max)");
b.Property<string>("SeqNumber")
.HasColumnType("nvarchar(max)");
@ -4031,96 +4017,25 @@ namespace Win.Sfs.SettleAccount.Migrations
{
Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"),
CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
Desc = "test",
DeliverBillType = 0,
DeliverSubBillType = 0,
ErpToLoc = "key1",
LU = "key3",
PartCode = "key2",
Qty = 0m,
Remark = "test",
ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
});
});
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("Number")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("Type")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.HasIndex("Number")
.IsUnique();
b.ToTable("Set_VmiCategory");
b.HasData(
new
{
Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"),
Name = "发运入库",
Number = "100",
Type = 0
},
new
{
Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"),
Name = "结算出库",
Number = "200",
Type = 1
},
new
{
Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"),
Name = "客户退货",
Number = "300",
Type = 1
},
new
{
Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"),
Name = "调整入库",
Number = "400",
Type = 0
},
new
{
Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"),
Name = "调整出库",
Number = "500",
Type = 1
});
});
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("BalanceDesc")
.HasColumnType("nvarchar(max)");
b.Property<string>("Category")
.HasColumnType("nvarchar(max)");
b.Property<string>("CodeType")
.HasColumnType("nvarchar(max)");
b.Property<int>("ChangedType")
.HasColumnType("int");
b.Property<decimal>("Count")
.HasColumnType("decimal(18,2)");
@ -4128,98 +4043,71 @@ namespace Win.Sfs.SettleAccount.Migrations
b.Property<string>("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("CreatedDate")
b.Property<DateTime>("CreatedTime")
.HasColumnType("datetime2");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
.HasColumnType("datetime2");
b.Property<string>("Desc")
b.Property<string>("CustomOrderNumber")
.HasColumnType("nvarchar(max)");
b.Property<string>("ErpToLoc")
b.Property<int>("DeliverBillType")
.HasColumnType("int");
b.Property<string>("DeliverSubBillType")
.HasColumnType("nvarchar(max)");
b.Property<string>("F2")
b.Property<string>("Desc")
.HasColumnType("nvarchar(max)");
b.Property<string>("G2")
b.Property<string>("ErpToLoc")
.HasColumnType("nvarchar(max)");
b.Property<string>("GroupId")
.HasColumnType("nvarchar(max)");
b.Property<string>("H2")
.HasColumnType("nvarchar(max)");
b.Property<int>("LogType")
.HasColumnType("int");
b.Property<string>("I2")
b.Property<string>("MatchNumber")
.HasColumnType("nvarchar(max)");
b.Property<string>("J2")
b.Property<string>("No1")
.HasColumnType("nvarchar(max)");
b.Property<string>("K2")
b.Property<string>("No2")
.HasColumnType("nvarchar(max)");
b.Property<string>("LU")
b.Property<string>("No3")
.HasColumnType("nvarchar(max)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("MatchNumber")
b.Property<string>("No4")
.HasColumnType("nvarchar(max)");
b.Property<string>("OrderNumber")
b.Property<string>("No5")
.HasColumnType("nvarchar(max)");
b.Property<string>("PartCode")
b.Property<string>("No6")
.HasColumnType("nvarchar(max)");
b.Property<string>("PjsNum")
.HasColumnType("nvarchar(max)");
b.Property<string>("ProType")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Qty")
.HasColumnType("decimal(18,2)");
b.Property<string>("RelationNumber")
.HasColumnType("nvarchar(max)");
b.Property<string>("SeqNumber")
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("ShippingDate")
.HasColumnType("datetime2");
b.Property<string>("Tmpe4")
.HasColumnType("nvarchar(max)");
b.Property<string>("UniqueCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("VinCode")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("VmiCategoryId")
.HasColumnType("uniqueidentifier");
b.Property<int>("VmiType")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("VmiCategoryId");
b.ToTable("Set_VmiLog");
});
@ -5114,18 +5002,6 @@ namespace Win.Sfs.SettleAccount.Migrations
b.Navigation("Job");
});
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b =>
{
b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null)
.WithMany("Logs")
.HasForeignKey("VmiCategoryId");
});
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b =>
{
b.Navigation("Logs");
});
#pragma warning restore 612, 618
}
}

Loading…
Cancel
Save