Bladeren bron

产能检查调整

heteng 3 jaren geleden
bovenliggende
commit
7a1b341187

+ 270 - 0
.gitignore

@@ -611,3 +611,273 @@ MicroServices/Business/Business.Tests/obj/Debug/net6.0/Business.Tests.genruntime
 MicroServices/Business/Business.Tests/obj/Debug/net6.0/Business.Tests.GlobalUsings.g.cs
 MicroServices/Business/Business.Tests/obj/Debug/net6.0/ref/Business.Tests.dll
 MicroServices/Business/Business.Tests/obj/Debug/net6.0/refint/Business.Tests.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/AutoMapper.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/AWSSDK.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/AWSSDK.SecurityToken.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/BaseService.Application.Contracts.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/BaseService.HttpApi.Client.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Application.Contracts.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Application.Contracts.pdb
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Application.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Application.pdb
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Core.pdb
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Domain.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Domain.pdb
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Test.deps.json
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Test.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Test.pdb
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Business.Test.runtimeconfig.json
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Bussiness.Model.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Bussiness.Model.pdb
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Bussiness.MongoModel.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Bussiness.MongoModel.pdb
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Castle.Core.AsyncInterceptor.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Castle.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/CoverletSourceRootsMapping
+MicroServices/Business/Business.Test/bin/Debug/net6.0/DnsClient.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/FileStorage.Application.Contracts.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Hangfire.AspNetCore.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Hangfire.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/IdentityModel.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/JetBrains.Annotations.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Magicodes.IE.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Magicodes.IE.Html.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Magicodes.IE.Pdf.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.AspNetCore.Authorization.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.AspNetCore.Metadata.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.AspNetCore.Razor.Language.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.Bcl.AsyncInterfaces.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.CodeAnalysis.CSharp.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.CodeAnalysis.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Relational.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.Extensions.Caching.Memory.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.Extensions.Configuration.UserSecrets.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.Extensions.DependencyModel.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.Extensions.FileProviders.Embedded.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.Extensions.Localization.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.Extensions.Localization.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.Extensions.Logging.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.TestPlatform.AdapterUtilities.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.TestPlatform.CommunicationUtilities.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.TestPlatform.CoreUtilities.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.TestPlatform.CrossPlatEngine.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.TestPlatform.PlatformAbstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.TestPlatform.Utilities.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.VisualStudio.CodeCoverage.Shim.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.Common.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.TestFramework.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
+MicroServices/Business/Business.Test/bin/Debug/net6.0/MongoDB.Bson.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/MongoDB.Driver.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/MongoDB.Driver.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/MongoDB.Libmongocrypt.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Newtonsoft.Json.Bson.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Newtonsoft.Json.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Nito.AsyncEx.Context.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Nito.AsyncEx.Coordination.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Nito.AsyncEx.Tasks.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Nito.Collections.Deque.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Nito.Disposables.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/NuGet.Frameworks.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/NUglify.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/RazorEngine.NetCore.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/SharpCompress.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/SixLabors.ImageSharp.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Snappier.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/System.Linq.Dynamic.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/System.Security.Permissions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/testhost.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/testhost.exe
+MicroServices/Business/Business.Test/bin/Debug/net6.0/TimeZoneConverter.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Auditing.Contracts.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Auditing.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.AuditLogging.Domain.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.AuditLogging.Domain.Shared.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Authorization.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Authorization.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.AutoMapper.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.BackgroundJobs.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.BackgroundJobs.HangFire.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.BackgroundWorkers.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Caching.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Castle.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Data.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Ddd.Application.Contracts.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Ddd.Application.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Ddd.Domain.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.DistributedLocking.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.EntityFrameworkCore.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.EventBus.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.EventBus.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.ExceptionHandling.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Features.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.GlobalFeatures.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Guids.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.HangFire.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Http.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Http.Client.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Http.Client.IdentityModel.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Http.Client.IdentityModel.Web.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Http.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Identity.Application.Contracts.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Identity.Domain.Shared.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Identity.HttpApi.Client.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.IdentityModel.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Json.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Localization.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Localization.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Minify.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.MultiTenancy.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.ObjectExtending.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.ObjectMapping.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.PermissionManagement.Application.Contracts.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.PermissionManagement.Domain.Shared.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.RemoteServices.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Security.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Serialization.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.SettingManagement.Domain.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.SettingManagement.Domain.Shared.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Settings.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Specifications.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Threading.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Timing.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Uow.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Users.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Users.Domain.Shared.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Validation.Abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.Validation.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/Volo.Abp.VirtualFileSystem.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/WkHtmlToPdfDotNet.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/XCZ.FlowManagement.Application.Contracts.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/XCZ.FlowManagement.Application.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/XCZ.FlowManagement.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/XCZ.FlowManagement.Domain.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/XCZ.FormManagement.Application.Contracts.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/XCZ.FormManagement.Application.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/XCZ.FormManagement.Core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/XCZ.FormManagement.Domain.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/xunit.abstractions.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/xunit.assert.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/xunit.core.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/xunit.execution.dotnet.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/xunit.runner.reporters.netcoreapp10.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/xunit.runner.utility.netcoreapp10.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/xunit.runner.visualstudio.dotnetcore.testadapter.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ZstdSharp.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ca/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/cs/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/cs/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/cs/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/de/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/de/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/de/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/de/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/de/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/es/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/es/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/es/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/es/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/es/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/fa/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/fr/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/fr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/fr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/fr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/it/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/it/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/it/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/it/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ja/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ja/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ja/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ko/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ko/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ko/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/nb/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/nl/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pl/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pl/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pl/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pt/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pt-BR/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pt-BR/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pt-BR/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/pt-PT/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ru/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ru/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ru/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/runtimes/linux/native/libmongocrypt.so
+MicroServices/Business/Business.Test/bin/Debug/net6.0/runtimes/linux-x64/native/libwkhtmltox.so
+MicroServices/Business/Business.Test/bin/Debug/net6.0/runtimes/linux-x86/native/libwkhtmltox.so
+MicroServices/Business/Business.Test/bin/Debug/net6.0/runtimes/osx/native/libmongocrypt.dylib
+MicroServices/Business/Business.Test/bin/Debug/net6.0/runtimes/osx-x64/native/libwkhtmltox.dylib
+MicroServices/Business/Business.Test/bin/Debug/net6.0/runtimes/win/native/mongocrypt.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/runtimes/win-x64/native/wkhtmltox.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/runtimes/win-x86/native/wkhtmltox.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/tr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/tr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/tr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/tr-TR/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hans/Magicodes.IE.Core.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hans/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hans/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hant/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hant/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
+MicroServices/Business/Business.Test/bin/Debug/net6.0/zh-TW/Hangfire.Core.resources.dll
+MicroServices/Business/Business.Test/obj/Business.Test.csproj.nuget.dgspec.json
+MicroServices/Business/Business.Test/obj/Business.Test.csproj.nuget.g.props
+MicroServices/Business/Business.Test/obj/Business.Test.csproj.nuget.g.targets
+MicroServices/Business/Business.Test/obj/project.assets.json
+MicroServices/Business/Business.Test/obj/project.nuget.cache
+MicroServices/Business/Business.Test/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.AssemblyInfo.cs
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.AssemblyInfoInputs.cache
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.assets.cache
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.csproj.AssemblyReference.cache
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.csproj.CopyComplete
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.csproj.CoreCompileInputs.cache
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.csproj.FileListAbsolute.txt
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.dll
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.GeneratedMSBuildEditorConfig.editorconfig
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.genruntimeconfig.cache
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.GlobalUsings.g.cs
+MicroServices/Business/Business.Test/obj/Debug/net6.0/Business.Test.pdb
+MicroServices/Business/Business.Test/obj/Debug/net6.0/ref/Business.Test.dll
+MicroServices/Business/Business.Test/obj/Debug/net6.0/refint/Business.Test.dll

+ 71 - 36
MicroServices/Business/Business.Application/ResourceExamineManagement/CalcBomViewAppService.cs

@@ -7,6 +7,7 @@ using Bussiness.Model.SRM;
 using Bussiness.MongoModel.MES.IC;
 using Bussiness.MongoModel.Production;
 using Bussiness.MongoModel.SRM;
+using Bussiness.MongoModel.Tech;
 using System;
 using System.Collections.Generic;
 using System.Linq;
@@ -36,6 +37,26 @@ namespace Business.ResourceExamineManagement
         public List<mo_mes_mooccupy> mooccupyAllList = new List<mo_mes_mooccupy>();
 
         /// <summary>
+        /// 工艺路径
+        /// </summary>
+        public List<mo_mes_technique> techs = new List<mo_mes_technique>();
+
+        /// <summary>
+        /// 工艺关联工序
+        /// </summary>
+        public List<mo_mes_tech_process> tech_Processes = new List<mo_mes_tech_process>();
+
+        /// <summary>
+        /// 工序
+        /// </summary>
+        public List<mo_mes_process> process = new List<mo_mes_process>();
+
+        /// <summary>
+        /// 工艺工序关联工位
+        /// </summary>
+        public List<mo_mes_tech_proc_workshop> tech_Proc_Workshops = new List<mo_mes_tech_proc_workshop>();
+
+        /// <summary>
         /// 工单App
         /// </summary>
         private readonly MorderAppService _morderAppService;
@@ -205,18 +226,23 @@ namespace Business.ResourceExamineManagement
                     if (!string.IsNullOrEmpty(mes_Morders.bom_number))
                     {
                         //var ProductiveDate = ProductiveExamine(mes_Morders.bom_number, level1Dto.version, (int)mes_Morders.morder_production_number.Value);
-                        ProdExamineParamDto prodExamine = new ProdExamineParamDto()
-                        {
-                            bom_number = mes_Morders.bom_number,
-                            version = level1Dto.version,
-                            packages = (int)mes_Morders.morder_production_number.Value,
-                            tenantId = param.tenantId,
-                            factoryId = param.factoryId
+                        //ProdExamineParamDto prodExamine = new ProdExamineParamDto()
+                        //{
+                        //    bom_number = mes_Morders.bom_number,
+                        //    version = level1Dto.version,
+                        //    packages = (int)mes_Morders.morder_production_number.Value,
+                        //    tenantId = param.tenantId,
+                        //    factoryId = param.factoryId
+
+                        //};
+                        _productExamineAppService.tech = techs.FirstOrDefault(p => p.bom == mes_Morders.bom_number && p.bomver == level1Dto.version);
+                        _productExamineAppService.tech_Processes = tech_Processes.Where(p => p.tech_id == _productExamineAppService.tech.mysql_id).ToList();
+                        _productExamineAppService.process = process.Where(p => _productExamineAppService.tech_Processes.Select(m => m.proc_id).Contains(p.mysql_id)).ToList();
+                        _productExamineAppService.tech_Proc_Workshops = tech_Proc_Workshops.Where(p => _productExamineAppService.tech_Processes.Select(m => m.mysql_id).Contains(p.tech_proc_id.GetValueOrDefault())).ToList();
 
-                        };
                         var plan = planList.Find(x => x.icitem_id == level1Dto.item_id);
-                        var ProductiveDate = _productExamineAppService.ProductiveExamine(prodExamine);
-                        var Day = ProductiveDate.Result / (60 * 10); //返回的分钟除以十个小时得出工作天数;
+                        var ProductiveDate = _productExamineAppService.ProductiveExamine((int)mes_Morders.morder_production_number.Value);
+                        var Day = ProductiveDate / (60 * 10); //返回的分钟除以十个小时得出工作天数;
                         mes_Morders.moentry_sys_stime = level1Dto.kitting_time.Value.AddDays(1);//数据齐套完成后隔天开始生产;
                         //结束日期=开始时间+生产时长+自检提前期+入库提前期+发运提前期;
                         var LeadTime = 0.00m;
@@ -229,7 +255,7 @@ namespace Business.ResourceExamineManagement
                             LeadTime = Day;
                         }
                         mes_Morders.moentry_sys_etime = mes_Morders.moentry_sys_stime.Value.AddDays((double)Day);
-                        mes_Morders.morder_need_time = ProductiveDate.Result;
+                        mes_Morders.morder_need_time = ProductiveDate;
                         //满足资源检查的时间需加上提前期
                         level1Dto.satisfy_time = mes_Morders.moentry_sys_stime.Value.AddDays((double)LeadTime);
                     }
@@ -409,21 +435,26 @@ namespace Business.ResourceExamineManagement
                             CalcIcitem(cilList, returnlist, bangid, input, sklist, plan_date, icitemlist, sentrys,  childidList);
                             item.kitting_time = cilList.Max(s => s.kitting_time);
                         }
-
-                        //走自制
-                        ProdExamineParamDto prodExamine = new ProdExamineParamDto()
-                        {
-                            bom_number = item.bom_number,
-                            version = item.version,
-                            packages = (int)item.lack_qty,
-                            tenantId = param.tenantId,
-                            factoryId = param.factoryId
-
-                        };
                         item.make_qty = item.lack_qty;
-                        var minute = _productExamineAppService.ProductiveExamine(prodExamine);
+                        //走自制
+                        //ProdExamineParamDto prodExamine = new ProdExamineParamDto()
+                        //{
+                        //    bom_number = item.bom_number,
+                        //    version = item.version,
+                        //    packages = (int)item.lack_qty,
+                        //    tenantId = param.tenantId,
+                        //    factoryId = param.factoryId
+
+                        //};
+                        //var minute = _productExamineAppService.ProductiveExamine(prodExamine);
+                        _productExamineAppService.tech = techs.FirstOrDefault(p => p.bom == item.bom_number && p.bomver == item.version);
+                        _productExamineAppService.tech_Processes = tech_Processes.Where(p => p.tech_id == _productExamineAppService.tech.mysql_id).ToList();
+                        _productExamineAppService.process = process.Where(p => _productExamineAppService.tech_Processes.Select(m => m.proc_id).Contains(p.mysql_id)).ToList();
+                        _productExamineAppService.tech_Proc_Workshops = tech_Proc_Workshops.Where(p => _productExamineAppService.tech_Processes.Select(m => m.mysql_id).Contains(p.tech_proc_id.GetValueOrDefault())).ToList();
+                        
+                        var minute = _productExamineAppService.ProductiveExamine((int)item.lack_qty);
                         //系统建议完工日期为 开工日期+产能检查时间=完工日期
-                        var Day = minute.Result / (60 * 10); //返回的分钟除以十个小时得出工作天数;
+                        var Day = minute / (60 * 10); //返回的分钟除以十个小时得出工作天数;
                         var ktime = item.kitting_time.Value.AddDays((double)Day);
                         //item.kitting_time = ktime > mooccupylist[0].moo_etime ? ktime : mooccupylist[0].moo_etime;
                         item.kitting_time = ktime;
@@ -718,19 +749,23 @@ namespace Business.ResourceExamineManagement
                     {
                         //走自制
                         //var minute = ProductiveExamine(item.bom_number, "1.0", item.lack_qty.GetInt());
-                        ProdExamineParamDto prodExamine = new ProdExamineParamDto()
-                        {
-                            bom_number = sct.bom_number,
-                            version = sct.version,
-                            packages = (int)sct.lack_qty,
-                            tenantId = param.tenantId,
-                            factoryId = param.factoryId
-
-                        };
-                        var minute = _productExamineAppService.ProductiveExamine(prodExamine);
-                        //var ProductiveDate = ProductiveExamine(BomNumber, (int)(Quantity.Value));
+                        //ProdExamineParamDto prodExamine = new ProdExamineParamDto()
+                        //{
+                        //    bom_number = sct.bom_number,
+                        //    version = sct.version,
+                        //    packages = (int)sct.lack_qty,
+                        //    tenantId = param.tenantId,
+                        //    factoryId = param.factoryId
+
+                        //};
+                        _productExamineAppService.tech = techs.FirstOrDefault(p => p.bom == sct.bom_number && p.bomver == sct.version);
+                        _productExamineAppService.tech_Processes = tech_Processes.Where(p => p.tech_id == _productExamineAppService.tech.mysql_id).ToList();
+                        _productExamineAppService.process = process.Where(p => _productExamineAppService.tech_Processes.Select(m => m.proc_id).Contains(p.mysql_id)).ToList();
+                        _productExamineAppService.tech_Proc_Workshops = tech_Proc_Workshops.Where(p => _productExamineAppService.tech_Processes.Select(m => m.mysql_id).Contains(p.tech_proc_id.GetValueOrDefault())).ToList();
+                        
+                        var minute = _productExamineAppService.ProductiveExamine((int)sct.lack_qty);
                         //系统建议完工日期为 开工日期+产能检查时间=完工日期
-                        var Day = minute.Result / (60 * 10); //返回的分钟除以十个小时得出工作天数;
+                        var Day = minute / (60 * 10); //返回的分钟除以十个小时得出工作天数;
                         sct.kitting_time = sct.kitting_time.Value.AddDays((double)Day);
                     }
                     else if (sct.erp_cls == 3)

+ 38 - 11
MicroServices/Business/Business.Application/ResourceExamineManagement/MorderAppService.cs

@@ -9,8 +9,10 @@ using Bussiness.Model.SRM;
 using Bussiness.Model.Tech;
 using Bussiness.MongoModel.MES.IC;
 using Bussiness.MongoModel.Production;
+using Bussiness.MongoModel.Tech;
 using System;
 using System.Collections.Generic;
+using System.Diagnostics;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
@@ -53,6 +55,26 @@ namespace Business.ResourceExamineManagement
         /// </summary>
         SnowFlake snowFlake = new SnowFlake();
 
+        /// <summary>
+        /// 工艺路径
+        /// </summary>
+        public List<mo_mes_technique> techs = new List<mo_mes_technique>();
+
+        /// <summary>
+        /// 工艺关联工序
+        /// </summary>
+        public List<mo_mes_tech_process> tech_Processes = new List<mo_mes_tech_process>();
+
+        /// <summary>
+        /// 工序
+        /// </summary>
+        public List<mo_mes_process> process = new List<mo_mes_process>();
+
+        /// <summary>
+        /// 工艺工序关联工位
+        /// </summary>
+        public List<mo_mes_tech_proc_workshop> tech_Proc_Workshops = new List<mo_mes_tech_proc_workshop>();
+
         #endregion
         #region 构造函数
         /// <summary>
@@ -117,19 +139,24 @@ namespace Business.ResourceExamineManagement
                 mes_Morder.moentry_sys_stime = generateMorderDto.moentry_sys_stime;
                 if (!string.IsNullOrEmpty(generateMorderDto.BomNumber))
                 {
-                    ProdExamineParamDto prodExamine = new ProdExamineParamDto()
-                    {
-                        bom_number = generateMorderDto.BomNumber,
-                        version = generateMorderDto.version,
-                        packages = (int)generateMorderDto.Quantity.GetValueOrDefault(),
-                        tenantId = generateMorderDto.seorderentry.tenant_id,
-                        factoryId = generateMorderDto.seorderentry.factory_id.GetValueOrDefault()
-                    };
-                    var ProductiveDate = _productExamineAppService.ProductiveExamine(prodExamine);
+                    //ProdExamineParamDto prodExamine = new ProdExamineParamDto()
+                    //{
+                    //    bom_number = generateMorderDto.BomNumber,
+                    //    version = generateMorderDto.version,
+                    //    packages = (int)generateMorderDto.Quantity.GetValueOrDefault(),
+                    //    tenantId = generateMorderDto.seorderentry.tenant_id,
+                    //    factoryId = generateMorderDto.seorderentry.factory_id.GetValueOrDefault()
+                    //};
+                    _productExamineAppService.tech = techs.FirstOrDefault(p => p.bom == generateMorderDto.BomNumber && p.bomver == generateMorderDto.version);
+                    _productExamineAppService.tech_Processes = tech_Processes.Where(p => p.tech_id == _productExamineAppService.tech.mysql_id).ToList();
+                    _productExamineAppService.process = process.Where(p => _productExamineAppService.tech_Processes.Select(m => m.proc_id).Contains(p.mysql_id)).ToList();
+                    _productExamineAppService.tech_Proc_Workshops = tech_Proc_Workshops.Where(p => _productExamineAppService.tech_Processes.Select(m => m.mysql_id).Contains(p.tech_proc_id.GetValueOrDefault())).ToList();
+
+                    var ProductiveDate = _productExamineAppService.ProductiveExamine((int)generateMorderDto.Quantity.GetValueOrDefault());
                     //系统建议完工日期为 开工日期+产能检查时间=完工日期
-                    var Day = ProductiveDate.Result / (60 * 10); //返回的分钟除以十个小时得出工作天数;
+                    var Day = ProductiveDate / (60 * 10); //返回的分钟除以十个小时得出工作天数;
                     mes_Morder.moentry_sys_etime = mes_Morder.moentry_sys_stime.GetValueOrDefault().AddDays((double)Day);
-                    mes_Morder.morder_need_time = ProductiveDate.Result;
+                    mes_Morder.morder_need_time = ProductiveDate;
                 }
             }
 

+ 13 - 49
MicroServices/Business/Business.Application/ResourceExamineManagement/ProductExamineAppService.cs

@@ -23,80 +23,44 @@ namespace Business.ResourceExamineManagement
         /// <summary>
         /// 工艺路径
         /// </summary>
-        private readonly IMongoDB<mo_mes_technique> _mes_technique;
+        public mo_mes_technique tech = new mo_mes_technique();
 
         /// <summary>
-        /// 工序
+        /// 工艺关联工
         /// </summary>
-        private readonly IMongoDB<mo_mes_process> _mes_process;
+        public List<mo_mes_tech_process> tech_Processes = new List<mo_mes_tech_process>();
 
         /// <summary>
-        /// 工艺关联工
+        /// 工序
         /// </summary>
-        private readonly IMongoDB<mo_mes_tech_process> _mes_tech_process;
-
+        public List<mo_mes_process> process = new List<mo_mes_process>();
 
         /// <summary>
         /// 工艺工序关联工位
         /// </summary>
-        private readonly IMongoDB<mo_mes_tech_proc_workshop> _mes_tech_proc_workshop;
+        public List<mo_mes_tech_proc_workshop> tech_Proc_Workshops = new List<mo_mes_tech_proc_workshop>();
+
         #endregion
 
         /// <summary>
         /// 构造函数
         /// </summary>
-        public ProductExamineAppService(
-            IMongoDB<mo_mes_technique> mes_technique,
-            IMongoDB<mo_mes_process> mes_process,
-            IMongoDB<mo_mes_tech_process> mes_tech_process,
-            IMongoDB<mo_mes_tech_proc_workshop> mes_tech_proc_workshop
-            )
+        public ProductExamineAppService()
         {
-            _mes_technique = mes_technique;
-            _mes_process = mes_process;
-            _mes_tech_process = mes_tech_process;
-            _mes_tech_proc_workshop = mes_tech_proc_workshop;
         }
 
         /// <summary>
         /// 产能计算
         /// </summary>
-        /// <param name="param">产能检查入参</param>
+        /// <param name="packages">件数</param>
         /// <returns>生产时长</returns>
-        public async Task<decimal> ProductiveExamine(ProdExamineParamDto param)
+        public decimal ProductiveExamine(int packages)
         {
-            if (param.packages <= 0)
+            if (packages <= 0)
             {
                 throw new NotImplementedException("产能计算参数有误!");
             }
-            #region 1、数据准备
-            //1.1、获取工艺路径数据
-            mo_mes_technique tech = _mes_technique.Find(p => p.bom == param.bom_number && p.bomver == param.version && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted).Result.FirstOrDefault();
-            if (tech == null)
-            {
-                return param.packages * 100;
-                //throw new NotImplementedException("请先配置工艺路径!");
-            }
-
-            //1.2、获取工艺路径关联工序数据
-            List<mo_mes_tech_process> tech_Processes = await _mes_tech_process.GetManyByCondition(p => p.tech_id == tech.mysql_id && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted);
-            if (tech_Processes.Count == 0)
-            {
-                return param.packages * 100;
-                //throw new NotImplementedException("请先配置工序!");
-            }
-
-            //1.3、获取当前工艺路径下的工序数据
-            //FilterDefinition<mes_process> filter = Builders<mes_process>.Filter.In(s => s.Id, tech_Processes.Select(m => m.proc_id).ToList());
-            //List<mes_process> process = await _mes_process.GetManyByIds(filter);
-            List<long> procIds = tech_Processes.Select(m => m.proc_id.GetValueOrDefault()).ToList();
-            List<mo_mes_process> process = await _mes_process.GetManyByCondition(p => procIds.Contains(p.mysql_id) && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted);
-
-            //1.3、获取工艺工序关联工位信息
-            List<long> techProcIds = tech_Processes.Select(m => m.mysql_id).ToList();
-            List<mo_mes_tech_proc_workshop> tech_Proc_Workshops = await _mes_tech_proc_workshop.GetManyByCondition(p => techProcIds.Contains(p.tech_proc_id.Value) && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted);
-            #endregion
-
+            
             //1、获取工艺路径下的第一层级工序:目前只考虑第一层级
             List<mo_mes_tech_process> fistLevels = tech_Processes.Where(p => p.parentprocid == tech.mysql_id).ToList();
             if (fistLevels.Count == 0)
@@ -104,7 +68,7 @@ namespace Business.ResourceExamineManagement
                 throw new NotImplementedException("当前工艺路径没有配置工序,请调整!");
             }
             //工艺预处理
-            List<TechProcDto> teches = TechProcPretreatment(fistLevels,param.packages);
+            List<TechProcDto> teches = TechProcPretreatment(fistLevels,packages);
             decimal sumTimes = teches.OrderByDescending(p => p.sumTimes).First().sumTimes;
             return sumTimes;
         }

+ 83 - 0
MicroServices/Business/Business.Application/ResourceExamineManagement/ResourceExamineAppService.cs

@@ -9,6 +9,7 @@ using Bussiness.Model.Tech;
 using Bussiness.MongoModel.MES.IC;
 using Bussiness.MongoModel.Production;
 using Bussiness.MongoModel.SRM;
+using Bussiness.MongoModel.Tech;
 using Microsoft.EntityFrameworkCore;
 using MongoDB.Driver;
 using MongoDB.Driver.Linq;
@@ -33,6 +34,27 @@ namespace Business.ResourceExamineManagement
         SnowFlake help = new SnowFlake();
 
         /// <summary>
+        /// 工艺路径
+        /// </summary>
+        private readonly IMongoDB<mo_mes_technique> _mes_technique;
+
+        /// <summary>
+        /// 工序
+        /// </summary>
+        private readonly IMongoDB<mo_mes_process> _mes_process;
+
+        /// <summary>
+        /// 工艺关联工序
+        /// </summary>
+        private readonly IMongoDB<mo_mes_tech_process> _mes_tech_process;
+
+
+        /// <summary>
+        /// 工艺工序关联工位
+        /// </summary>
+        private readonly IMongoDB<mo_mes_tech_proc_workshop> _mes_tech_proc_workshop;
+
+        /// <summary>
         /// 物料占用记录
         /// </summary>
         private readonly IMongoDB<mo_ic_item_stockoccupy> _ic_item_stockoccupy;
@@ -203,6 +225,10 @@ namespace Business.ResourceExamineManagement
         /// <param name="icitem"></param>
         /// <param name="icbom"></param>
         public ResourceExamineAppService(
+            IMongoDB<mo_mes_technique> mes_technique,
+            IMongoDB<mo_mes_process> mes_process,
+            IMongoDB<mo_mes_tech_process> mes_tech_process,
+            IMongoDB<mo_mes_tech_proc_workshop> mes_tech_proc_workshop,
             IMongoDB<mo_ic_item> ic_item,
             IMongoDB<mo_ic_bom> ic_bom,
             IMongoDB<mo_ic_bom_child> ic_bom_child,
@@ -249,6 +275,10 @@ namespace Business.ResourceExamineManagement
             CalcBomViewAppService calcbomviewAppService
             )
         {
+            _mes_technique = mes_technique;
+            _mes_process = mes_process;
+            _mes_tech_process = mes_tech_process;
+            _mes_tech_proc_workshop = mes_tech_proc_workshop;
             _ic_item = ic_item;
             _ic_bom = ic_bom;
             _ic_bom_child = ic_bom_child;
@@ -356,7 +386,29 @@ namespace Business.ResourceExamineManagement
             List<long> suballidlist = suballlist.Select(c => c.mysql_id).ToList();
             var subdtllist = _ic_substitute_all_dtl.GetManyByCondition(p => suballidlist.Contains(p.substitute_allid) && !p.IsDeleted).Result;
 
+            #region 1、数据准备
+            //1.1、获取工艺路径数据
+            List<mo_mes_technique> techs = GetMesTechniques(boms);
+            if (techs.Count == 0)
+            {
+                throw new NotImplementedException("请先配置工艺路径!");
+            }
+
+            //1.2、获取工艺路径关联工序数据
+            List<mo_mes_tech_process> tech_Processes = await _mes_tech_process.GetManyByCondition(p => techs.Select(m=>m.mysql_id).ToList().Contains(p.tech_id.GetValueOrDefault()) && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted);
+            if (tech_Processes.Count == 0)
+            {
+                throw new NotImplementedException("请先配置工序!");
+            }
+
+            //1.3、获取当前工艺路径下的工序数据
+            List<long> procIds = tech_Processes.Select(m => m.proc_id.GetValueOrDefault()).ToList();
+            List<mo_mes_process> process = await _mes_process.GetManyByCondition(p => procIds.Contains(p.mysql_id) && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted);
 
+            //1.3、获取工艺工序关联工位信息
+            List<long> techProcIds = tech_Processes.Select(m => m.mysql_id).ToList();
+            List<mo_mes_tech_proc_workshop> tech_Proc_Workshops = await _mes_tech_proc_workshop.GetManyByCondition(p => techProcIds.Contains(p.tech_proc_id.Value) && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted);
+            #endregion
 
             //物料占用记录
             List<mo_ic_item_stockoccupy> sklist = new List<mo_ic_item_stockoccupy>();
@@ -378,6 +430,18 @@ namespace Business.ResourceExamineManagement
             _CalcBomViewAppService.planList = planList;
             _CalcBomViewAppService.leadTimeList = leadTimeList;
             _CalcBomViewAppService.supplierList = supplierList;
+            //资源检查添加工艺路径数据
+            _CalcBomViewAppService.techs = techs;//工艺路径
+            _CalcBomViewAppService.tech_Processes = tech_Processes;//工艺关联工序
+            _CalcBomViewAppService.process = process;//工序
+            _CalcBomViewAppService.tech_Proc_Workshops = tech_Proc_Workshops;//工艺工序关联工位
+
+            //工单添加工艺路径数据
+            _morderAppService.techs = techs;//工艺路径
+            _morderAppService.tech_Processes = tech_Processes;//工艺关联工序
+            _morderAppService.process = process;//工序
+            _morderAppService.tech_Proc_Workshops = tech_Proc_Workshops;//工艺工序关联工位
+
             foreach (var item in sentrys)
             {
                 //工单资源检查信息
@@ -434,6 +498,25 @@ namespace Business.ResourceExamineManagement
         }
 
         /// <summary>
+        /// 通过ic_bom获取工艺路径数据
+        /// </summary>
+        /// <param name="ic_Boms"></param>
+        /// <returns></returns>
+        public List<mo_mes_technique> GetMesTechniques(List<mo_ic_bom> ic_Boms)
+        {
+            List<mo_mes_technique> techniques = new List<mo_mes_technique>();
+            foreach (var item in ic_Boms)
+            {
+                mo_mes_technique entity = _mes_technique.Find(p => p.bom == item.bom_number && p.bomver == item.version && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted).Result.FirstOrDefault();
+                if (entity != null)
+                {
+                    techniques.Add(entity);
+                }
+            }
+            return techniques;
+        }
+
+        /// <summary>
         /// 递归:获取icbom,icbomchild数据
         /// </summary>
         /// <param name="icBoms"></param>

+ 27 - 0
MicroServices/Business/Business.Test/Business.Test.csproj

@@ -0,0 +1,27 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFramework>net6.0</TargetFramework>
+    <ImplicitUsings>enable</ImplicitUsings>
+    <Nullable>enable</Nullable>
+
+    <IsPackable>false</IsPackable>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
+    <PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
+    <PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
+    <PackageReference Include="coverlet.collector" Version="3.1.2" />
+    <PackageReference Include="xunit" Version="2.4.2" />
+    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
+      <PrivateAssets>all</PrivateAssets>
+      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+    </PackageReference>
+  </ItemGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="..\Business.Application\Business.Application.csproj" />
+  </ItemGroup>
+
+</Project>

+ 77 - 0
MicroServices/Business/Business.Test/ProductExamineTest.cs

@@ -0,0 +1,77 @@
+using Business.Core.MongoDBHelper;
+using Business.ResourceExamineManagement;
+using Business.ResourceExamineManagement.Dto;
+using Bussiness.MongoModel.Tech;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Security.Policy;
+using System.Text;
+using System.Threading.Tasks;
+using Xunit;
+
+namespace Business.Test
+{
+    /// <summary>
+    /// 产能检查单元测试类
+    /// </summary>
+    public class ProductExamineTest
+    {
+        #region 服务
+        /// <summary>
+        /// 工艺路径
+        /// </summary>
+        private readonly IMongoDB<mo_mes_technique> _mes_technique;
+
+        /// <summary>
+        /// 工序
+        /// </summary>
+        private readonly IMongoDB<mo_mes_process> _mes_process;
+
+        /// <summary>
+        /// 工艺关联工序
+        /// </summary>
+        private readonly IMongoDB<mo_mes_tech_process> _mes_tech_process;
+
+
+        /// <summary>
+        /// 工艺工序关联工位
+        /// </summary>
+        private readonly IMongoDB<mo_mes_tech_proc_workshop> _mes_tech_proc_workshop;
+        #endregion
+
+        public ProductExamineTest(
+            IMongoDB<mo_mes_technique> mes_technique,
+            IMongoDB<mo_mes_process> mes_process,
+            IMongoDB<mo_mes_tech_process> mes_tech_process,
+            IMongoDB<mo_mes_tech_proc_workshop> mes_tech_proc_workshop
+            )
+        {
+            _mes_technique = mes_technique;
+            _mes_process = mes_process;
+            _mes_tech_process = mes_tech_process;
+            _mes_tech_proc_workshop = mes_tech_proc_workshop;
+        }
+
+        [Fact]
+        public void ProductExamine()
+        {
+            ////Arrange
+            //var sut = new ProductExamineAppService(_mes_technique, _mes_process, _mes_tech_process, _mes_tech_proc_workshop);
+            ////走自制
+            //ProdExamineParamDto prodExamine = new ProdExamineParamDto()
+            //{
+            //    bom_number = "R650K",
+            //    version = "3.0",
+            //    packages = 1000,
+            //    tenantId = 102,
+            //    factoryId = 10201
+
+            //};
+            ////Act
+            //var result = await sut.ProductiveExamine(prodExamine);
+            ////Assert
+            //Xunit.Assert.Equal(5, result);
+        }
+    }
+}

+ 1 - 0
MicroServices/Business/Business.Test/Usings.cs

@@ -0,0 +1 @@
+global using Microsoft.VisualStudio.TestTools.UnitTesting;

+ 9 - 0
MicroServices/Business/Business.sln

@@ -25,6 +25,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bussiness.MongoModel", "Bus
 EndProject
 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{4523E5A9-9492-49A2-8A1A-46080749D966}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Business.Test", "Business.Test\Business.Test.csproj", "{66017D12-2115-4DC9-B400-E5E57EE2D16E}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -71,10 +73,17 @@ Global
 		{604EACA4-3A26-425C-91B3-4516BA5282BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{604EACA4-3A26-425C-91B3-4516BA5282BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{604EACA4-3A26-425C-91B3-4516BA5282BB}.Release|Any CPU.Build.0 = Release|Any CPU
+		{66017D12-2115-4DC9-B400-E5E57EE2D16E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{66017D12-2115-4DC9-B400-E5E57EE2D16E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{66017D12-2115-4DC9-B400-E5E57EE2D16E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{66017D12-2115-4DC9-B400-E5E57EE2D16E}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 	EndGlobalSection
+	GlobalSection(NestedProjects) = preSolution
+		{66017D12-2115-4DC9-B400-E5E57EE2D16E} = {4523E5A9-9492-49A2-8A1A-46080749D966}
+	EndGlobalSection
 	GlobalSection(ExtensibilityGlobals) = postSolution
 		SolutionGuid = {2E43F5D5-31CD-4424-A538-4C716E71D9AF}
 	EndGlobalSection