From 18a6f6d9d7a4f5a4b0282d0316d87bed41b2dc13 Mon Sep 17 00:00:00 2001 From: mahao Date: Mon, 27 Feb 2023 15:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E6=8E=A5=E5=8F=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BA=8B=E5=8A=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Logs/logs20230227.txt | 2776 +++++++++++++++++ src/WmsWebApi.Application/Boms/BomService.cs | 51 +- .../PPlan/PPlanService.cs | 43 +- .../ProductRecieve/ProductRecieveService.cs | 61 +- .../Purchase/PurchaseService.cs | 44 +- .../StockMove/StockMoveService.cs | 53 +- .../TbParts/PartService.cs | 52 +- .../ZlldcjLogs/ZlldcjLogAppService.cs | 2 + .../StockMove/StockMoveManager.cs | 4 +- ...sWebApiDbContextModelCreatingExtensions.cs | 22 + 10 files changed, 3017 insertions(+), 91 deletions(-) diff --git a/host/WmsWebApi.HttpApi.Host/Logs/logs20230227.txt b/host/WmsWebApi.HttpApi.Host/Logs/logs20230227.txt index cd1d410..99ebecf 100644 --- a/host/WmsWebApi.HttpApi.Host/Logs/logs20230227.txt +++ b/host/WmsWebApi.HttpApi.Host/Logs/logs20230227.txt @@ -2464,3 +2464,2779 @@ VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); 2023-02-27 10:32:12.986 +08:00 [DBG] Added 0 entity changes to the current audit log 2023-02-27 10:32:12.986 +08:00 [DBG] Added 0 entity changes to the current audit log 2023-02-27 10:32:12.986 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/OtherZll/add application/json 585 - 200 - application/json;+charset=utf-8 17220.6263ms +2023-02-27 11:07:33.832 +08:00 [INF] Application is shutting down... +2023-02-27 13:21:06.371 +08:00 [INF] Starting web host. +2023-02-27 13:21:12.393 +08:00 [INF] 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-27 13:21:12.467 +08:00 [INF] Loaded ABP modules: +2023-02-27 13:21:12.467 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiHostModule +2023-02-27 13:21:12.467 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationModule +2023-02-27 13:21:12.467 +08:00 [INF] - WmsWebApi.WmsWebApiDomainModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2023-02-27 13:21:12.467 +08:00 [INF] - WmsWebApi.WmsWebApiDomainSharedModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2023-02-27 13:21:12.467 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationContractsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2023-02-27 13:21:12.467 +08:00 [INF] - WmsWebApi.EntityFrameworkCore.WmsWebApiEntityFrameworkCoreModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Dapper.AbpDapperModule +2023-02-27 13:21:12.467 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2023-02-27 13:21:12.467 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2023-02-27 13:21:13.108 +08:00 [INF] Initialized all ABP modules. +2023-02-27 13:21:13.177 +08:00 [INF] Now listening on: http://localhost:5000 +2023-02-27 13:21:13.177 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2023-02-27 13:21:13.177 +08:00 [INF] Hosting environment: Development +2023-02-27 13:21:13.177 +08:00 [INF] Content root path: E:\我的工作\派格接口\WmsWebApi\host\WmsWebApi.HttpApi.Host +2023-02-27 13:21:13.610 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/ - - +2023-02-27 13:21:13.637 +08:00 [WRN] Failed to determine the https port for redirect. +2023-02-27 13:21:14.879 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'SettingManagementDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:21:16.095 +08:00 [INF] Executed DbCommand (652ms) [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 +2023-02-27 13:21:16.301 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'SettingManagementDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:21:16.309 +08:00 [INF] Executed DbCommand (6ms) [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 +2023-02-27 13:21:16.352 +08:00 [INF] Executing endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 13:21:16.386 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller WmsWebApi.Controllers.HomeController (WmsWebApi.HttpApi.Host). +2023-02-27 13:21:16.453 +08:00 [INF] Executing action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) - Validation state: "Valid" +2023-02-27 13:21:16.458 +08:00 [INF] Executed action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host), returned result Microsoft.AspNetCore.Mvc.RedirectResult in 0.2841ms. +2023-02-27 13:21:16.461 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2023-02-27 13:21:16.465 +08:00 [INF] Executed action WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) in 75.8423ms +2023-02-27 13:21:16.465 +08:00 [INF] Executed endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 13:21:16.477 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/ - - - 302 0 - 2867.3722ms +2023-02-27 13:21:16.486 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/index.html - - +2023-02-27 13:21:16.575 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - +2023-02-27 13:21:16.575 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/index.html - - - 200 - text/html;charset=utf-8 89.5954ms +2023-02-27 13:21:16.577 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - - 200 12014 application/javascript;+charset=utf-8 1.6653ms +2023-02-27 13:21:16.580 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - +2023-02-27 13:21:16.595 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 15.3219ms +2023-02-27 13:21:16.650 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - +2023-02-27 13:21:16.764 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 114.7471ms +2023-02-27 13:21:20.325 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/bom/add application/json 2803 +2023-02-27 13:21:20.327 +08:00 [INF] Executing endpoint 'WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:21:20.335 +08:00 [INF] Route matched with {action = "Add", controller = "Bom", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.Boms.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.Boms.BomService (WmsWebApi.Application). +2023-02-27 13:21:21.000 +08:00 [INF] Executing action method WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBOMDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBom'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'MENGE' on entity type 'WmsWebApiBomDetail'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'GSMNG' on entity type 'WmsWebApiPPLANDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TA_BOM'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'CustPackQty' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'CustPalletCapacity' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'ContainerQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'LinesidePackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'MaxQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'MinQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'SafeQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'SamplePercent' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'SingleWeight' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'StockPackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'BarCodeQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'FinishedQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'InQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'NotInQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'PackQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.176 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 13:21:21.203 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:21:23.334 +08:00 [INF] Executed DbCommand (2,085ms) [Parameters=[@___bom_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @___bom_MATNR_0 +2023-02-27 13:21:35.640 +08:00 [INF] Executed DbCommand (12,203ms) [Parameters=[@__p_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT CASE + WHEN EXISTS ( + SELECT 1 + FROM [TM_PG_PARTGROUP] AS [t] + WHERE ([t].[IsBom] = CAST(1 AS bit)) AND ([t].[PARTGROUP] = @__p_0)) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END +2023-02-27 13:21:35.676 +08:00 [INF] Executed action method WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 14675.4413ms. +2023-02-27 13:21:37.670 +08:00 [INF] Executed DbCommand (1,931ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p2='?' (Size = 4000), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 50), @p8='?' (Size = 20), @p9='?' (Size = 4000), @p10='?' (Size = 4000), @p11='?' (Size = 4000), @p12='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiBOMDTO] ([Id], [BMENG], [DATUV], [DYSJ], [ITYPE], [JSON], [LOEKZ], [MAKTX], [MATNR], [STLAL], [STLAN], [STLST], [WERKS]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12); +2023-02-27 13:21:37.688 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:21:37.688 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:21:37.757 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.Boms.ReturnResult'. +2023-02-27 13:21:37.762 +08:00 [INF] Executed action WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application) in 17426.9569ms +2023-02-27 13:21:37.762 +08:00 [INF] Executed endpoint 'WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:21:37.855 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:21:38.002 +08:00 [INF] Executed DbCommand (94ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:21:38.079 +08:00 [INF] Executed DbCommand (76ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:21:38.104 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:21:38.104 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:21:38.106 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/bom/add application/json 2803 - 200 - application/json;+charset=utf-8 17780.7468ms +2023-02-27 13:24:55.680 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/bom/add application/json 2803 +2023-02-27 13:24:55.683 +08:00 [INF] Executing endpoint 'WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:24:55.683 +08:00 [INF] Route matched with {action = "Add", controller = "Bom", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.Boms.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.Boms.BomService (WmsWebApi.Application). +2023-02-27 13:24:55.702 +08:00 [INF] Executing action method WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:24:55.703 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:25:26.241 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@___bom_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @___bom_MATNR_0 +2023-02-27 13:25:26.246 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__p_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT CASE + WHEN EXISTS ( + SELECT 1 + FROM [TM_PG_PARTGROUP] AS [t] + WHERE ([t].[IsBom] = CAST(1 AS bit)) AND ([t].[PARTGROUP] = @__p_0)) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END +2023-02-27 13:25:26.246 +08:00 [INF] Executed action method WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 30544.1953ms. +2023-02-27 13:25:26.291 +08:00 [INF] Executed DbCommand (38ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p2='?' (Size = 4000), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 50), @p8='?' (Size = 20), @p9='?' (Size = 4000), @p10='?' (Size = 4000), @p11='?' (Size = 4000), @p12='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiBOMDTO] ([Id], [BMENG], [DATUV], [DYSJ], [ITYPE], [JSON], [LOEKZ], [MAKTX], [MATNR], [STLAL], [STLAN], [STLST], [WERKS]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12); +2023-02-27 13:25:26.292 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:25:26.292 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:25:26.350 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.Boms.ReturnResult'. +2023-02-27 13:25:26.351 +08:00 [INF] Executed action WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application) in 30667.1366ms +2023-02-27 13:25:26.351 +08:00 [INF] Executed endpoint 'WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:25:26.352 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:25:26.451 +08:00 [INF] Executed DbCommand (88ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:25:26.706 +08:00 [INF] Executed DbCommand (254ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:25:26.737 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:25:26.737 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:25:26.738 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/bom/add application/json 2803 - 200 - application/json;+charset=utf-8 31057.4060ms +2023-02-27 13:28:14.105 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/bom/add application/json 2803 +2023-02-27 13:28:14.111 +08:00 [INF] Executing endpoint 'WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:28:14.111 +08:00 [INF] Route matched with {action = "Add", controller = "Bom", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.Boms.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.Boms.BomService (WmsWebApi.Application). +2023-02-27 13:28:14.129 +08:00 [INF] Executing action method WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:28:14.130 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:28:14.149 +08:00 [INF] Executed DbCommand (7ms) [Parameters=[@___bom_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @___bom_MATNR_0 +2023-02-27 13:28:14.153 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__p_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT CASE + WHEN EXISTS ( + SELECT 1 + FROM [TM_PG_PARTGROUP] AS [t] + WHERE ([t].[IsBom] = CAST(1 AS bit)) AND ([t].[PARTGROUP] = @__p_0)) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END +2023-02-27 13:28:14.187 +08:00 [INF] Executed action method WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 57.8741ms. +2023-02-27 13:28:18.128 +08:00 [INF] Executed DbCommand (3,928ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p2='?' (Size = 4000), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 50), @p8='?' (Size = 20), @p9='?' (Size = 4000), @p10='?' (Size = 4000), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (DbType = Guid), @p14='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p15='?' (Size = 4000), @p16='?' (DbType = Boolean), @p17='?' (DbType = Boolean), @p18='?' (Size = 4000), @p19='?' (Size = 50), @p20='?' (Size = 20), @p21='?' (Size = 4000), @p22='?' (Size = 4000), @p23='?' (Size = 4000), @p24='?' (Size = 4000), @p25='?' (DbType = Guid), @p26='?' (Size = 4000), @p27='?' (Size = 4000), @p28='?' (Size = 4000), @p29='?' (Size = 4000), @p30='?' (Size = 4000), @p31='?' (Size = 4000), @p32='?' (Size = 4000), @p33='?' (Size = 4000), @p34='?' (Size = 4000), @p35='?' (Size = 4000), @p36='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p37='?' (DbType = Guid), @p38='?' (Size = 10), @p39='?' (Size = 4000), @p40='?' (Size = 4000), @p41='?' (Size = 4000), @p42='?' (Size = 4000), @p43='?' (DbType = Guid), @p44='?' (Size = 4000), @p45='?' (Size = 4000), @p46='?' (Size = 4000), @p47='?' (Size = 4000), @p48='?' (Size = 4000), @p49='?' (Size = 4000), @p50='?' (Size = 4000), @p51='?' (Size = 4000), @p52='?' (Size = 4000), @p53='?' (Size = 4000), @p54='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p55='?' (DbType = Guid), @p56='?' (Size = 10), @p57='?' (Size = 4000), @p58='?' (Size = 4000), @p59='?' (Size = 4000), @p60='?' (Size = 4000), @p61='?' (DbType = Guid), @p62='?' (Size = 4000), @p63='?' (Size = 4000), @p64='?' (Size = 4000), @p65='?' (Size = 4000), @p66='?' (Size = 4000), @p67='?' (Size = 4000), @p68='?' (Size = 4000), @p69='?' (Size = 4000), @p70='?' (Size = 4000), @p71='?' (Size = 4000), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p74='?' (Size = 10), @p75='?' (Size = 4000), @p76='?' (Size = 4000), @p77='?' (Size = 4000), @p78='?' (Size = 4000), @p79='?' (DbType = Guid), @p80='?' (Size = 4000), @p81='?' (Size = 4000), @p82='?' (Size = 4000), @p83='?' (Size = 4000), @p84='?' (Size = 4000), @p85='?' (Size = 4000), @p86='?' (Size = 4000), @p87='?' (Size = 4000), @p88='?' (Size = 4000), @p89='?' (Size = 4000), @p90='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p91='?' (DbType = Guid), @p92='?' (Size = 10), @p93='?' (Size = 4000), @p94='?' (Size = 4000), @p95='?' (Size = 4000), @p96='?' (Size = 4000), @p97='?' (DbType = Guid), @p98='?' (Size = 4000), @p99='?' (Size = 4000), @p100='?' (Size = 4000), @p101='?' (Size = 4000), @p102='?' (Size = 4000), @p103='?' (Size = 4000), @p104='?' (Size = 4000), @p105='?' (Size = 4000), @p106='?' (Size = 4000), @p107='?' (Size = 4000), @p108='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p109='?' (DbType = Guid), @p110='?' (Size = 10), @p111='?' (Size = 4000), @p112='?' (Size = 4000), @p113='?' (Size = 4000), @p114='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiBOMDTO] ([Id], [BMENG], [DATUV], [DYSJ], [ITYPE], [JSON], [LOEKZ], [MAKTX], [MATNR], [STLAL], [STLAN], [STLST], [WERKS]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12); +INSERT INTO [WmsWebApiBom] ([Id], [BMENG], [DATUV], [IsDelete], [IsFisRead], [LOEKZ], [MAKTX], [MATNR], [STLAL], [STLAN], [STLST], [WERKS]) +VALUES (@p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22, @p23, @p24); +INSERT INTO [WmsWebApiBomDetail] ([Id], [ALPGR], [ALPRF], [ALPST], [DUMPS], [EWAHR], [IDNRK], [ITSOB], [LGORT], [MAKTX_1], [MEINS], [MENGE], [PId], [POSNR], [POSTP], [SANFE], [SANKA], [SORTF]) +VALUES (@p25, @p26, @p27, @p28, @p29, @p30, @p31, @p32, @p33, @p34, @p35, @p36, @p37, @p38, @p39, @p40, @p41, @p42), +(@p43, @p44, @p45, @p46, @p47, @p48, @p49, @p50, @p51, @p52, @p53, @p54, @p55, @p56, @p57, @p58, @p59, @p60), +(@p61, @p62, @p63, @p64, @p65, @p66, @p67, @p68, @p69, @p70, @p71, @p72, @p73, @p74, @p75, @p76, @p77, @p78), +(@p79, @p80, @p81, @p82, @p83, @p84, @p85, @p86, @p87, @p88, @p89, @p90, @p91, @p92, @p93, @p94, @p95, @p96), +(@p97, @p98, @p99, @p100, @p101, @p102, @p103, @p104, @p105, @p106, @p107, @p108, @p109, @p110, @p111, @p112, @p113, @p114); +2023-02-27 13:28:18.132 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:28:18.132 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:28:19.616 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.Boms.ReturnResult'. +2023-02-27 13:28:19.616 +08:00 [INF] Executed action WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application) in 5505.1207ms +2023-02-27 13:28:19.616 +08:00 [INF] Executed endpoint 'WmsWebApi.Boms.BomService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:28:19.617 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:28:22.039 +08:00 [INF] Executed DbCommand (2,417ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:28:27.306 +08:00 [INF] Executed DbCommand (5,265ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:28:27.606 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:28:27.606 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:28:27.607 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/bom/add application/json 2803 - 200 - application/json;+charset=utf-8 13506.4315ms +2023-02-27 13:35:25.731 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/part/add application/json 469 +2023-02-27 13:35:25.737 +08:00 [INF] Executing endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:35:25.739 +08:00 [INF] Route matched with {action = "Add", controller = "Part", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.Parts.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.Parts.PartService (WmsWebApi.Application). +2023-02-27 13:35:25.955 +08:00 [INF] Executing action method WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:36:53.376 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:36:53.798 +08:00 [INF] Executed DbCommand (359ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 50), @p10='?' (Size = 10), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPARTDTO] ([Id], [DISGR], [DYSJ], [GROES], [ITYPE], [JSON], [MAKTX], [MAKTX1], [MATKL], [MATNR], [MBRSH], [MEINS], [MTART], [VTWEG], [WERKS], [ZTEXT22]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15); +2023-02-27 13:36:53.835 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:36:53.835 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:36:55.652 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 13:36:55.653 +08:00 [INF] Executed action WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) in 89913.3095ms +2023-02-27 13:36:55.653 +08:00 [INF] Executed endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:36:55.693 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:37:05.465 +08:00 [INF] Executed DbCommand (9,742ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:37:15.387 +08:00 [INF] Executed DbCommand (9,922ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:37:16.002 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:37:16.002 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:37:16.003 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/part/add application/json 469 - 200 - application/json;+charset=utf-8 110271.9413ms +2023-02-27 13:38:11.180 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/part/add application/json 469 +2023-02-27 13:38:11.181 +08:00 [INF] Executing endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:38:11.181 +08:00 [INF] Route matched with {action = "Add", controller = "Part", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.Parts.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.Parts.PartService (WmsWebApi.Application). +2023-02-27 13:38:11.198 +08:00 [INF] Executing action method WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:38:29.400 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:38:30.192 +08:00 [INF] Executed DbCommand (779ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 50), @p10='?' (Size = 10), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPARTDTO] ([Id], [DISGR], [DYSJ], [GROES], [ITYPE], [JSON], [MAKTX], [MAKTX1], [MATKL], [MATNR], [MBRSH], [MEINS], [MTART], [VTWEG], [WERKS], [ZTEXT22]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15); +2023-02-27 13:38:30.340 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:38:30.340 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:38:32.753 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 13:38:32.756 +08:00 [INF] Executed action WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) in 21575.1144ms +2023-02-27 13:38:32.756 +08:00 [INF] Executed endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:38:32.758 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:38:37.337 +08:00 [INF] Executed DbCommand (4,573ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:38:42.395 +08:00 [INF] Executed DbCommand (5,058ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:38:42.879 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:38:42.879 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:38:42.880 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/part/add application/json 469 - 200 - application/json;+charset=utf-8 31700.2643ms +2023-02-27 13:38:56.689 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 +2023-02-27 13:38:56.690 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:38:56.692 +08:00 [INF] Route matched with {action = "Add", controller = "PPlan", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PPlanService (WmsWebApi.Application). +2023-02-27 13:38:56.999 +08:00 [INF] Executing action method WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:39:01.407 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:39:02.886 +08:00 [INF] Executed DbCommand (1,453ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 20), @p10='?' (Size = 2), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000), @p16='?' (Size = 4000), @p17='?' (Size = 4000), @p18='?' (Size = 4000), @p19='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPPLANDTO] ([Id], [DISPO], [DYSJ], [GSMNG], [ITYPE], [JSON], [KAPTPROG], [MAKTX], [MATNR], [PEDTR], [SCHGRUP], [VERID], [WERKS], [XUBNAME], [ZBZSM], [ZCDATE], [ZCTIME], [ZMACD], [ZMATX], [ZSCSX]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19); +2023-02-27 13:39:03.061 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:39:03.061 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:39:03.062 +08:00 [INF] Executed action method WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 6063.0372ms. +2023-02-27 13:39:03.062 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.PPlan.ReturnResult'. +2023-02-27 13:39:03.064 +08:00 [INF] Executed action WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) in 6371.1501ms +2023-02-27 13:39:03.064 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:39:03.064 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:39:03.074 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:39:03.138 +08:00 [INF] Executed DbCommand (63ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:39:03.158 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:39:03.158 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:39:03.159 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 - 200 - application/json;+charset=utf-8 6469.4531ms +2023-02-27 13:40:27.959 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 +2023-02-27 13:40:27.960 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:40:27.960 +08:00 [INF] Route matched with {action = "Add", controller = "PPlan", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PPlanService (WmsWebApi.Application). +2023-02-27 13:40:27.980 +08:00 [INF] Executing action method WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:40:27.985 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:40:31.189 +08:00 [INF] Executed DbCommand (3,189ms) [Parameters=[@___billnum_0='?' (Size = 64)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[BillNum] = @___billnum_0 +2023-02-27 13:40:31.203 +08:00 [INF] Executed DbCommand (6ms) [Parameters=[@__tbBill_BillNum_0='?' (Size = 64)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[BillNum] = @__tbBill_BillNum_0 +2023-02-27 13:40:41.821 +08:00 [INF] Executed DbCommand (10,578ms) [Parameters=[@___planDto_PEDTR_0='?' (Size = 450), @___planDto_SCHGRUP_1='?' (Size = 4000), @___planDto_KAPTPROG_2='?' (Size = 450), @___planDto_MATNR_3='?' (Size = 450)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[PartCode], [t].[BillNum], [t].[PlanTime], [t].[PlanShiftName], [t].[BarCodeQty], [t].[BillLine], [t].[BomVersion], [t].[FinishedQty], [t].[Group], [t].[House], [t].[UID], [t].[InQty], [t].[IsMin], [t].[IsPlus], [t].[IsPrinted], [t].[IsProduct], [t].[ModifyTime], [t].[NotInQty], [t].[PackQty], [t].[PlannedOrderParameter], [t].[Qty], [t].[Remark], [t].[Seq], [t].[ShiftName], [t].[State] +FROM [TM_PG_PLAN] AS [t] +WHERE ((([t].[PlanTime] = @___planDto_PEDTR_0) AND ([t].[Group] = @___planDto_SCHGRUP_1)) AND ([t].[PlanShiftName] = @___planDto_KAPTPROG_2)) AND ([t].[PartCode] = @___planDto_MATNR_3) +2023-02-27 13:40:44.398 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:40:46.162 +08:00 [INF] Executed DbCommand (1,729ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 20), @p10='?' (Size = 2), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000), @p16='?' (Size = 4000), @p17='?' (Size = 4000), @p18='?' (Size = 4000), @p19='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPPLANDTO] ([Id], [DISPO], [DYSJ], [GSMNG], [ITYPE], [JSON], [KAPTPROG], [MAKTX], [MATNR], [PEDTR], [SCHGRUP], [VERID], [WERKS], [XUBNAME], [ZBZSM], [ZCDATE], [ZCTIME], [ZMACD], [ZMATX], [ZSCSX]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19); +2023-02-27 13:40:47.684 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:40:47.684 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:40:47.684 +08:00 [INF] Executed action method WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 19703.5802ms. +2023-02-27 13:41:09.951 +08:00 [INF] Executed DbCommand (22,254ms) [Parameters=[@p0='?' (DbType = DateTime2), @p1='?' (Size = 64), @p2='?' (DbType = DateTime2), @p3='?' (DbType = Int32), @p4='?' (Size = 50), @p5='?' (DbType = Int32), @p6='?' (Size = 4000), @p7='?' (Size = 50), @p8='?' (Size = 50), @p9='?' (Size = 50), @p10='?' (DbType = Guid), @p11='?' (Size = 4000), @p12='?' (Size = 50), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000), @p16='?' (Size = 4000), @p17='?' (Size = 50), @p18='?' (DbType = Int32), @p19='?' (DbType = Int32), @p20='?' (Size = 50), @p21='?' (Size = 50), @p22='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [TB_BILL] ([AccountDate], [BillNum], [BillTime], [BillType], [CustId], [DetailQty], [DockCode], [FinishTime], [GateCode], [GateName], [Guid], [OperName], [ProjectId], [Remark], [SourceBillNum], [SourceBillNum2], [SourceBillNum3], [StartTime], [State], [SubBillType], [TransportType], [TruckNum], [VendId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22); +SELECT [UID] +FROM [TB_BILL] +WHERE @@ROWCOUNT = 1 AND [UID] = scope_identity(); +2023-02-27 13:41:12.777 +08:00 [INF] Executed DbCommand (2,807ms) [Parameters=[@p0='?' (Size = 50), @p1='?' (Size = 450), @p2='?' (Size = 450), @p3='?' (Size = 450), @p4='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p5='?' (DbType = Int32), @p6='?' (Size = 4000), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p11='?' (DbType = Int32), @p12='?' (DbType = Int32), @p13='?' (DbType = Int32), @p14='?' (DbType = Int32), @p15='?' (DbType = DateTime2), @p16='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (Size = 50), @p19='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p20='?' (Size = 4000), @p21='?' (DbType = Int32), @p22='?' (Size = 4000), @p23='?' (DbType = Int32)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [TM_PG_PLAN] ([BillNum], [PartCode], [PlanShiftName], [PlanTime], [BarCodeQty], [BillLine], [BomVersion], [FinishedQty], [Group], [House], [InQty], [IsMin], [IsPlus], [IsPrinted], [IsProduct], [ModifyTime], [NotInQty], [PackQty], [PlannedOrderParameter], [Qty], [Remark], [Seq], [ShiftName], [State]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22, @p23); +SELECT [UID] +FROM [TM_PG_PLAN] +WHERE @@ROWCOUNT = 1 AND [BillNum] = @p0 AND [PartCode] = @p1 AND [PlanShiftName] = @p2 AND [PlanTime] = @p3; +2023-02-27 13:41:12.783 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:41:12.784 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:41:12.911 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.PPlan.ReturnResult'. +2023-02-27 13:41:12.912 +08:00 [INF] Executed action WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) in 44951.1774ms +2023-02-27 13:41:12.912 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:41:12.918 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:41:12.928 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:41:12.969 +08:00 [INF] Executed DbCommand (41ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:41:13.000 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:41:13.000 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:41:13.000 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 - 200 - application/json;+charset=utf-8 45041.6098ms +2023-02-27 13:48:35.143 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 +2023-02-27 13:48:35.145 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:48:35.145 +08:00 [INF] Route matched with {action = "Add", controller = "PPlan", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PPlanService (WmsWebApi.Application). +2023-02-27 13:48:35.164 +08:00 [INF] Executing action method WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:48:35.167 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:48:35.207 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___billnum_0='?' (Size = 64)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[BillNum] = @___billnum_0 +2023-02-27 13:48:35.219 +08:00 [INF] Executed DbCommand (9ms) [Parameters=[@___planDto_PEDTR_0='?' (Size = 450), @___planDto_SCHGRUP_1='?' (Size = 4000), @___planDto_KAPTPROG_2='?' (Size = 450), @___planDto_MATNR_3='?' (Size = 450)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[PartCode], [t].[BillNum], [t].[PlanTime], [t].[PlanShiftName], [t].[BarCodeQty], [t].[BillLine], [t].[BomVersion], [t].[FinishedQty], [t].[Group], [t].[House], [t].[UID], [t].[InQty], [t].[IsMin], [t].[IsPlus], [t].[IsPrinted], [t].[IsProduct], [t].[ModifyTime], [t].[NotInQty], [t].[PackQty], [t].[PlannedOrderParameter], [t].[Qty], [t].[Remark], [t].[Seq], [t].[ShiftName], [t].[State] +FROM [TM_PG_PLAN] AS [t] +WHERE ((([t].[PlanTime] = @___planDto_PEDTR_0) AND ([t].[Group] = @___planDto_SCHGRUP_1)) AND ([t].[PlanShiftName] = @___planDto_KAPTPROG_2)) AND ([t].[PartCode] = @___planDto_MATNR_3) +2023-02-27 13:49:56.214 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:49:59.028 +08:00 [INF] Executed DbCommand (2,782ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 20), @p10='?' (Size = 2), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000), @p16='?' (Size = 4000), @p17='?' (Size = 4000), @p18='?' (Size = 4000), @p19='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPPLANDTO] ([Id], [DISPO], [DYSJ], [GSMNG], [ITYPE], [JSON], [KAPTPROG], [MAKTX], [MATNR], [PEDTR], [SCHGRUP], [VERID], [WERKS], [XUBNAME], [ZBZSM], [ZCDATE], [ZCTIME], [ZMACD], [ZMATX], [ZSCSX]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19); +2023-02-27 13:50:02.191 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:50:02.192 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:50:07.378 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 13:50:07.378 +08:00 [INF] Executed action WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) in 92233.1809ms +2023-02-27 13:50:07.378 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:50:07.380 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:50:16.152 +08:00 [INF] Executed DbCommand (8,744ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:50:21.528 +08:00 [INF] Executed DbCommand (5,375ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:50:22.473 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:50:22.473 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:50:22.474 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 - 200 - application/json;+charset=utf-8 107330.9338ms +2023-02-27 13:51:00.045 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 +2023-02-27 13:51:00.047 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:51:00.047 +08:00 [INF] Route matched with {action = "Add", controller = "PPlan", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PPlanService (WmsWebApi.Application). +2023-02-27 13:51:00.070 +08:00 [INF] Executing action method WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:51:00.073 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:51:00.083 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@___billnum_0='?' (Size = 64)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[BillNum] = @___billnum_0 +2023-02-27 13:51:00.095 +08:00 [INF] Executed DbCommand (8ms) [Parameters=[@___planDto_PEDTR_0='?' (Size = 450), @___planDto_SCHGRUP_1='?' (Size = 4000), @___planDto_KAPTPROG_2='?' (Size = 450), @___planDto_MATNR_3='?' (Size = 450)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[PartCode], [t].[BillNum], [t].[PlanTime], [t].[PlanShiftName], [t].[BarCodeQty], [t].[BillLine], [t].[BomVersion], [t].[FinishedQty], [t].[Group], [t].[House], [t].[UID], [t].[InQty], [t].[IsMin], [t].[IsPlus], [t].[IsPrinted], [t].[IsProduct], [t].[ModifyTime], [t].[NotInQty], [t].[PackQty], [t].[PlannedOrderParameter], [t].[Qty], [t].[Remark], [t].[Seq], [t].[ShiftName], [t].[State] +FROM [TM_PG_PLAN] AS [t] +WHERE ((([t].[PlanTime] = @___planDto_PEDTR_0) AND ([t].[Group] = @___planDto_SCHGRUP_1)) AND ([t].[PlanShiftName] = @___planDto_KAPTPROG_2)) AND ([t].[PartCode] = @___planDto_MATNR_3) +2023-02-27 13:51:00.134 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:51:00.209 +08:00 [INF] Executed DbCommand (69ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 20), @p10='?' (Size = 2), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000), @p16='?' (Size = 4000), @p17='?' (Size = 4000), @p18='?' (Size = 4000), @p19='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPPLANDTO] ([Id], [DISPO], [DYSJ], [GSMNG], [ITYPE], [JSON], [KAPTPROG], [MAKTX], [MATNR], [PEDTR], [SCHGRUP], [VERID], [WERKS], [XUBNAME], [ZBZSM], [ZCDATE], [ZCTIME], [ZMACD], [ZMATX], [ZSCSX]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19); +2023-02-27 13:51:00.395 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:51:00.395 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:51:00.395 +08:00 [INF] Executed action method WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 325.3006ms. +2023-02-27 13:51:00.397 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:51:00.414 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.PPlan.ReturnResult'. +2023-02-27 13:51:00.415 +08:00 [INF] Executed action WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) in 367.7652ms +2023-02-27 13:51:00.415 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:51:00.415 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:51:00.424 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:51:00.429 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:51:00.458 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:51:00.458 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:51:00.459 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 - 200 - application/json;+charset=utf-8 413.2390ms +2023-02-27 13:52:20.232 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 +2023-02-27 13:52:20.233 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:52:20.233 +08:00 [INF] Route matched with {action = "Add", controller = "PPlan", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PPlanService (WmsWebApi.Application). +2023-02-27 13:52:20.255 +08:00 [INF] Executing action method WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 13:52:20.256 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:52:20.267 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@___billnum_0='?' (Size = 64)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[BillNum] = @___billnum_0 +2023-02-27 13:52:20.276 +08:00 [INF] Executed DbCommand (8ms) [Parameters=[@___planDto_PEDTR_0='?' (Size = 450), @___planDto_SCHGRUP_1='?' (Size = 4000), @___planDto_KAPTPROG_2='?' (Size = 450), @___planDto_MATNR_3='?' (Size = 450)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[PartCode], [t].[BillNum], [t].[PlanTime], [t].[PlanShiftName], [t].[BarCodeQty], [t].[BillLine], [t].[BomVersion], [t].[FinishedQty], [t].[Group], [t].[House], [t].[UID], [t].[InQty], [t].[IsMin], [t].[IsPlus], [t].[IsPrinted], [t].[IsProduct], [t].[ModifyTime], [t].[NotInQty], [t].[PackQty], [t].[PlannedOrderParameter], [t].[Qty], [t].[Remark], [t].[Seq], [t].[ShiftName], [t].[State] +FROM [TM_PG_PLAN] AS [t] +WHERE ((([t].[PlanTime] = @___planDto_PEDTR_0) AND ([t].[Group] = @___planDto_SCHGRUP_1)) AND ([t].[PlanShiftName] = @___planDto_KAPTPROG_2)) AND ([t].[PartCode] = @___planDto_MATNR_3) +2023-02-27 13:52:20.306 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:52:21.499 +08:00 [INF] Executed DbCommand (1,187ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 20), @p10='?' (Size = 2), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000), @p16='?' (Size = 4000), @p17='?' (Size = 4000), @p18='?' (Size = 4000), @p19='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPPLANDTO] ([Id], [DISPO], [DYSJ], [GSMNG], [ITYPE], [JSON], [KAPTPROG], [MAKTX], [MATNR], [PEDTR], [SCHGRUP], [VERID], [WERKS], [XUBNAME], [ZBZSM], [ZCDATE], [ZCTIME], [ZMACD], [ZMATX], [ZSCSX]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19); +2023-02-27 13:52:22.586 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:52:22.586 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:52:22.586 +08:00 [INF] Executed action method WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 2331.1147ms. +2023-02-27 13:52:22.588 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:52:23.050 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.PPlan.ReturnResult'. +2023-02-27 13:52:23.051 +08:00 [INF] Executed action WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application) in 2817.9562ms +2023-02-27 13:52:23.051 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PPlanService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:52:23.052 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:52:23.064 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:52:23.069 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:52:23.160 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:52:23.160 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:52:23.161 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/PPlan/add application/json 469 - 200 - application/json;+charset=utf-8 2929.3491ms +2023-02-27 13:56:34.003 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 1210 +2023-02-27 13:56:34.004 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:56:34.007 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 13:56:36.718 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 13:56:36.718 +08:00 [INF] Executed action WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) in 2711.1247ms +2023-02-27 13:56:36.718 +08:00 [INF] Executed endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:56:36.749 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:56:37.384 +08:00 [INF] Executed DbCommand (605ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:56:40.439 +08:00 [INF] Executed DbCommand (3,054ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:56:40.656 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:56:40.656 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:56:40.657 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 1210 - 200 - application/json;+charset=utf-8 6653.5093ms +2023-02-27 13:57:12.759 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 887 +2023-02-27 13:57:12.760 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:57:12.760 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 13:57:15.276 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 13:57:15.276 +08:00 [INF] Executed action WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) in 2516.1478ms +2023-02-27 13:57:15.276 +08:00 [INF] Executed endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:57:15.287 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 13:57:15.298 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 13:57:15.302 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 13:57:15.668 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:57:15.668 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 13:57:15.668 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 887 - 200 - application/json;+charset=utf-8 2909.7277ms +2023-02-27 13:59:19.134 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 +2023-02-27 13:59:19.136 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 13:59:19.136 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 13:59:19.162 +08:00 [INF] Executing action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:00:08.184 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:00:09.581 +08:00 [ERR] Failed executing DbCommand (1,344ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [ProductRecieveDtos] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 14:00:09.596 +08:00 [ERR] An exception occurred in the database while saving changes for context type 'WmsWebApi.EntityFrameworkCore.WmsWebApiDbContext'. +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'ProductRecieveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:ce9e4538-7d7b-4043-83cb-24e059725a6d +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'ProductRecieveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:ce9e4538-7d7b-4043-83cb-24e059725a6d +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.EntityFrameworkCore.AbpDbContext`1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.Uow.UnitOfWork.SaveChangesAsync(CancellationToken cancellationToken) +2023-02-27 14:00:11.627 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:00:11.627 +08:00 [INF] Executed action WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) in 52491.0413ms +2023-02-27 14:00:11.627 +08:00 [INF] Executed endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:00:11.630 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:00:13.044 +08:00 [INF] Executed DbCommand (1,406ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = -1), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:00:13.049 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:00:13.139 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:00:13.139 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:00:13.140 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 - 200 - application/json;+charset=utf-8 54006.2167ms +2023-02-27 14:06:56.683 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 +2023-02-27 14:06:56.689 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:06:56.689 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 14:06:56.718 +08:00 [INF] Executing action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:07:10.713 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:07:16.671 +08:00 [INF] Executed DbCommand (5,869ms) [Parameters=[@__item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_PartCode_0 +2023-02-27 14:07:39.563 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:07:40.141 +08:00 [ERR] Failed executing DbCommand (548ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [ProductRecieveDtos] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 14:07:40.148 +08:00 [ERR] An exception occurred in the database while saving changes for context type 'WmsWebApi.EntityFrameworkCore.WmsWebApiDbContext'. +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'ProductRecieveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:688c9235-e109-44be-9d30-3d875e04ad3c +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'ProductRecieveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:688c9235-e109-44be-9d30-3d875e04ad3c +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.EntityFrameworkCore.AbpDbContext`1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.Uow.UnitOfWork.SaveChangesAsync(CancellationToken cancellationToken) +2023-02-27 14:07:41.921 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:07:41.921 +08:00 [INF] Executed action WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) in 45231.9043ms +2023-02-27 14:07:41.921 +08:00 [INF] Executed endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:07:41.924 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:07:44.207 +08:00 [INF] Executed DbCommand (2,251ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = -1), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:07:44.212 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:07:44.743 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:07:44.743 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:07:44.743 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 - 200 - application/json;+charset=utf-8 48061.3259ms +2023-02-27 14:08:08.263 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 +2023-02-27 14:08:08.264 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:08:08.264 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 14:08:08.288 +08:00 [INF] Executing action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:08:14.033 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:08:14.087 +08:00 [INF] Executed DbCommand (41ms) [Parameters=[@__item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_PartCode_0 +2023-02-27 14:10:26.854 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:10:26.873 +08:00 [ERR] Failed executing DbCommand (5ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [ProductRecieveDtos] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 14:10:26.878 +08:00 [ERR] An exception occurred in the database while saving changes for context type 'WmsWebApi.EntityFrameworkCore.WmsWebApiDbContext'. +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'ProductRecieveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:688c9235-e109-44be-9d30-3d875e04ad3c +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'ProductRecieveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:688c9235-e109-44be-9d30-3d875e04ad3c +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.EntityFrameworkCore.AbpDbContext`1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.Uow.UnitOfWork.SaveChangesAsync(CancellationToken cancellationToken) + at WmsWebApi.ProductRecieve.ProductRecieveService.AddWmsWebApiProductRecieveDTONowUnitOfWorkAsync(WmsWebApiProductRecieveDTO wmsWebApiProductRecieveDTO) +2023-02-27 14:10:28.854 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:10:28.854 +08:00 [INF] Executed action WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) in 140589.6063ms +2023-02-27 14:10:28.854 +08:00 [INF] Executed endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:10:28.857 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:10:28.870 +08:00 [INF] Executed DbCommand (7ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = -1), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:10:28.875 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:10:29.734 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:10:29.734 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:10:29.734 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 - 200 - application/json;+charset=utf-8 141471.0719ms +2023-02-27 14:10:50.588 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 +2023-02-27 14:10:50.590 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:10:50.590 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 14:10:50.616 +08:00 [INF] Executing action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:10:56.965 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:10:57.011 +08:00 [INF] Executed DbCommand (42ms) [Parameters=[@__item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_PartCode_0 +2023-02-27 14:11:30.930 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:11:33.383 +08:00 [ERR] Failed executing DbCommand (24ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [ProductRecieveDtos] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 14:11:33.389 +08:00 [ERR] An exception occurred in the database while saving changes for context type 'WmsWebApi.EntityFrameworkCore.WmsWebApiDbContext'. +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'ProductRecieveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:4fa60cbd-e2ac-44f9-8f2f-959b54be241e +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'ProductRecieveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:4fa60cbd-e2ac-44f9-8f2f-959b54be241e +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.EntityFrameworkCore.AbpDbContext`1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.Uow.UnitOfWork.SaveChangesAsync(CancellationToken cancellationToken) +2023-02-27 14:20:03.520 +08:00 [INF] Starting web host. +2023-02-27 14:20:06.374 +08:00 [INF] 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-27 14:20:06.434 +08:00 [INF] Loaded ABP modules: +2023-02-27 14:20:06.434 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiHostModule +2023-02-27 14:20:06.434 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationModule +2023-02-27 14:20:06.434 +08:00 [INF] - WmsWebApi.WmsWebApiDomainModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2023-02-27 14:20:06.434 +08:00 [INF] - WmsWebApi.WmsWebApiDomainSharedModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2023-02-27 14:20:06.434 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationContractsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2023-02-27 14:20:06.434 +08:00 [INF] - WmsWebApi.EntityFrameworkCore.WmsWebApiEntityFrameworkCoreModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Dapper.AbpDapperModule +2023-02-27 14:20:06.434 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2023-02-27 14:20:06.434 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2023-02-27 14:20:06.776 +08:00 [INF] Initialized all ABP modules. +2023-02-27 14:20:06.853 +08:00 [INF] Now listening on: http://localhost:5000 +2023-02-27 14:20:06.853 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2023-02-27 14:20:06.853 +08:00 [INF] Hosting environment: Development +2023-02-27 14:20:06.853 +08:00 [INF] Content root path: E:\我的工作\派格接口\WmsWebApi\host\WmsWebApi.HttpApi.Host +2023-02-27 14:20:07.303 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/ - - +2023-02-27 14:20:07.328 +08:00 [WRN] Failed to determine the https port for redirect. +2023-02-27 14:20:08.188 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'SettingManagementDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:20:12.181 +08:00 [INF] Executed DbCommand (3,643ms) [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 +2023-02-27 14:20:12.425 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'SettingManagementDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:20:12.434 +08:00 [INF] Executed DbCommand (6ms) [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 +2023-02-27 14:20:12.490 +08:00 [INF] Executing endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 14:20:12.530 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller WmsWebApi.Controllers.HomeController (WmsWebApi.HttpApi.Host). +2023-02-27 14:20:12.613 +08:00 [INF] Executing action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) - Validation state: "Valid" +2023-02-27 14:20:12.616 +08:00 [INF] Executed action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host), returned result Microsoft.AspNetCore.Mvc.RedirectResult in 0.2623ms. +2023-02-27 14:20:12.620 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2023-02-27 14:20:12.623 +08:00 [INF] Executed action WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) in 89.9776ms +2023-02-27 14:20:12.623 +08:00 [INF] Executed endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 14:20:12.637 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/ - - - 302 0 - 5334.9764ms +2023-02-27 14:20:12.646 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/index.html - - +2023-02-27 14:20:12.739 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/index.html - - - 200 - text/html;charset=utf-8 92.6821ms +2023-02-27 14:20:12.743 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - +2023-02-27 14:20:12.745 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - - 200 12014 application/javascript;+charset=utf-8 2.2179ms +2023-02-27 14:20:12.745 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - +2023-02-27 14:20:12.763 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 18.0813ms +2023-02-27 14:20:12.825 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - +2023-02-27 14:20:12.907 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 81.5363ms +2023-02-27 14:20:28.975 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 +2023-02-27 14:20:28.977 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:20:28.985 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 14:20:29.747 +08:00 [INF] Executing action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBOMDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBom'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'MENGE' on entity type 'WmsWebApiBomDetail'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'GSMNG' on entity type 'WmsWebApiPPLANDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TA_BOM'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'CustPackQty' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'CustPalletCapacity' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'ContainerQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'LinesidePackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'MaxQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'MinQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'SafeQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'SamplePercent' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'SingleWeight' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'StockPackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'BarCodeQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'FinishedQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'InQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'NotInQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'PackQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.044 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:20:33.067 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:20:33.129 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_PartCode_0 +2023-02-27 14:20:35.679 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:20:39.341 +08:00 [INF] Executed DbCommand (3,550ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiProductRecieveDTO] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 14:20:40.283 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:20:40.283 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:20:40.285 +08:00 [INF] Executed action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 10537.5645ms. +2023-02-27 14:20:40.295 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:20:40.305 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ProductRecieve.ReturnResult'. +2023-02-27 14:20:40.312 +08:00 [INF] Executed action WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) in 11326.3179ms +2023-02-27 14:20:40.312 +08:00 [INF] Executed endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:20:40.426 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:20:40.506 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:20:40.513 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:20:41.425 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:20:41.425 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:20:41.429 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 - 200 - application/json;+charset=utf-8 12454.2355ms +2023-02-27 14:25:09.632 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 +2023-02-27 14:25:09.635 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:25:09.635 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 14:25:09.659 +08:00 [INF] Executing action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:25:13.507 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:25:13.527 +08:00 [INF] Executed DbCommand (7ms) [Parameters=[@__item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_PartCode_0 +2023-02-27 14:25:15.169 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:25:18.239 +08:00 [INF] Executed DbCommand (3,063ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiProductRecieveDTO] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 14:25:18.944 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:25:18.944 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:25:18.944 +08:00 [INF] Executed action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 9285.7536ms. +2023-02-27 14:25:18.947 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:25:18.951 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ProductRecieve.ReturnResult'. +2023-02-27 14:25:18.952 +08:00 [INF] Executed action WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) in 9316.1532ms +2023-02-27 14:25:18.952 +08:00 [INF] Executed endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:25:18.952 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:25:19.568 +08:00 [INF] Executed DbCommand (564ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:25:19.677 +08:00 [INF] Executed DbCommand (108ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:25:19.822 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:25:19.822 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:25:19.823 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 - 200 - application/json;+charset=utf-8 10191.0073ms +2023-02-27 14:32:12.425 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 +2023-02-27 14:32:12.427 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:32:12.427 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 14:32:12.449 +08:00 [INF] Executing action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:32:12.488 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:32:12.764 +08:00 [INF] Executed DbCommand (231ms) [Parameters=[@__item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_PartCode_0 +2023-02-27 14:32:13.623 +08:00 [INF] Executed DbCommand (849ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:32:19.883 +08:00 [INF] Executed DbCommand (6,226ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:32:55.310 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:32:56.379 +08:00 [INF] Executed DbCommand (1,039ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiProductRecieveDTO] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 14:32:57.044 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:32:57.044 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:32:57.045 +08:00 [INF] Executed action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 44595.6245ms. +2023-02-27 14:33:00.782 +08:00 [INF] Executed DbCommand (3,703ms) [Parameters=[@p0='?' (DbType = DateTime2), @p1='?' (Size = 64), @p2='?' (DbType = DateTime2), @p3='?' (DbType = Int32), @p4='?' (Size = 50), @p5='?' (DbType = Int32), @p6='?' (Size = 4000), @p7='?' (Size = 50), @p8='?' (Size = 50), @p9='?' (Size = 50), @p10='?' (DbType = Guid), @p11='?' (Size = 4000), @p12='?' (Size = 50), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000), @p16='?' (Size = 4000), @p17='?' (Size = 50), @p18='?' (DbType = Int32), @p19='?' (DbType = Int32), @p20='?' (Size = 50), @p21='?' (Size = 50), @p22='?' (Size = 50), @p23='?' (Size = 50), @p24='?' (Size = 50), @p25='?' (Size = 4000), @p26='?' (Size = 4000), @p27='?' (Size = 4000), @p28='?' (Size = 4000), @p29='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p30='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p31='?' (Size = 4000), @p32='?' (Size = 50), @p33='?' (Size = 50), @p34='?' (DbType = DateTime2), @p35='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p36='?' (DbType = DateTime2), @p37='?' (Size = 4000), @p38='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p39='?' (Size = 4000), @p40='?' (DbType = Int32), @p41='?' (Size = 4000), @p42='?' (Size = 4000), @p43='?' (Size = 4000), @p44='?' (Size = 4000), @p45='?' (Size = 4000), @p46='?' (Size = 4000), @p47='?' (Size = 50), @p48='?' (DbType = Int32), @p49='?' (Size = 4000), @p50='?' (Size = 4000), @p51='?' (DbType = DateTime2), @p52='?' (Size = 80), @p53='?' (Size = 4000), @p54='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p55='?' (Size = 500), @p56='?' (DbType = Int32), @p57='?' (DbType = Int32), @p58='?' (DbType = Int32), @p59='?' (Size = 4000), @p60='?' (Size = 50), @p61='?' (Size = 50), @p62='?' (DbType = Int32), @p63='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p64='?' (Size = 50), @p65='?' (Size = 4000), @p66='?' (Size = 4000), @p67='?' (DbType = DateTime2), @p68='?' (Size = 50), @p69='?' (Size = 4000), @p70='?' (DbType = DateTime2), @p71='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p72='?' (DbType = DateTime2), @p73='?' (Size = 4000), @p74='?' (Size = 4000), @p75='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p76='?' (DbType = DateTime2), @p77='?' (Size = 4000), @p78='?' (Size = 4000), @p79='?' (DbType = Int32)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [TB_BILL] ([AccountDate], [BillNum], [BillTime], [BillType], [CustId], [DetailQty], [DockCode], [FinishTime], [GateCode], [GateName], [Guid], [OperName], [ProjectId], [Remark], [SourceBillNum], [SourceBillNum2], [SourceBillNum3], [StartTime], [State], [SubBillType], [TransportType], [TruckNum], [VendId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22); +SELECT [UID] +FROM [TB_BILL] +WHERE @@ROWCOUNT = 1 AND [UID] = scope_identity(); + +INSERT INTO [TB_PRODUCT_RECEIVE] ([BarCode], [BillNum], [Batch], [CellCode], [EqptCode], [FromLocCode], [GoodQty], [InvalidQty], [LineId], [PartCode], [PpBillNum], [ProduceDate], [Qty], [ReceiveDate], [Remark], [ScrapQty], [ShiftName], [State], [TeamName], [ToLocCode], [TraceBackCode], [Unit]) +VALUES (@p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30, @p31, @p32, @p33, @p34, @p35, @p36, @p37, @p38, @p39, @p40, @p41, @p42, @p43, @p44); +SELECT [UID] +FROM [TB_PRODUCT_RECEIVE] +WHERE @@ROWCOUNT = 1 AND [BarCode] = @p23 AND [BillNum] = @p24; + +INSERT INTO [TL_TRANSACTION] ([BarCode], [Batch], [BillNum], [BillType], [EqptCode], [LocCode], [LogTime], [OperName], [PartCode], [Qty], [Remark], [State], [SubBillType], [TransType], [VendId]) +VALUES (@p45, @p46, @p47, @p48, @p49, @p50, @p51, @p52, @p53, @p54, @p55, @p56, @p57, @p58, @p59); +SELECT [UID] +FROM [TL_TRANSACTION] +WHERE @@ROWCOUNT = 1 AND [UID] = scope_identity(); + +INSERT INTO [TS_STOCK_DETAIL] ([BarCode], [LocCode], [State], [Amount], [AreaCode], [Batch], [EqptCode], [OverdueDate], [PartCode], [PlanOrderId], [ProduceDate], [Qty], [ReceiveDate], [Remark], [TracebackCode], [UpdateQty], [UpdateTime], [VendBatch], [VendId], [VinState]) +VALUES (@p60, @p61, @p62, @p63, @p64, @p65, @p66, @p67, @p68, @p69, @p70, @p71, @p72, @p73, @p74, @p75, @p76, @p77, @p78, @p79); +SELECT [UID], [Version] +FROM [TS_STOCK_DETAIL] +WHERE @@ROWCOUNT = 1 AND [BarCode] = @p60 AND [LocCode] = @p61 AND [State] = @p62; +2023-02-27 14:33:00.804 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:33:00.804 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:33:00.897 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ProductRecieve.ReturnResult'. +2023-02-27 14:33:00.898 +08:00 [INF] Executed action WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) in 48470.6091ms +2023-02-27 14:33:00.898 +08:00 [INF] Executed endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:33:00.898 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:33:01.118 +08:00 [INF] Executed DbCommand (185ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:33:01.378 +08:00 [INF] Executed DbCommand (260ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:33:01.445 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:33:01.445 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:33:01.446 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 - 200 - application/json;+charset=utf-8 49020.7079ms +2023-02-27 14:35:03.710 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 +2023-02-27 14:35:03.711 +08:00 [INF] Executing endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:35:03.711 +08:00 [INF] Route matched with {action = "Add", controller = "ProductRecieve", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.ProductRecieve.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.ProductRecieve.ProductRecieveService (WmsWebApi.Application). +2023-02-27 14:35:03.738 +08:00 [INF] Executing action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:35:03.781 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:35:03.791 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_PartCode_0 +2023-02-27 14:35:05.628 +08:00 [INF] Executed DbCommand (1,835ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:35:05.996 +08:00 [INF] Executed DbCommand (356ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:35:59.004 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:36:01.377 +08:00 [INF] Executed DbCommand (2,367ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiProductRecieveDTO] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 14:36:01.574 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:36:01.574 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:36:01.575 +08:00 [INF] Executed action method WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 57836.4051ms. +2023-02-27 14:36:15.450 +08:00 [INF] Executed DbCommand (13,865ms) [Parameters=[@p0='?' (DbType = DateTime2), @p1='?' (Size = 64), @p2='?' (DbType = DateTime2), @p3='?' (DbType = Int32), @p4='?' (Size = 50), @p5='?' (DbType = Int32), @p6='?' (Size = 4000), @p7='?' (Size = 50), @p8='?' (Size = 50), @p9='?' (Size = 50), @p10='?' (DbType = Guid), @p11='?' (Size = 4000), @p12='?' (Size = 50), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000), @p16='?' (Size = 4000), @p17='?' (Size = 50), @p18='?' (DbType = Int32), @p19='?' (DbType = Int32), @p20='?' (Size = 50), @p21='?' (Size = 50), @p22='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [TB_BILL] ([AccountDate], [BillNum], [BillTime], [BillType], [CustId], [DetailQty], [DockCode], [FinishTime], [GateCode], [GateName], [Guid], [OperName], [ProjectId], [Remark], [SourceBillNum], [SourceBillNum2], [SourceBillNum3], [StartTime], [State], [SubBillType], [TransportType], [TruckNum], [VendId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22); +SELECT [UID] +FROM [TB_BILL] +WHERE @@ROWCOUNT = 1 AND [UID] = scope_identity(); +2023-02-27 14:36:17.939 +08:00 [INF] Executed DbCommand (2,488ms) [Parameters=[@p0='?' (Size = 50), @p1='?' (Size = 50), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p7='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p8='?' (Size = 4000), @p9='?' (Size = 50), @p10='?' (Size = 50), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p13='?' (DbType = DateTime2), @p14='?' (Size = 4000), @p15='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p16='?' (Size = 4000), @p17='?' (DbType = Int32), @p18='?' (Size = 4000), @p19='?' (Size = 4000), @p20='?' (Size = 4000), @p21='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [TB_PRODUCT_RECEIVE] ([BarCode], [BillNum], [Batch], [CellCode], [EqptCode], [FromLocCode], [GoodQty], [InvalidQty], [LineId], [PartCode], [PpBillNum], [ProduceDate], [Qty], [ReceiveDate], [Remark], [ScrapQty], [ShiftName], [State], [TeamName], [ToLocCode], [TraceBackCode], [Unit]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +SELECT [UID] +FROM [TB_PRODUCT_RECEIVE] +WHERE @@ROWCOUNT = 1 AND [BarCode] = @p0 AND [BillNum] = @p1; +2023-02-27 14:36:18.071 +08:00 [INF] Executed DbCommand (132ms) [Parameters=[@p0='?' (Size = 4000), @p1='?' (Size = 4000), @p2='?' (Size = 50), @p3='?' (DbType = Int32), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (DbType = DateTime2), @p7='?' (Size = 80), @p8='?' (Size = 4000), @p9='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p10='?' (Size = 500), @p11='?' (DbType = Int32), @p12='?' (DbType = Int32), @p13='?' (DbType = Int32), @p14='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [TL_TRANSACTION] ([BarCode], [Batch], [BillNum], [BillType], [EqptCode], [LocCode], [LogTime], [OperName], [PartCode], [Qty], [Remark], [State], [SubBillType], [TransType], [VendId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14); +SELECT [UID] +FROM [TL_TRANSACTION] +WHERE @@ROWCOUNT = 1 AND [UID] = scope_identity(); +2023-02-27 14:36:18.074 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:36:18.074 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:36:18.099 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ProductRecieve.ReturnResult'. +2023-02-27 14:36:18.099 +08:00 [INF] Executed action WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application) in 74387.7439ms +2023-02-27 14:36:18.099 +08:00 [INF] Executed endpoint 'WmsWebApi.ProductRecieve.ProductRecieveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:36:18.100 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:36:18.208 +08:00 [INF] Executed DbCommand (102ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:36:18.308 +08:00 [INF] Executed DbCommand (99ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:36:18.328 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:36:18.328 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:36:18.328 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/pr/add application/json 883 - 200 - application/json;+charset=utf-8 74618.6839ms +2023-02-27 14:38:02.335 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1997 +2023-02-27 14:38:02.336 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:38:02.338 +08:00 [INF] Route matched with {action = "Add", controller = "Purchase", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PurchaseService (WmsWebApi.Application). +2023-02-27 14:38:02.455 +08:00 [INF] Executing action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:38:02.469 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:38:07.877 +08:00 [INF] Executed DbCommand (5,374ms) [Parameters=[@___purchaseDto_MBLNR_0='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[SourceBillNum2] = @___purchaseDto_MBLNR_0 +2023-02-27 14:38:08.391 +08:00 [INF] Executed DbCommand (505ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:38:08.397 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:38:08.402 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:38:08.407 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:38:08.417 +08:00 [INF] Executed DbCommand (8ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:38:08.427 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:38:12.820 +08:00 [INF] Executed DbCommand (4,381ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 10), @p6='?' (Size = 10)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPURCHASEDTO] ([Id], [BUDAT], [DYSJ], [ITYPE], [JSON], [MBLNR], [MJAHR]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6); +2023-02-27 14:38:13.050 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:38:13.050 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:38:13.050 +08:00 [INF] Executed action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 10595.6474ms. +2023-02-27 14:38:13.053 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:38:13.057 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.PPlan.ReturnResult'. +2023-02-27 14:38:13.059 +08:00 [INF] Executed action WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) in 10720.8315ms +2023-02-27 14:38:13.059 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:38:13.060 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:38:18.062 +08:00 [INF] Executed DbCommand (4,995ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:38:19.666 +08:00 [INF] Executed DbCommand (1,603ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:38:19.941 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:38:19.941 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:38:19.942 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1997 - 200 - application/json;+charset=utf-8 17606.9782ms +2023-02-27 14:39:38.635 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1261 +2023-02-27 14:39:38.646 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:39:38.646 +08:00 [INF] Route matched with {action = "Add", controller = "Purchase", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PurchaseService (WmsWebApi.Application). +2023-02-27 14:39:38.668 +08:00 [INF] Executing action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:39:38.669 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:39:46.684 +08:00 [INF] Executed DbCommand (8,010ms) [Parameters=[@___purchaseDto_MBLNR_0='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[SourceBillNum2] = @___purchaseDto_MBLNR_0 +2023-02-27 14:39:46.690 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:39:46.701 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 10), @p6='?' (Size = 10)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPURCHASEDTO] ([Id], [BUDAT], [DYSJ], [ITYPE], [JSON], [MBLNR], [MJAHR]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6); +2023-02-27 14:39:46.800 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:39:46.800 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:39:46.800 +08:00 [INF] Executed action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 8132.0382ms. +2023-02-27 14:39:46.805 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:39:46.809 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.PPlan.ReturnResult'. +2023-02-27 14:39:46.810 +08:00 [INF] Executed action WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) in 8163.8364ms +2023-02-27 14:39:46.810 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:39:46.811 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:39:46.987 +08:00 [INF] Executed DbCommand (169ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:39:47.229 +08:00 [INF] Executed DbCommand (242ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:39:47.560 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:39:47.560 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:39:47.561 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1261 - 200 - application/json;+charset=utf-8 8925.9845ms +2023-02-27 14:40:18.160 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1263 +2023-02-27 14:40:18.161 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:40:18.161 +08:00 [INF] Route matched with {action = "Add", controller = "Purchase", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PurchaseService (WmsWebApi.Application). +2023-02-27 14:40:18.179 +08:00 [INF] Executing action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:40:18.180 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:40:33.723 +08:00 [INF] Executed DbCommand (15,539ms) [Parameters=[@___purchaseDto_MBLNR_0='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[SourceBillNum2] = @___purchaseDto_MBLNR_0 +2023-02-27 14:40:33.757 +08:00 [INF] Executed DbCommand (33ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:40:33.806 +08:00 [INF] Executed DbCommand (43ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:40:33.951 +08:00 [INF] Executed DbCommand (143ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:40:33.957 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:40:33.961 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:40:33.966 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:40:33.970 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:40:33.975 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:40:33.979 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:41:04.990 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:41:06.160 +08:00 [ERR] Failed executing DbCommand (1,164ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 10)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPURCHASEDTO] ([Id], [BUDAT], [DYSJ], [ITYPE], [JSON], [MBLNR], [MJAHR]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6); +2023-02-27 14:41:06.193 +08:00 [ERR] An exception occurred in the database while saving changes for context type 'WmsWebApi.EntityFrameworkCore.WmsWebApiDbContext'. +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 将截断字符串或二进制数据。 +语句已终止。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:99fe9e9c-1909-4d4f-8a67-c0f47abe9ad1 +Error Number:8152,State:13,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 将截断字符串或二进制数据。 +语句已终止。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:99fe9e9c-1909-4d4f-8a67-c0f47abe9ad1 +Error Number:8152,State:13,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.EntityFrameworkCore.AbpDbContext`1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.Uow.UnitOfWork.SaveChangesAsync(CancellationToken cancellationToken) + at WmsWebApi.PPlan.PurchaseService.AddWmsWebApiPURCHASEDTONowUnitOfWorkAsync(WmsWebApiPURCHASEDTO wmsWebApiPURCHASEDTO) +2023-02-27 14:41:08.799 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:41:08.800 +08:00 [INF] Executed action WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) in 50639.1899ms +2023-02-27 14:41:08.800 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:41:08.808 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:41:11.475 +08:00 [INF] Executed DbCommand (2,661ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = -1), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:41:14.830 +08:00 [INF] Executed DbCommand (3,355ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:41:15.111 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:41:15.112 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:41:15.112 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1263 - 200 - application/json;+charset=utf-8 56952.3939ms +2023-02-27 14:41:52.602 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1263 +2023-02-27 14:41:52.603 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:41:52.603 +08:00 [INF] Route matched with {action = "Add", controller = "Purchase", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PurchaseService (WmsWebApi.Application). +2023-02-27 14:41:52.623 +08:00 [INF] Executing action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:41:52.624 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:41:58.518 +08:00 [INF] Executed DbCommand (5,890ms) [Parameters=[@___purchaseDto_MBLNR_0='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[SourceBillNum2] = @___purchaseDto_MBLNR_0 +2023-02-27 14:41:58.529 +08:00 [INF] Executed DbCommand (9ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:41:58.544 +08:00 [INF] Executed DbCommand (14ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:41:58.552 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:41:58.556 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:41:58.561 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:41:58.567 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:41:58.571 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:41:58.576 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:41:58.581 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:42:02.409 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:42:02.419 +08:00 [ERR] Failed executing DbCommand (5ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 10)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPURCHASEDTO] ([Id], [BUDAT], [DYSJ], [ITYPE], [JSON], [MBLNR], [MJAHR]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6); +2023-02-27 14:42:02.424 +08:00 [ERR] An exception occurred in the database while saving changes for context type 'WmsWebApi.EntityFrameworkCore.WmsWebApiDbContext'. +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 将截断字符串或二进制数据。 +语句已终止。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:99fe9e9c-1909-4d4f-8a67-c0f47abe9ad1 +Error Number:8152,State:13,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 将截断字符串或二进制数据。 +语句已终止。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:99fe9e9c-1909-4d4f-8a67-c0f47abe9ad1 +Error Number:8152,State:13,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.EntityFrameworkCore.AbpDbContext`1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.Uow.UnitOfWork.SaveChangesAsync(CancellationToken cancellationToken) + at WmsWebApi.PPlan.PurchaseService.AddWmsWebApiPURCHASEDTONowUnitOfWorkAsync(WmsWebApiPURCHASEDTO wmsWebApiPURCHASEDTO) +2023-02-27 14:43:59.773 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:43:59.774 +08:00 [INF] Executed action WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) in 127170.6711ms +2023-02-27 14:43:59.774 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:43:59.781 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:44:01.667 +08:00 [INF] Executed DbCommand (1,871ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = -1), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:44:01.744 +08:00 [INF] Executed DbCommand (77ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:44:01.821 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:44:01.821 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:44:01.822 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1263 - 200 - application/json;+charset=utf-8 129219.6509ms +2023-02-27 14:44:21.272 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1263 +2023-02-27 14:44:21.273 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:44:21.273 +08:00 [INF] Route matched with {action = "Add", controller = "Purchase", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PurchaseService (WmsWebApi.Application). +2023-02-27 14:44:21.294 +08:00 [INF] Executing action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:44:21.295 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:44:23.696 +08:00 [INF] Executed DbCommand (2,396ms) [Parameters=[@___purchaseDto_MBLNR_0='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[SourceBillNum2] = @___purchaseDto_MBLNR_0 +2023-02-27 14:44:23.706 +08:00 [INF] Executed DbCommand (9ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:44:23.718 +08:00 [INF] Executed DbCommand (12ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:44:23.723 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:44:23.729 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:44:23.733 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:44:23.738 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:44:23.743 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:44:23.747 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:44:23.752 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:45:08.174 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:47:49.045 +08:00 [INF] Starting web host. +2023-02-27 14:47:52.037 +08:00 [INF] 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-27 14:47:52.098 +08:00 [INF] Loaded ABP modules: +2023-02-27 14:47:52.098 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiHostModule +2023-02-27 14:47:52.098 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationModule +2023-02-27 14:47:52.098 +08:00 [INF] - WmsWebApi.WmsWebApiDomainModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2023-02-27 14:47:52.098 +08:00 [INF] - WmsWebApi.WmsWebApiDomainSharedModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2023-02-27 14:47:52.098 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationContractsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2023-02-27 14:47:52.098 +08:00 [INF] - WmsWebApi.EntityFrameworkCore.WmsWebApiEntityFrameworkCoreModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Dapper.AbpDapperModule +2023-02-27 14:47:52.098 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2023-02-27 14:47:52.098 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2023-02-27 14:47:52.429 +08:00 [INF] Initialized all ABP modules. +2023-02-27 14:47:52.505 +08:00 [INF] Now listening on: http://localhost:5000 +2023-02-27 14:47:52.505 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2023-02-27 14:47:52.505 +08:00 [INF] Hosting environment: Development +2023-02-27 14:47:52.505 +08:00 [INF] Content root path: E:\我的工作\派格接口\WmsWebApi\host\WmsWebApi.HttpApi.Host +2023-02-27 14:47:53.061 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/ - - +2023-02-27 14:47:53.089 +08:00 [WRN] Failed to determine the https port for redirect. +2023-02-27 14:47:53.882 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'SettingManagementDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:47:54.267 +08:00 [INF] Executed DbCommand (32ms) [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 +2023-02-27 14:47:54.483 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'SettingManagementDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:47:54.493 +08:00 [INF] Executed DbCommand (7ms) [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 +2023-02-27 14:47:54.539 +08:00 [INF] Executing endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 14:47:54.582 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller WmsWebApi.Controllers.HomeController (WmsWebApi.HttpApi.Host). +2023-02-27 14:47:54.651 +08:00 [INF] Executing action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) - Validation state: "Valid" +2023-02-27 14:47:54.655 +08:00 [INF] Executed action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host), returned result Microsoft.AspNetCore.Mvc.RedirectResult in 0.3102ms. +2023-02-27 14:47:54.658 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2023-02-27 14:47:54.662 +08:00 [INF] Executed action WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) in 77.1446ms +2023-02-27 14:47:54.663 +08:00 [INF] Executed endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 14:47:54.671 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/ - - - 302 0 - 1611.6307ms +2023-02-27 14:47:54.680 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/index.html - - +2023-02-27 14:47:54.765 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/index.html - - - 200 - text/html;charset=utf-8 85.3766ms +2023-02-27 14:47:54.770 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - +2023-02-27 14:47:54.772 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - - 200 12014 application/javascript;+charset=utf-8 2.0132ms +2023-02-27 14:47:54.772 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - +2023-02-27 14:47:54.789 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 16.7083ms +2023-02-27 14:47:54.848 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - +2023-02-27 14:47:54.926 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 78.1917ms +2023-02-27 14:48:27.288 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1263 +2023-02-27 14:48:27.292 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:48:27.302 +08:00 [INF] Route matched with {action = "Add", controller = "Purchase", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PurchaseService (WmsWebApi.Application). +2023-02-27 14:48:28.038 +08:00 [INF] Executing action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:48:28.205 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBOMDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBom'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'MENGE' on entity type 'WmsWebApiBomDetail'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'GSMNG' on entity type 'WmsWebApiPPLANDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TA_BOM'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'CustPackQty' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'CustPalletCapacity' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'ContainerQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'LinesidePackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'MaxQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'MinQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'SafeQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'SamplePercent' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'SingleWeight' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'StockPackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'BarCodeQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'FinishedQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'InQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'NotInQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'PackQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.206 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:48:28.228 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:48:28.755 +08:00 [INF] Executed DbCommand (470ms) [Parameters=[@___purchaseDto_MBLNR_0='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[SourceBillNum2] = @___purchaseDto_MBLNR_0 +2023-02-27 14:48:28.810 +08:00 [INF] Executed DbCommand (37ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:48:29.001 +08:00 [INF] Executed DbCommand (104ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:48:29.037 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:48:29.081 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:48:29.086 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:48:29.091 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:48:29.096 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:48:29.101 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:48:29.108 +08:00 [INF] Executed DbCommand (7ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:48:33.426 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:48:34.603 +08:00 [ERR] Failed executing DbCommand (1,089ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 20), @p6='?' (Size = 20)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPURCHASEDTO] ([Id], [BUDAT], [DYSJ], [ITYPE], [JSON], [MBLNR], [MJAHR]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6); +2023-02-27 14:48:34.641 +08:00 [ERR] An exception occurred in the database while saving changes for context type 'WmsWebApi.EntityFrameworkCore.WmsWebApiDbContext'. +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 将截断字符串或二进制数据。 +语句已终止。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:73336aaa-1684-4e18-aa48-e55068c80325 +Error Number:8152,State:13,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 将截断字符串或二进制数据。 +语句已终止。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:73336aaa-1684-4e18-aa48-e55068c80325 +Error Number:8152,State:13,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +2023-02-27 14:48:36.292 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:48:36.298 +08:00 [INF] Executed action WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) in 8996.5104ms +2023-02-27 14:48:36.299 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:48:36.416 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:48:42.931 +08:00 [INF] Executed DbCommand (6,421ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = -1), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:48:48.230 +08:00 [INF] Executed DbCommand (5,294ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:48:49.384 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:48:49.384 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:48:49.387 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1263 - 200 - application/json;+charset=utf-8 22098.5951ms +2023-02-27 14:48:57.779 +08:00 [INF] Starting web host. +2023-02-27 14:49:00.795 +08:00 [INF] 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-27 14:49:00.862 +08:00 [INF] Loaded ABP modules: +2023-02-27 14:49:00.862 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiHostModule +2023-02-27 14:49:00.862 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationModule +2023-02-27 14:49:00.862 +08:00 [INF] - WmsWebApi.WmsWebApiDomainModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2023-02-27 14:49:00.862 +08:00 [INF] - WmsWebApi.WmsWebApiDomainSharedModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2023-02-27 14:49:00.862 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationContractsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2023-02-27 14:49:00.862 +08:00 [INF] - WmsWebApi.EntityFrameworkCore.WmsWebApiEntityFrameworkCoreModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Dapper.AbpDapperModule +2023-02-27 14:49:00.862 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2023-02-27 14:49:00.862 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2023-02-27 14:49:00.863 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2023-02-27 14:49:01.195 +08:00 [INF] Initialized all ABP modules. +2023-02-27 14:49:01.262 +08:00 [INF] Now listening on: http://localhost:5000 +2023-02-27 14:49:01.262 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2023-02-27 14:49:01.262 +08:00 [INF] Hosting environment: Development +2023-02-27 14:49:01.262 +08:00 [INF] Content root path: E:\我的工作\派格接口\WmsWebApi\host\WmsWebApi.HttpApi.Host +2023-02-27 14:49:01.451 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/ - - +2023-02-27 14:49:01.484 +08:00 [WRN] Failed to determine the https port for redirect. +2023-02-27 14:49:02.097 +08:00 [INF] Executing endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 14:49:02.133 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller WmsWebApi.Controllers.HomeController (WmsWebApi.HttpApi.Host). +2023-02-27 14:49:02.206 +08:00 [INF] Executing action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) - Validation state: "Valid" +2023-02-27 14:49:02.209 +08:00 [INF] Executed action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host), returned result Microsoft.AspNetCore.Mvc.RedirectResult in 0.235ms. +2023-02-27 14:49:02.212 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2023-02-27 14:49:02.215 +08:00 [INF] Executed action WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) in 79.5427ms +2023-02-27 14:49:02.215 +08:00 [INF] Executed endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 14:49:02.224 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/ - - - 302 0 - 773.7542ms +2023-02-27 14:49:02.232 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/index.html - - +2023-02-27 14:49:02.317 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - +2023-02-27 14:49:02.317 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/index.html - - - 200 - text/html;charset=utf-8 85.0323ms +2023-02-27 14:49:02.318 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - - 200 12014 application/javascript;+charset=utf-8 1.4170ms +2023-02-27 14:49:02.322 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - +2023-02-27 14:49:02.336 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 14.0887ms +2023-02-27 14:49:02.388 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - +2023-02-27 14:49:02.469 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 81.1502ms +2023-02-27 14:49:03.229 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1261 +2023-02-27 14:49:03.232 +08:00 [INF] Executing endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:49:03.245 +08:00 [INF] Route matched with {action = "Add", controller = "Purchase", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.PPlan.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.PPlan.PurchaseService (WmsWebApi.Application). +2023-02-27 14:49:03.990 +08:00 [INF] Executing action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBOMDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBom'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'MENGE' on entity type 'WmsWebApiBomDetail'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'GSMNG' on entity type 'WmsWebApiPPLANDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TA_BOM'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'CustPackQty' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'CustPalletCapacity' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'ContainerQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'LinesidePackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'MaxQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'MinQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'SafeQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'SamplePercent' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'SingleWeight' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'StockPackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'BarCodeQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'FinishedQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'InQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'NotInQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'PackQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.456 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 14:49:04.511 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:49:06.644 +08:00 [INF] Executed DbCommand (1,744ms) [Parameters=[@___purchaseDto_MBLNR_0='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AccountDate], [t].[BillNum], [t].[BillTime], [t].[BillType], [t].[CustId], [t].[DetailQty], [t].[DockCode], [t].[FinishTime], [t].[GateCode], [t].[GateName], [t].[Guid], [t].[OperName], [t].[ProjectId], [t].[Remark], [t].[SourceBillNum], [t].[SourceBillNum2], [t].[SourceBillNum3], [t].[StartTime], [t].[State], [t].[SubBillType], [t].[TransportType], [t].[TruckNum], [t].[VendId] +FROM [TB_BILL] AS [t] +WHERE [t].[SourceBillNum2] = @___purchaseDto_MBLNR_0 +2023-02-27 14:49:06.690 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:49:06.774 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:49:06.809 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:49:06.851 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:49:06.856 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:49:06.861 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:49:06.866 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__item_MATNR_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__item_MATNR_0 +2023-02-27 14:49:06.870 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 14:49:06.875 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@___barcode_0='?' (Size = 50), @__part_DefaultReceiveLocCode_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__part_DefaultReceiveLocCode_1)) AND ([t].[State] = 2) +2023-02-27 14:49:10.098 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:49:10.931 +08:00 [INF] Executed DbCommand (746ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 10), @p6='?' (Size = 10)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPURCHASEDTO] ([Id], [BUDAT], [DYSJ], [ITYPE], [JSON], [MBLNR], [MJAHR]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6); +2023-02-27 14:49:11.650 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:49:11.650 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:49:11.653 +08:00 [INF] Executed action method WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 7662.4001ms. +2023-02-27 14:49:33.931 +08:00 [INF] Executed DbCommand (22,239ms) [Parameters=[@p0='?' (DbType = DateTime2), @p1='?' (Size = 64), @p2='?' (DbType = DateTime2), @p3='?' (DbType = Int32), @p4='?' (Size = 50), @p5='?' (DbType = Int32), @p6='?' (Size = 4000), @p7='?' (Size = 50), @p8='?' (Size = 50), @p9='?' (Size = 50), @p10='?' (DbType = Guid), @p11='?' (Size = 4000), @p12='?' (Size = 50), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000), @p16='?' (Size = 4000), @p17='?' (Size = 50), @p18='?' (DbType = Int32), @p19='?' (DbType = Int32), @p20='?' (Size = 50), @p21='?' (Size = 50), @p22='?' (Size = 50), @p23='?' (Size = 50), @p24='?' (Size = 50), @p25='?' (Size = 4000), @p26='?' (Size = 4000), @p27='?' (Size = 4000), @p28='?' (Size = 4000), @p29='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p30='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p31='?' (Size = 4000), @p32='?' (Size = 50), @p33='?' (Size = 50), @p34='?' (DbType = DateTime2), @p35='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p36='?' (DbType = DateTime2), @p37='?' (Size = 4000), @p38='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p39='?' (Size = 4000), @p40='?' (DbType = Int32), @p41='?' (Size = 4000), @p42='?' (Size = 4000), @p43='?' (Size = 4000), @p44='?' (Size = 4000), @p45='?' (Size = 50), @p46='?' (Size = 50), @p47='?' (Size = 4000), @p48='?' (Size = 4000), @p49='?' (Size = 4000), @p50='?' (Size = 4000), @p51='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p52='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p53='?' (Size = 4000), @p54='?' (Size = 50), @p55='?' (Size = 50), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p58='?' (DbType = DateTime2), @p59='?' (Size = 4000), @p60='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p61='?' (Size = 4000), @p62='?' (DbType = Int32), @p63='?' (Size = 4000), @p64='?' (Size = 4000), @p65='?' (Size = 4000), @p66='?' (Size = 4000), @p67='?' (Size = 50), @p68='?' (Size = 50), @p69='?' (Size = 4000), @p70='?' (Size = 4000), @p71='?' (Size = 4000), @p72='?' (Size = 4000), @p73='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p74='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p75='?' (Size = 4000), @p76='?' (Size = 50), @p77='?' (Size = 50), @p78='?' (DbType = DateTime2), @p79='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p80='?' (DbType = DateTime2), @p81='?' (Size = 4000), @p82='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p83='?' (Size = 4000), @p84='?' (DbType = Int32), @p85='?' (Size = 4000), @p86='?' (Size = 4000), @p87='?' (Size = 4000), @p88='?' (Size = 4000), @p89='?' (Size = 4000), @p90='?' (Size = 4000), @p91='?' (Size = 50), @p92='?' (DbType = Int32), @p93='?' (Size = 4000), @p94='?' (Size = 4000), @p95='?' (DbType = DateTime2), @p96='?' (Size = 80), @p97='?' (Size = 4000), @p98='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p99='?' (Size = 500), @p100='?' (DbType = Int32), @p101='?' (DbType = Int32), @p102='?' (DbType = Int32), @p103='?' (Size = 4000), @p104='?' (Size = 4000), @p105='?' (Size = 4000), @p106='?' (Size = 50), @p107='?' (DbType = Int32), @p108='?' (Size = 4000), @p109='?' (Size = 4000), @p110='?' (DbType = DateTime2), @p111='?' (Size = 80), @p112='?' (Size = 4000), @p113='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p114='?' (Size = 500), @p115='?' (DbType = Int32), @p116='?' (DbType = Int32), @p117='?' (DbType = Int32), @p118='?' (Size = 4000), @p119='?' (Size = 4000), @p120='?' (Size = 4000), @p121='?' (Size = 50), @p122='?' (DbType = Int32), @p123='?' (Size = 4000), @p124='?' (Size = 4000), @p125='?' (DbType = DateTime2), @p126='?' (Size = 80), @p127='?' (Size = 4000), @p128='?' (Precision = 18) (Scale = 6) (DbType = Decimal), @p129='?' (Size = 500), @p130='?' (DbType = Int32), @p131='?' (DbType = Int32), @p132='?' (DbType = Int32), @p133='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [TB_BILL] ([AccountDate], [BillNum], [BillTime], [BillType], [CustId], [DetailQty], [DockCode], [FinishTime], [GateCode], [GateName], [Guid], [OperName], [ProjectId], [Remark], [SourceBillNum], [SourceBillNum2], [SourceBillNum3], [StartTime], [State], [SubBillType], [TransportType], [TruckNum], [VendId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22); +SELECT [UID] +FROM [TB_BILL] +WHERE @@ROWCOUNT = 1 AND [UID] = scope_identity(); + +DECLARE @inserted1 TABLE ([BarCode] nvarchar(50), [BillNum] nvarchar(50), [_Position] [int]); +MERGE [TB_PRODUCT_RECEIVE] USING ( +VALUES (@p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30, @p31, @p32, @p33, @p34, @p35, @p36, @p37, @p38, @p39, @p40, @p41, @p42, @p43, @p44, 0), +(@p45, @p46, @p47, @p48, @p49, @p50, @p51, @p52, @p53, @p54, @p55, @p56, @p57, @p58, @p59, @p60, @p61, @p62, @p63, @p64, @p65, @p66, 1), +(@p67, @p68, @p69, @p70, @p71, @p72, @p73, @p74, @p75, @p76, @p77, @p78, @p79, @p80, @p81, @p82, @p83, @p84, @p85, @p86, @p87, @p88, 2)) AS i ([BarCode], [BillNum], [Batch], [CellCode], [EqptCode], [FromLocCode], [GoodQty], [InvalidQty], [LineId], [PartCode], [PpBillNum], [ProduceDate], [Qty], [ReceiveDate], [Remark], [ScrapQty], [ShiftName], [State], [TeamName], [ToLocCode], [TraceBackCode], [Unit], _Position) ON 1=0 +WHEN NOT MATCHED THEN +INSERT ([BarCode], [BillNum], [Batch], [CellCode], [EqptCode], [FromLocCode], [GoodQty], [InvalidQty], [LineId], [PartCode], [PpBillNum], [ProduceDate], [Qty], [ReceiveDate], [Remark], [ScrapQty], [ShiftName], [State], [TeamName], [ToLocCode], [TraceBackCode], [Unit]) +VALUES (i.[BarCode], i.[BillNum], i.[Batch], i.[CellCode], i.[EqptCode], i.[FromLocCode], i.[GoodQty], i.[InvalidQty], i.[LineId], i.[PartCode], i.[PpBillNum], i.[ProduceDate], i.[Qty], i.[ReceiveDate], i.[Remark], i.[ScrapQty], i.[ShiftName], i.[State], i.[TeamName], i.[ToLocCode], i.[TraceBackCode], i.[Unit]) +OUTPUT INSERTED.[BarCode], INSERTED.[BillNum], i._Position +INTO @inserted1; + +SELECT [t].[UID] FROM [TB_PRODUCT_RECEIVE] t +INNER JOIN @inserted1 i ON ([t].[BarCode] = [i].[BarCode]) AND ([t].[BillNum] = [i].[BillNum]) +ORDER BY [i].[_Position]; + +DECLARE @inserted4 TABLE ([UID] bigint, [_Position] [int]); +MERGE [TL_TRANSACTION] USING ( +VALUES (@p89, @p90, @p91, @p92, @p93, @p94, @p95, @p96, @p97, @p98, @p99, @p100, @p101, @p102, @p103, 0), +(@p104, @p105, @p106, @p107, @p108, @p109, @p110, @p111, @p112, @p113, @p114, @p115, @p116, @p117, @p118, 1), +(@p119, @p120, @p121, @p122, @p123, @p124, @p125, @p126, @p127, @p128, @p129, @p130, @p131, @p132, @p133, 2)) AS i ([BarCode], [Batch], [BillNum], [BillType], [EqptCode], [LocCode], [LogTime], [OperName], [PartCode], [Qty], [Remark], [State], [SubBillType], [TransType], [VendId], _Position) ON 1=0 +WHEN NOT MATCHED THEN +INSERT ([BarCode], [Batch], [BillNum], [BillType], [EqptCode], [LocCode], [LogTime], [OperName], [PartCode], [Qty], [Remark], [State], [SubBillType], [TransType], [VendId]) +VALUES (i.[BarCode], i.[Batch], i.[BillNum], i.[BillType], i.[EqptCode], i.[LocCode], i.[LogTime], i.[OperName], i.[PartCode], i.[Qty], i.[Remark], i.[State], i.[SubBillType], i.[TransType], i.[VendId]) +OUTPUT INSERTED.[UID], i._Position +INTO @inserted4; + +SELECT [t].[UID] FROM [TL_TRANSACTION] t +INNER JOIN @inserted4 i ON ([t].[UID] = [i].[UID]) +ORDER BY [i].[_Position]; +2023-02-27 14:49:33.954 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:49:33.954 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:49:34.124 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.PPlan.ReturnResult'. +2023-02-27 14:49:34.131 +08:00 [INF] Executed action WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application) in 30886.0054ms +2023-02-27 14:49:34.132 +08:00 [INF] Executed endpoint 'WmsWebApi.PPlan.PurchaseService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:49:34.271 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:49:34.364 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:49:34.368 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 14:49:34.458 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:49:34.458 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:49:34.461 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/Purchase/add application/json 1261 - 200 - application/json;+charset=utf-8 31231.3935ms +2023-02-27 14:55:44.874 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 +2023-02-27 14:55:44.881 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:55:44.883 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 14:55:48.188 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:55:48.189 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 3305.6592ms +2023-02-27 14:55:48.190 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:55:48.196 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:55:55.938 +08:00 [INF] Executed DbCommand (7,735ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:55:56.434 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:55:56.434 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:55:56.435 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 - 200 - application/json;+charset=utf-8 11564.3659ms +2023-02-27 14:56:42.743 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 +2023-02-27 14:56:42.745 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:56:42.745 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 14:56:50.479 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:56:50.480 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 7734.7362ms +2023-02-27 14:56:50.480 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:56:50.488 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:56:50.842 +08:00 [INF] Executed DbCommand (344ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:56:50.910 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:56:50.910 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:56:50.910 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 - 200 - application/json;+charset=utf-8 8166.5765ms +2023-02-27 14:56:52.889 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 +2023-02-27 14:56:52.891 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:56:52.915 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 14:56:56.044 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:56:56.045 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 3129.4417ms +2023-02-27 14:56:56.045 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:56:56.046 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:56:56.059 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:56:56.911 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:56:56.911 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:56:56.912 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 - 200 - application/json;+charset=utf-8 4022.1512ms +2023-02-27 14:57:25.238 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 +2023-02-27 14:57:25.239 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:57:25.239 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 14:58:00.245 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 14:58:00.245 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 35006.4331ms +2023-02-27 14:58:00.245 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:58:00.250 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 14:58:00.260 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 14:58:01.805 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:58:01.805 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 14:58:01.806 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 - 200 - application/json;+charset=utf-8 36567.7468ms +2023-02-27 14:59:38.004 +08:00 [INF] Starting web host. +2023-02-27 14:59:40.879 +08:00 [INF] 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-27 14:59:40.946 +08:00 [INF] Loaded ABP modules: +2023-02-27 14:59:40.946 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiHostModule +2023-02-27 14:59:40.946 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationModule +2023-02-27 14:59:40.946 +08:00 [INF] - WmsWebApi.WmsWebApiDomainModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2023-02-27 14:59:40.946 +08:00 [INF] - WmsWebApi.WmsWebApiDomainSharedModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2023-02-27 14:59:40.946 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationContractsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2023-02-27 14:59:40.946 +08:00 [INF] - WmsWebApi.EntityFrameworkCore.WmsWebApiEntityFrameworkCoreModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Dapper.AbpDapperModule +2023-02-27 14:59:40.946 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2023-02-27 14:59:40.946 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2023-02-27 14:59:40.947 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2023-02-27 14:59:40.947 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2023-02-27 14:59:40.947 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2023-02-27 14:59:41.259 +08:00 [INF] Initialized all ABP modules. +2023-02-27 14:59:41.324 +08:00 [INF] Now listening on: http://localhost:5000 +2023-02-27 14:59:41.324 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2023-02-27 14:59:41.324 +08:00 [INF] Hosting environment: Development +2023-02-27 14:59:41.324 +08:00 [INF] Content root path: E:\我的工作\派格接口\WmsWebApi\host\WmsWebApi.HttpApi.Host +2023-02-27 14:59:41.937 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/ - - +2023-02-27 14:59:41.965 +08:00 [WRN] Failed to determine the https port for redirect. +2023-02-27 14:59:42.555 +08:00 [INF] Executing endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 14:59:42.588 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller WmsWebApi.Controllers.HomeController (WmsWebApi.HttpApi.Host). +2023-02-27 14:59:42.661 +08:00 [INF] Executing action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) - Validation state: "Valid" +2023-02-27 14:59:42.664 +08:00 [INF] Executed action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host), returned result Microsoft.AspNetCore.Mvc.RedirectResult in 0.2543ms. +2023-02-27 14:59:42.667 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2023-02-27 14:59:42.670 +08:00 [INF] Executed action WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) in 79.3955ms +2023-02-27 14:59:42.670 +08:00 [INF] Executed endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 14:59:42.680 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/ - - - 302 0 - 743.4852ms +2023-02-27 14:59:42.688 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/index.html - - +2023-02-27 14:59:42.774 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - +2023-02-27 14:59:42.774 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/index.html - - - 200 - text/html;charset=utf-8 86.5406ms +2023-02-27 14:59:42.776 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - - 200 12014 application/javascript;+charset=utf-8 1.9171ms +2023-02-27 14:59:42.780 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - +2023-02-27 14:59:42.793 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 13.3267ms +2023-02-27 14:59:42.846 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - +2023-02-27 14:59:42.927 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 81.8234ms +2023-02-27 14:59:49.855 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 +2023-02-27 14:59:49.857 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 14:59:49.872 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 14:59:50.658 +08:00 [INF] Executing action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:00:05.949 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBOMDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.949 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBom'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'MENGE' on entity type 'WmsWebApiBomDetail'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'GSMNG' on entity type 'WmsWebApiPPLANDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TA_BOM'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'CustPackQty' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'CustPalletCapacity' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'ContainerQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'LinesidePackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'MaxQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'MinQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'SafeQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'SamplePercent' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'SingleWeight' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'StockPackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'BarCodeQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'FinishedQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'InQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'NotInQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'PackQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:05.950 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:00:06.012 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:00:06.403 +08:00 [ERR] Failed executing DbCommand (44ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [StockMoveDtos] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 15:00:06.447 +08:00 [ERR] An exception occurred in the database while saving changes for context type 'WmsWebApi.EntityFrameworkCore.WmsWebApiDbContext'. +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'StockMoveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:82c1187a-66e8-402d-b807-c42066da0bf5 +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. + ---> Microsoft.Data.SqlClient.SqlException (0x80131904): 对象名 'StockMoveDtos' 无效。 + at Microsoft.Data.SqlClient.SqlCommand.<>c.b__169_0(Task`1 result) + at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() + at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) + at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +--- End of stack trace from previous location --- + at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) +--- End of stack trace from previous location --- + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) +ClientConnectionId:82c1187a-66e8-402d-b807-c42066da0bf5 +Error Number:208,State:1,Class:16 + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(DbContext _, Boolean acceptAllChangesOnSuccess, 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.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) + at Volo.Abp.EntityFrameworkCore.AbpDbContext`1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) +2023-02-27 15:00:20.140 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 15:00:20.145 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 30273.0946ms +2023-02-27 15:00:20.145 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:00:20.287 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:00:23.318 +08:00 [INF] Executed DbCommand (2,931ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = -1), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 15:02:21.948 +08:00 [INF] Starting web host. +2023-02-27 15:02:24.910 +08:00 [INF] 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-27 15:02:24.974 +08:00 [INF] Loaded ABP modules: +2023-02-27 15:02:24.974 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiHostModule +2023-02-27 15:02:24.974 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationModule +2023-02-27 15:02:24.974 +08:00 [INF] - WmsWebApi.WmsWebApiDomainModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2023-02-27 15:02:24.974 +08:00 [INF] - WmsWebApi.WmsWebApiDomainSharedModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2023-02-27 15:02:24.974 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationContractsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2023-02-27 15:02:24.974 +08:00 [INF] - WmsWebApi.EntityFrameworkCore.WmsWebApiEntityFrameworkCoreModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Dapper.AbpDapperModule +2023-02-27 15:02:24.974 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2023-02-27 15:02:24.974 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2023-02-27 15:02:25.312 +08:00 [INF] Initialized all ABP modules. +2023-02-27 15:02:25.380 +08:00 [INF] Now listening on: http://localhost:5000 +2023-02-27 15:02:25.380 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2023-02-27 15:02:25.380 +08:00 [INF] Hosting environment: Development +2023-02-27 15:02:25.380 +08:00 [INF] Content root path: E:\我的工作\派格接口\WmsWebApi\host\WmsWebApi.HttpApi.Host +2023-02-27 15:02:25.602 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/ - - +2023-02-27 15:02:25.626 +08:00 [WRN] Failed to determine the https port for redirect. +2023-02-27 15:02:26.203 +08:00 [INF] Executing endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 15:02:26.237 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller WmsWebApi.Controllers.HomeController (WmsWebApi.HttpApi.Host). +2023-02-27 15:02:26.306 +08:00 [INF] Executing action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) - Validation state: "Valid" +2023-02-27 15:02:26.309 +08:00 [INF] Executed action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host), returned result Microsoft.AspNetCore.Mvc.RedirectResult in 0.1955ms. +2023-02-27 15:02:26.312 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2023-02-27 15:02:26.314 +08:00 [INF] Executed action WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) in 75.34ms +2023-02-27 15:02:26.315 +08:00 [INF] Executed endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 15:02:26.323 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/ - - - 302 0 - 721.7391ms +2023-02-27 15:02:26.331 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/index.html - - +2023-02-27 15:02:26.421 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - +2023-02-27 15:02:26.421 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/index.html - - - 200 - text/html;charset=utf-8 89.6842ms +2023-02-27 15:02:26.423 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - - 200 12014 application/javascript;+charset=utf-8 1.4786ms +2023-02-27 15:02:26.427 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - +2023-02-27 15:02:26.441 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 13.5842ms +2023-02-27 15:02:26.491 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - +2023-02-27 15:02:26.571 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 80.0363ms +2023-02-27 15:02:29.276 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 +2023-02-27 15:02:29.287 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:02:29.302 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 15:02:30.103 +08:00 [INF] Executing action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:02:33.240 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBOMDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBom'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'MENGE' on entity type 'WmsWebApiBomDetail'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'GSMNG' on entity type 'WmsWebApiPPLANDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TA_BOM'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'CustPackQty' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'CustPalletCapacity' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'ContainerQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'LinesidePackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'MaxQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'MinQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'SafeQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'SamplePercent' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'SingleWeight' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'StockPackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'BarCodeQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'FinishedQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'InQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'NotInQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'PackQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.241 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:02:33.301 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:02:35.532 +08:00 [INF] Executed DbCommand (1,876ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiStockMoveDTO] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 15:02:35.911 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:02:35.911 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:03:01.807 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.ZlldcjLogs.ReturnResult'. +2023-02-27 15:03:01.822 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 32519.7555ms +2023-02-27 15:03:01.822 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:03:01.988 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:03:06.464 +08:00 [INF] Executed DbCommand (4,392ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 15:03:18.869 +08:00 [INF] Executed DbCommand (12,401ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 15:03:18.969 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:03:18.969 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:03:18.973 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 - 200 - application/json;+charset=utf-8 49697.4257ms +2023-02-27 15:03:20.911 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 883 +2023-02-27 15:03:20.914 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:03:20.914 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 15:03:20.936 +08:00 [INF] Executing action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:03:42.906 +08:00 [INF] Starting web host. +2023-02-27 15:03:45.737 +08:00 [INF] 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-27 15:03:45.808 +08:00 [INF] Loaded ABP modules: +2023-02-27 15:03:45.808 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiHostModule +2023-02-27 15:03:45.808 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationModule +2023-02-27 15:03:45.808 +08:00 [INF] - WmsWebApi.WmsWebApiDomainModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2023-02-27 15:03:45.808 +08:00 [INF] - WmsWebApi.WmsWebApiDomainSharedModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2023-02-27 15:03:45.808 +08:00 [INF] - WmsWebApi.WmsWebApiApplicationContractsModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2023-02-27 15:03:45.808 +08:00 [INF] - WmsWebApi.EntityFrameworkCore.WmsWebApiEntityFrameworkCoreModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.Dapper.AbpDapperModule +2023-02-27 15:03:45.808 +08:00 [INF] - WmsWebApi.WmsWebApiHttpApiModule +2023-02-27 15:03:45.808 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2023-02-27 15:03:45.809 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2023-02-27 15:03:46.138 +08:00 [INF] Initialized all ABP modules. +2023-02-27 15:03:46.205 +08:00 [INF] Now listening on: http://localhost:5000 +2023-02-27 15:03:46.205 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2023-02-27 15:03:46.206 +08:00 [INF] Hosting environment: Development +2023-02-27 15:03:46.206 +08:00 [INF] Content root path: E:\我的工作\派格接口\WmsWebApi\host\WmsWebApi.HttpApi.Host +2023-02-27 15:03:46.419 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/ - - +2023-02-27 15:03:46.446 +08:00 [WRN] Failed to determine the https port for redirect. +2023-02-27 15:03:47.014 +08:00 [INF] Executing endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 15:03:47.050 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller WmsWebApi.Controllers.HomeController (WmsWebApi.HttpApi.Host). +2023-02-27 15:03:47.121 +08:00 [INF] Executing action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) - Validation state: "Valid" +2023-02-27 15:03:47.124 +08:00 [INF] Executed action method WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host), returned result Microsoft.AspNetCore.Mvc.RedirectResult in 0.2846ms. +2023-02-27 15:03:47.127 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2023-02-27 15:03:47.131 +08:00 [INF] Executed action WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host) in 77.9968ms +2023-02-27 15:03:47.131 +08:00 [INF] Executed endpoint 'WmsWebApi.Controllers.HomeController.Index (WmsWebApi.HttpApi.Host)' +2023-02-27 15:03:47.139 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/ - - - 302 0 - 721.3964ms +2023-02-27 15:03:47.147 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/index.html - - +2023-02-27 15:03:47.231 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/index.html - - - 200 - text/html;charset=utf-8 83.7081ms +2023-02-27 15:03:47.231 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - +2023-02-27 15:03:47.233 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js - - - 200 12014 application/javascript;+charset=utf-8 1.7908ms +2023-02-27 15:03:47.236 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - +2023-02-27 15:03:47.255 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 19.1263ms +2023-02-27 15:03:47.308 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - +2023-02-27 15:03:47.384 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 76.0957ms +2023-02-27 15:04:43.833 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 893 +2023-02-27 15:04:43.855 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:04:43.870 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 15:04:44.666 +08:00 [INF] Executing action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBOMDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'BMENG' on entity type 'WmsWebApiBom'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'MENGE' on entity type 'WmsWebApiBomDetail'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'GSMNG' on entity type 'WmsWebApiPPLANDTO'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TA_BOM'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'CustPackQty' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'CustPalletCapacity' on entity type 'TA_CUST_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'ContainerQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'LinesidePackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'MaxQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'MinQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'SafeQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'SamplePercent' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'SingleWeight' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'StockPackQty' on entity type 'TA_PART'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'BarCodeQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'FinishedQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'InQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'NotInQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'PackQty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.420 +08:00 [WRN] No type was specified for the decimal property 'Qty' on entity type 'TM_PG_PLAN'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2023-02-27 15:04:50.476 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:04:54.152 +08:00 [INF] Executed DbCommand (3,294ms) [Parameters=[@__8__locals2_item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__8__locals2_item_PartCode_0 +2023-02-27 15:05:16.306 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:05:16.426 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiStockMoveDTO] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 15:05:16.992 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:05:16.993 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:05:16.995 +08:00 [INF] Executed action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 32329.014ms. +2023-02-27 15:05:17.004 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:05:17.013 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.StockMove.ReturnResult'. +2023-02-27 15:05:17.019 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 33149.5473ms +2023-02-27 15:05:17.019 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:05:17.164 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:05:17.250 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 15:05:26.242 +08:00 [INF] Executed DbCommand (8,991ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 15:05:26.799 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:05:26.799 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:05:26.803 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 893 - 200 - application/json;+charset=utf-8 42969.9840ms +2023-02-27 15:05:52.584 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 893 +2023-02-27 15:05:52.586 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:05:52.586 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 15:05:52.605 +08:00 [INF] Executing action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:05:52.644 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:05:53.133 +08:00 [INF] Executed DbCommand (481ms) [Parameters=[@__8__locals2_item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__8__locals2_item_PartCode_0 +2023-02-27 15:05:53.242 +08:00 [INF] Executed DbCommand (92ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 15:06:00.768 +08:00 [INF] Executed DbCommand (7,483ms) [Parameters=[@___barcode_0='?' (Size = 50), @__8__locals1_agvloc_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__8__locals1_agvloc_1)) AND ([t].[State] = 2) +2023-02-27 15:06:00.788 +08:00 [INF] Executed DbCommand (8ms) [Parameters=[@___barcode_0='?' (Size = 50), @__8__locals1_wmsloc_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__8__locals1_wmsloc_1)) AND ([t].[State] = 2) +2023-02-27 15:06:00.791 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:06:00.808 +08:00 [INF] Executed DbCommand (8ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiStockMoveDTO] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 15:06:02.891 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:06:02.892 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:06:02.892 +08:00 [INF] Executed action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 10286.9508ms. +2023-02-27 15:06:02.897 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:06:02.902 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.StockMove.ReturnResult'. +2023-02-27 15:06:02.902 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 10315.9554ms +2023-02-27 15:06:02.902 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:06:02.903 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:06:02.913 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 15:06:02.918 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 15:06:05.144 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:06:05.144 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:06:05.145 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 893 - 200 - application/json;+charset=utf-8 12560.5395ms +2023-02-27 15:06:47.826 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 893 +2023-02-27 15:06:47.831 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:06:47.832 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 15:06:47.853 +08:00 [INF] Executing action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:06:47.888 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:06:49.396 +08:00 [INF] Executed DbCommand (1,499ms) [Parameters=[@__8__locals2_item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__8__locals2_item_PartCode_0 +2023-02-27 15:06:54.166 +08:00 [INF] Executed DbCommand (4,766ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 15:06:54.640 +08:00 [INF] Executed DbCommand (472ms) [Parameters=[@___barcode_0='?' (Size = 50), @__8__locals1_agvloc_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__8__locals1_agvloc_1)) AND ([t].[State] = 2) +2023-02-27 15:06:54.647 +08:00 [INF] Executed DbCommand (6ms) [Parameters=[@___barcode_0='?' (Size = 50), @__8__locals1_wmsloc_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__8__locals1_wmsloc_1)) AND ([t].[State] = 2) +2023-02-27 15:09:22.562 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:09:23.484 +08:00 [INF] Executed DbCommand (908ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiStockMoveDTO] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 15:09:23.799 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:09:23.799 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:09:23.800 +08:00 [INF] Executed action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 155946.6172ms. +2023-02-27 15:09:23.804 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:09:23.809 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.StockMove.ReturnResult'. +2023-02-27 15:09:23.809 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 155977.0729ms +2023-02-27 15:09:23.809 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:09:23.810 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:09:23.822 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 15:09:23.826 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 15:09:25.207 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:09:25.207 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:09:25.208 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 893 - 200 - application/json;+charset=utf-8 157381.6026ms +2023-02-27 15:10:12.856 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 897 +2023-02-27 15:10:12.860 +08:00 [INF] Executing endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:10:12.860 +08:00 [INF] Route matched with {action = "Add", controller = "StockMove", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.StockMove.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.StockMove.StockMoveService (WmsWebApi.Application). +2023-02-27 15:10:12.878 +08:00 [INF] Executing action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:10:12.912 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:10:13.498 +08:00 [INF] Executed DbCommand (582ms) [Parameters=[@__8__locals2_item_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__8__locals2_item_PartCode_0 +2023-02-27 15:10:13.571 +08:00 [INF] Executed DbCommand (71ms) [Parameters=[@__part_DefaultReceiveLocCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AreaCode], [t].[AutoRemoveZeroStockDetail], [t].[DefaultPartCode], [t].[ErpLocCode], [t].[GroupCode], [t].[IsEnableMix], [t].[IsEnableNegativeStock], [t].[LocCode], [t].[LocName], [t].[LocType], [t].[MaxBoxQty], [t].[ProjectId], [t].[Remark], [t].[State], [t].[StoreKeeper], [t].[StoredPercent], [t].[WhseCode] +FROM [TA_STORE_LOCATION] AS [t] +WHERE [t].[LocCode] = @__part_DefaultReceiveLocCode_0 +2023-02-27 15:10:13.588 +08:00 [INF] Executed DbCommand (12ms) [Parameters=[@___barcode_0='?' (Size = 50), @__8__locals1_agvloc_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__8__locals1_agvloc_1)) AND ([t].[State] = 2) +2023-02-27 15:10:13.597 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@___barcode_0='?' (Size = 50), @__8__locals1_wmsloc_1='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[BarCode], [t].[LocCode], [t].[State], [t].[Amount], [t].[AreaCode], [t].[Batch], [t].[EqptCode], [t].[UID], [t].[OverdueDate], [t].[PartCode], [t].[PlanOrderId], [t].[ProduceDate], [t].[Qty], [t].[ReceiveDate], [t].[Remark], [t].[TracebackCode], [t].[UpdateQty], [t].[UpdateTime], [t].[VendBatch], [t].[VendId], [t].[Version], [t].[VinState] +FROM [TS_STOCK_DETAIL] AS [t] +WHERE (([t].[BarCode] = @___barcode_0) AND ([t].[LocCode] = @__8__locals1_wmsloc_1)) AND ([t].[State] = 2) +2023-02-27 15:10:48.788 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:10:52.026 +08:00 [INF] Executed DbCommand (3,225ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (DbType = DateTime2), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 4000), @p10='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiStockMoveDTO] ([Id], [AccountDate], [BillTime], [BillType], [DYSJ], [GUID], [ITYPE], [JSON], [OperName], [ReceiveDate], [SourceBillNum]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10); +2023-02-27 15:10:54.109 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:10:54.109 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:10:54.109 +08:00 [INF] Executed action method WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 41230.8729ms. +2023-02-27 15:10:54.112 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:10:54.117 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.StockMove.ReturnResult'. +2023-02-27 15:10:54.118 +08:00 [INF] Executed action WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application) in 41257.6017ms +2023-02-27 15:10:54.118 +08:00 [INF] Executed endpoint 'WmsWebApi.StockMove.StockMoveService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:10:54.118 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:10:54.129 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 15:10:54.133 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 15:10:56.250 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:10:56.250 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:10:56.251 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/ss/add application/json 897 - 200 - application/json;+charset=utf-8 43394.3823ms +2023-02-27 15:15:52.363 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/part/add application/json 2775 +2023-02-27 15:15:52.370 +08:00 [INF] Executing endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:15:52.373 +08:00 [INF] Route matched with {action = "Add", controller = "Part", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.Parts.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.Parts.PartService (WmsWebApi.Application). +2023-02-27 15:15:52.686 +08:00 [INF] Executing action method WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:15:57.927 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:16:00.525 +08:00 [INF] Executed DbCommand (2,558ms) [Parameters=[@__part_PartGroup_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[IsBom], [t].[IsManageType], [t].[IsPart], [t].[PARTGROUP], [t].[WERKS] +FROM [TM_PG_PARTGROUP] AS [t] +WHERE (([t].[WERKS] = N'1000') AND ([t].[PARTGROUP] = @__part_PartGroup_0)) AND ([t].[IsManageType] = CAST(1 AS bit)) +2023-02-27 15:16:00.606 +08:00 [INF] Executed DbCommand (74ms) [Parameters=[@__part_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__part_PartCode_0 +2023-02-27 15:16:02.428 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:16:02.514 +08:00 [INF] Executed DbCommand (41ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 50), @p10='?' (Size = 10), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPARTDTO] ([Id], [DISGR], [DYSJ], [GROES], [ITYPE], [JSON], [MAKTX], [MAKTX1], [MATKL], [MATNR], [MBRSH], [MEINS], [MTART], [VTWEG], [WERKS], [ZTEXT22]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15); +2023-02-27 15:16:02.573 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:02.573 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:02.573 +08:00 [INF] Executed action method WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 9887.5616ms. +2023-02-27 15:16:02.575 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:02.592 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.Parts.ReturnResult'. +2023-02-27 15:16:02.593 +08:00 [INF] Executed action WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) in 10220.3239ms +2023-02-27 15:16:02.593 +08:00 [INF] Executed endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:16:02.594 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:16:02.646 +08:00 [INF] Executed DbCommand (47ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 15:16:02.699 +08:00 [INF] Executed DbCommand (52ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 15:16:02.729 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:02.729 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:02.730 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/part/add application/json 2775 - 200 - application/json;+charset=utf-8 10368.5420ms +2023-02-27 15:16:09.778 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/part/add application/json 2775 +2023-02-27 15:16:09.779 +08:00 [INF] Executing endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:16:09.779 +08:00 [INF] Route matched with {action = "Add", controller = "Part", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.Parts.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.Parts.PartService (WmsWebApi.Application). +2023-02-27 15:16:09.800 +08:00 [INF] Executing action method WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:16:09.801 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:16:09.810 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_PartGroup_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[IsBom], [t].[IsManageType], [t].[IsPart], [t].[PARTGROUP], [t].[WERKS] +FROM [TM_PG_PARTGROUP] AS [t] +WHERE (([t].[WERKS] = N'1000') AND ([t].[PARTGROUP] = @__part_PartGroup_0)) AND ([t].[IsManageType] = CAST(1 AS bit)) +2023-02-27 15:16:09.816 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@__part_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__part_PartCode_0 +2023-02-27 15:16:09.827 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:16:09.837 +08:00 [INF] Executed DbCommand (5ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 50), @p10='?' (Size = 10), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPARTDTO] ([Id], [DISGR], [DYSJ], [GROES], [ITYPE], [JSON], [MAKTX], [MAKTX1], [MATKL], [MATNR], [MBRSH], [MEINS], [MTART], [VTWEG], [WERKS], [ZTEXT22]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15); +2023-02-27 15:16:10.930 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:10.930 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:10.930 +08:00 [INF] Executed action method WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 1129.8137ms. +2023-02-27 15:16:10.934 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:10.993 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.Parts.ReturnResult'. +2023-02-27 15:16:10.993 +08:00 [INF] Executed action WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) in 1213.5696ms +2023-02-27 15:16:10.993 +08:00 [INF] Executed endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:16:10.994 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:16:11.007 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 15:16:11.011 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 15:16:11.286 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:11.286 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:11.287 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/part/add application/json 2775 - 200 - application/json;+charset=utf-8 1509.2401ms +2023-02-27 15:16:32.421 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:5000/api/part/add application/json 2775 +2023-02-27 15:16:32.422 +08:00 [INF] Executing endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:16:32.423 +08:00 [INF] Route matched with {action = "Add", controller = "Part", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[WmsWebApi.Parts.ReturnResult] AddAsync(System.Object) on controller WmsWebApi.Parts.PartService (WmsWebApi.Application). +2023-02-27 15:16:32.440 +08:00 [INF] Executing action method WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) - Validation state: "Valid" +2023-02-27 15:16:32.441 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:16:32.450 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_PartGroup_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[IsBom], [t].[IsManageType], [t].[IsPart], [t].[PARTGROUP], [t].[WERKS] +FROM [TM_PG_PARTGROUP] AS [t] +WHERE (([t].[WERKS] = N'1000') AND ([t].[PARTGROUP] = @__part_PartGroup_0)) AND ([t].[IsManageType] = CAST(1 AS bit)) +2023-02-27 15:16:32.455 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@__part_PartCode_0='?' (Size = 50)], CommandType='"Text"', CommandTimeout='30'] +SELECT TOP(1) [t].[UID], [t].[AbcClass], [t].[CertificateOfQuality], [t].[Configuration], [t].[ContainerQty], [t].[DefaultBackFlushLocCode], [t].[DefaultReceiveLocCode], [t].[DistributionType], [t].[DrawingNumber], [t].[ErpPartCode], [t].[InspectType], [t].[Inspecter], [t].[IsAskMerge], [t].[IsConsign], [t].[IsDeposit], [t].[IsNoInterface], [t].[IsTransfer], [t].[LabelTemplate], [t].[LinesidePackQty], [t].[ManageType], [t].[MaxQty], [t].[MinQty], [t].[PalletSize], [t].[PalletTemplate], [t].[PartCode], [t].[PartDesc1], [t].[PartDesc2], [t].[PartGroup], [t].[PartKind], [t].[PartType], [t].[Process], [t].[ProjectId], [t].[Promo], [t].[QLevel], [t].[ReceivePort], [t].[Remark], [t].[SafeQty], [t].[SamplePercent], [t].[SingleWeight], [t].[Source], [t].[State], [t].[StockPackQty], [t].[StoreKeeper], [t].[Unit], [t].[ValidityDays] +FROM [TA_PART] AS [t] +WHERE [t].[PartCode] = @__part_PartCode_0 +2023-02-27 15:16:35.208 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'WmsWebApiDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:16:35.220 +08:00 [INF] Executed DbCommand (7ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 4000), @p2='?' (DbType = DateTime2), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?' (Size = 4000), @p9='?' (Size = 50), @p10='?' (Size = 10), @p11='?' (Size = 4000), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 4000), @p15='?' (Size = 4000)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [WmsWebApiPARTDTO] ([Id], [DISGR], [DYSJ], [GROES], [ITYPE], [JSON], [MAKTX], [MAKTX1], [MATKL], [MATNR], [MBRSH], [MEINS], [MTART], [VTWEG], [WERKS], [ZTEXT22]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15); +2023-02-27 15:16:35.275 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:35.275 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:40.123 +08:00 [INF] Executed action method WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 7683.3613ms. +2023-02-27 15:16:40.125 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:41.397 +08:00 [INF] Executing ObjectResult, writing value of type 'WmsWebApi.Parts.ReturnResult'. +2023-02-27 15:16:41.397 +08:00 [INF] Executed action WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application) in 8974.9032ms +2023-02-27 15:16:41.398 +08:00 [INF] Executed endpoint 'WmsWebApi.Parts.PartService.AddAsync (WmsWebApi.Application)' +2023-02-27 15:16:41.398 +08:00 [INF] Entity Framework Core 5.0.17 initialized 'AbpAuditLoggingDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: QuerySplittingBehavior=SplitQuery +2023-02-27 15:16:41.409 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21); +2023-02-27 15:16:41.414 +08:00 [INF] Executed DbCommand (4ms) [Parameters=[@p22='?' (DbType = Guid), @p23='?' (DbType = Guid), @p24='?' (DbType = Int32), @p25='?' (DbType = DateTime2), @p26='?' (Size = 4000), @p27='?' (Size = 128), @p28='?' (Size = 2000), @p29='?' (Size = 256), @p30='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30'] +SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p22, @p23, @p24, @p25, @p26, @p27, @p28, @p29, @p30); +2023-02-27 15:16:42.447 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:42.447 +08:00 [DBG] Added 0 entity changes to the current audit log +2023-02-27 15:16:42.447 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:5000/api/part/add application/json 2775 - 200 - application/json;+charset=utf-8 10026.0129ms diff --git a/src/WmsWebApi.Application/Boms/BomService.cs b/src/WmsWebApi.Application/Boms/BomService.cs index fa87d5f..c3ed572 100644 --- a/src/WmsWebApi.Application/Boms/BomService.cs +++ b/src/WmsWebApi.Application/Boms/BomService.cs @@ -8,6 +8,7 @@ using Volo.Abp.Application.Services; using Volo.Abp.Domain.Repositories; using Volo.Abp.Uow; using WmsWebApi.EntityFrameworkCore; +using WmsWebApi.OtherZll; using WmsWebApi.Wms; namespace WmsWebApi.Boms; @@ -20,19 +21,22 @@ public class BomService : ApplicationService, IBomService private readonly ITaPartRepository _taPartRepository; private readonly IBomManager _bomDtoRepository; private readonly TmPgWmsUpdate _tmPgWmsUpdate; + private readonly Volo.Abp.Uow.IUnitOfWorkManager _unitOfWorkManager; public BomService(ITmPgPartgroupRepository tmPgPartgroupRepository, ITaBomRepository taBomRepository, ITaPartRepository taPartRepository, IBomManager bomDtoRepository, - TmPgWmsUpdate tmPgWmsUpdate) + TmPgWmsUpdate tmPgWmsUpdate + , Volo.Abp.Uow.IUnitOfWorkManager unitOfWorkManager) { _tmPgPartgroupRepository = tmPgPartgroupRepository; _taBomRepository = taBomRepository; _taPartRepository = taPartRepository; _bomDtoRepository = bomDtoRepository; _tmPgWmsUpdate = tmPgWmsUpdate; - } + _unitOfWorkManager = unitOfWorkManager; +} [HttpPost("add")] //[UnitOfWork(false)] @@ -51,16 +55,20 @@ public class BomService : ApplicationService, IBomService result.MESSAGE = "Json格式不正确,详细信息:" + ex.Message; return result; } - + if (string.IsNullOrEmpty(_bom.MATNR)) + { + result.TYPE = 'E'; + result.MESSAGE = "物料号不能为空"; + return result; + } + try { var _remark = DateTime.Now.ToString("yyyy-MM-dd") + "!" + Guid.NewGuid(); if (_bom.WERKS == "1000") { var partgrouplist = _tmPgPartgroupRepository.Where(p => p.IsBom == true); - - if (string.IsNullOrEmpty(_bom.MATNR)) - throw new Exception($"物料号不能为空!"); + var part = _taPartRepository.FirstOrDefault(p => p.PartCode == _bom.MATNR); if (part == null) { @@ -162,14 +170,21 @@ public class BomService : ApplicationService, IBomService #endregion } } - } else { bOtherWork = true; result.MESSAGE = "非长春工厂数据!"; } - //var pParts = boms.Select(p => p.MATNR).ToList().ToString(); + } + catch (Exception ex) + { + result.TYPE = 'E'; + result.MESSAGE = ex.GetBaseException().Message; + throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); + } + finally + { WmsWebApiBOMDTO bomdto = new WmsWebApiBOMDTO() { MATNR = _bom.MATNR, @@ -196,24 +211,28 @@ public class BomService : ApplicationService, IBomService { bomdto.ITYPE = "非长春工厂数据!"; } - if(bPartGroup) + if (bPartGroup) { - bomdto.ITYPE = "没有对应物料组数据!"; } - if(bDel) + if (bDel) { bomdto.ITYPE += "删除!"; } await _bomDtoRepository.AddAsync(bomdto); } - catch(Exception ex) - { - result.TYPE = 'E'; - result.MESSAGE = ex.Message; - } return result; } + private async Task AddWmsWebApiBOMDtoNowUnitOfWorkAsync(WmsWebApiBOMDTO wmsWebApiBOMDTO) + { + if (wmsWebApiBOMDTO == null) { return; } + + using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: false)) + { + await _bomDtoRepository.AddAsync(wmsWebApiBOMDTO); + await uow.SaveChangesAsync(); + } + } } \ No newline at end of file diff --git a/src/WmsWebApi.Application/PPlan/PPlanService.cs b/src/WmsWebApi.Application/PPlan/PPlanService.cs index ab5feaf..5de95f6 100644 --- a/src/WmsWebApi.Application/PPlan/PPlanService.cs +++ b/src/WmsWebApi.Application/PPlan/PPlanService.cs @@ -7,6 +7,7 @@ using Newtonsoft.Json; using Volo.Abp.Application.Services; using Volo.Abp.Domain.Repositories; using Volo.Abp.Uow; +using WmsWebApi.Boms; using WmsWebApi.EntityFrameworkCore; using WmsWebApi.Wms; @@ -21,13 +22,15 @@ public class PPlanService : ApplicationService, IPPlanService private readonly ITaPartRepository _taPartRepository; private readonly IPPlanManager _pplanDtoRepository; private readonly TmPgWmsUpdate _tmPgWmsUpdate; + private readonly Volo.Abp.Uow.IUnitOfWorkManager _unitOfWorkManager; public PPlanService(ITmPgPartgroupRepository tmPgPartgroupRepository, ITmPgPlanRepository tmPgPlanRepository, ITbBillRepository tbBillRepository, ITaPartRepository taPartRepository, IPPlanManager pplanDtoRepository, - TmPgWmsUpdate tmPgWmsUpdate) + TmPgWmsUpdate tmPgWmsUpdate + , Volo.Abp.Uow.IUnitOfWorkManager unitOfWorkManager) { _tmPgPartgroupRepository = tmPgPartgroupRepository; _tmPgPlanRepository = tmPgPlanRepository; @@ -35,6 +38,7 @@ public class PPlanService : ApplicationService, IPPlanService _taPartRepository = taPartRepository; _pplanDtoRepository = pplanDtoRepository; _tmPgWmsUpdate = tmPgWmsUpdate; + _unitOfWorkManager = unitOfWorkManager; } [HttpPost("add")] @@ -54,7 +58,7 @@ public class PPlanService : ApplicationService, IPPlanService result.MESSAGE = "Json格式不正确,详细信息:" + ex.Message; return result; } - + try { if (_planDto.WERKS != "1000") @@ -64,7 +68,7 @@ public class PPlanService : ApplicationService, IPPlanService } else { - if (string.IsNullOrEmpty(_planDto.PEDTR) || string.IsNullOrEmpty(_planDto.SCHGRUP) || + if (string.IsNullOrEmpty(_planDto.PEDTR) || string.IsNullOrEmpty(_planDto.SCHGRUP) || string.IsNullOrEmpty(_planDto.KAPTPROG) || string.IsNullOrEmpty(_planDto.MATNR)) throw new Exception($"计划中 订单日期、分组、班次、物料号均不能为空!"); //var part = _taPartRepository.FirstOrDefault(p => p.PartCode == _planDto.MATNR); @@ -72,8 +76,6 @@ public class PPlanService : ApplicationService, IPPlanService // throw new Exception($"没有找到物料号!{_planDto.MATNR}"); if (_planDto.MATNR.StartsWith("3")) { - - // 查找是否有该计划 var _billnum = _planDto.PEDTR + "-" + _planDto.SCHGRUP + "-" + _planDto.KAPTPROG; var bill = await _tbBillRepository.FirstOrDefaultAsync(p => p.BillNum == _billnum); @@ -132,7 +134,16 @@ public class PPlanService : ApplicationService, IPPlanService result.MESSAGE = $"非WinWMS使用的物料号!{_planDto.MATNR}"; } } - //var pParts = boms.Select(p => p.MATNR).ToList().ToString(); + } + catch (Exception ex) + { + bErr = true; + result.TYPE = 'E'; + result.MESSAGE = ex.GetBaseException().Message; + throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); + } + finally + { WmsWebApiPPLANDTO dto = new WmsWebApiPPLANDTO() { PEDTR = _planDto.PEDTR, @@ -154,7 +165,6 @@ public class PPlanService : ApplicationService, IPPlanService JSON = content.ToString() }; dto.SetId(GuidGenerator); - if (bUpdate) { dto.ITYPE = "更新!"; @@ -163,19 +173,24 @@ public class PPlanService : ApplicationService, IPPlanService { dto.ITYPE = "非长春工厂数据!"; } - if(bErr) + if (bErr) { dto.ITYPE = result.MESSAGE; } - await _pplanDtoRepository.AddAsync(dto); - } - catch(Exception ex) - { - result.TYPE = 'E'; - result.MESSAGE = ex.Message; + await AddWmsWebApiPPLANDTONowUnitOfWorkAsync(dto); } return result; } + private async Task AddWmsWebApiPPLANDTONowUnitOfWorkAsync(WmsWebApiPPLANDTO wmsWebApiPPLANDTO) + { + if (wmsWebApiPPLANDTO == null) { return; } + + using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: false)) + { + await _pplanDtoRepository.AddAsync(wmsWebApiPPLANDTO); + await uow.SaveChangesAsync(); + } + } } \ No newline at end of file diff --git a/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs b/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs index 209f0fe..57bea34 100644 --- a/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs +++ b/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs @@ -10,6 +10,7 @@ using Volo.Abp.Domain.Repositories; using Volo.Abp.Uow; using WmsWebApi.Domain; using WmsWebApi.EntityFrameworkCore; +using WmsWebApi.PPlan; using WmsWebApi.ProductRecieve; using WmsWebApi.Wms; @@ -27,6 +28,7 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService private readonly ITaPartRepository _taPartRepository; private readonly ITaStoreLocationRepository _taStoreLocationRepository; private readonly IConfiguration _configuration; + private readonly Volo.Abp.Uow.IUnitOfWorkManager _unitOfWorkManager; public ProductRecieveService(ITsStockDetailRepository tsStockDetailRepository, ITbProductReceiveRepository tbProductReceiveRepository, @@ -36,7 +38,8 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService ITLTransactionRepository tlTransactionRepository, IProductRecieveManager productRecieveManager, TmPgWmsUpdate tmPgWmsUpdate, - IConfiguration configuration) + IConfiguration configuration, + IUnitOfWorkManager unitOfWorkManager) { _tsStockDetailRepository = tsStockDetailRepository; _tbProductReceiveRepository = tbProductReceiveRepository; @@ -47,26 +50,28 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService _productRecieveManager = productRecieveManager; _tmPgWmsUpdate = tmPgWmsUpdate; _configuration = configuration; + _unitOfWorkManager = unitOfWorkManager; } [HttpPost("add")] public async Task AddAsync([FromBody] object content) { var result = new ReturnResult(); + result.MESSAGE = ""; PRDto _PRDto; //bool bUpdate = false,bOtherWork = false, bDel = false,bNotFind = false, bPartGroup = false; bool bErr = false; try { _PRDto = JsonConvert.DeserializeObject(content.ToString()); - } + } catch (Exception ex) { result.TYPE = 'E'; result.MESSAGE = "Json格式不正确,详细信息:" + ex.Message; return result; } - + try { List _billList = new List(); @@ -89,9 +94,16 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService BillType = 201, SubBillType = 10100, State = 2, - Remark = "AGVProductRecieve", - AccountDate = DateTime.ParseExact(_PRDto.AccountDate, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture) + Remark = "AGVProductRecieve" }; + try + { + tbBill.AccountDate = DateTime.ParseExact(_PRDto.AccountDate, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture); + } + catch (Exception) + { + tbBill.AccountDate = DateTime.Parse(_PRDto.AccountDate); + } _billList.Add(tbBill); #endregion @@ -171,8 +183,8 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService var stock = await _tsStockDetailRepository.FirstOrDefaultAsync(p => p.BarCode == _barcode && p.LocCode == part.DefaultReceiveLocCode - && p.State == EnumStockState.合格); - + && p.State == EnumStockState.合格); + if (stock == null) { _stockList.Add(tsStock); @@ -181,7 +193,7 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService { _stockUpdateList.Add(tsStock); } - + //插入tl_transaction var tlTrans = new TL_TRANSACTION { @@ -214,9 +226,17 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService if (_stockUpdateList != null && _stockUpdateList.Count() > 0) await _tmPgWmsUpdate.UpdateTsStock(_stockUpdateList); await _tlTransactionRepository.AddAsync(_transList); - } - - //var pParts = boms.Select(p => p.MATNR).ToList().ToString(); + } + } + catch (Exception ex) + { + bErr = true; + result.TYPE = 'E'; + result.MESSAGE = ex.Message; + throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); + } + finally + { WmsWebApiProductRecieveDTO apiPRdto = new WmsWebApiProductRecieveDTO() { AccountDate = _PRDto.AccountDate, @@ -234,15 +254,24 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService result.TYPE = 'E'; apiPRdto.ITYPE = result.MESSAGE; } - await _productRecieveManager.AddAsync(apiPRdto); + await AddWmsWebApiProductRecieveDTONowUnitOfWorkAsync(apiPRdto); } - catch(Exception ex) + + if (bErr == false) { - result.TYPE = 'E'; - result.MESSAGE = ex.Message; + result.MESSAGE = "接收成功!"; } - return result; } + private async Task AddWmsWebApiProductRecieveDTONowUnitOfWorkAsync(WmsWebApiProductRecieveDTO wmsWebApiProductRecieveDTO) + { + if (wmsWebApiProductRecieveDTO == null) { return; } + + using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: false)) + { + await _productRecieveManager.AddAsync(wmsWebApiProductRecieveDTO); + await uow.SaveChangesAsync(); + } + } } \ No newline at end of file diff --git a/src/WmsWebApi.Application/Purchase/PurchaseService.cs b/src/WmsWebApi.Application/Purchase/PurchaseService.cs index 91d51e9..96c32c9 100644 --- a/src/WmsWebApi.Application/Purchase/PurchaseService.cs +++ b/src/WmsWebApi.Application/Purchase/PurchaseService.cs @@ -7,6 +7,7 @@ using Newtonsoft.Json; using Volo.Abp.Application.Services; using Volo.Abp.Domain.Repositories; using Volo.Abp.Uow; +using WmsWebApi.Domain; using WmsWebApi.EntityFrameworkCore; using WmsWebApi.Purchase; using WmsWebApi.Wms; @@ -24,6 +25,7 @@ public class PurchaseService : ApplicationService, IPPlanService private readonly IPurchaseManager _purchaseManager; private readonly ITLTransactionRepository _tlTransactionRepository; private readonly TmPgWmsUpdate _tmPgWmsUpdate; + private readonly Volo.Abp.Uow.IUnitOfWorkManager _unitOfWorkManager; public PurchaseService(ITsStockDetailRepository tsStockDetailRepository, ITbProductReceiveRepository tbProductReceiveRepository, @@ -32,7 +34,8 @@ public class PurchaseService : ApplicationService, IPPlanService ITaStoreLocationRepository taStoreLocationRepository, IPurchaseManager purchaseManager, ITLTransactionRepository tlTransactionRepository, - TmPgWmsUpdate tmPgWmsUpdate) + TmPgWmsUpdate tmPgWmsUpdate, + IUnitOfWorkManager unitOfWorkManager) { _tsStockDetailRepository = tsStockDetailRepository; _tbProductReceiveRepository = tbProductReceiveRepository; @@ -42,6 +45,7 @@ public class PurchaseService : ApplicationService, IPPlanService _purchaseManager = purchaseManager; _tlTransactionRepository = tlTransactionRepository; _tmPgWmsUpdate = tmPgWmsUpdate; + _unitOfWorkManager = unitOfWorkManager; } [HttpPost("add")] @@ -55,7 +59,7 @@ public class PurchaseService : ApplicationService, IPPlanService try { _purchaseDto = JsonConvert.DeserializeObject(content.ToString()); - } + } catch (Exception ex) { result.TYPE = 'E'; @@ -319,18 +323,27 @@ public class PurchaseService : ApplicationService, IPPlanService bUpdate = true; result.MESSAGE = $"err:单据 {_purchaseDto.MBLNR} 已存在"; } - } - //var pParts = boms.Select(p => p.MATNR).ToList().ToString(); + } + } + catch(Exception ex) + { + bErr = true; + result.TYPE = 'E'; + result.MESSAGE = ex.GetBaseException().Message; + throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); + } + finally + { WmsWebApiPURCHASEDTO dto = new WmsWebApiPURCHASEDTO() { MBLNR = _purchaseDto.MBLNR, MJAHR = _purchaseDto.MJAHR, BUDAT = _purchaseDto.BUDAT, - + JSON = content.ToString() }; dto.SetId(GuidGenerator); - + if (bUpdate) { dto.ITYPE = $"err:单据 {_purchaseDto.MBLNR} 已存在!"; @@ -339,19 +352,24 @@ public class PurchaseService : ApplicationService, IPPlanService { dto.ITYPE = "非长春工厂数据!"; } - if(bErr || bTypeErr) + if (bErr || bTypeErr) { dto.ITYPE = result.MESSAGE; } - await _purchaseManager.AddAsync(dto); - } - catch(Exception ex) - { - result.TYPE = 'E'; - result.MESSAGE = ex.Message; + await AddWmsWebApiPURCHASEDTONowUnitOfWorkAsync(dto); } return result; } + private async Task AddWmsWebApiPURCHASEDTONowUnitOfWorkAsync(WmsWebApiPURCHASEDTO wmsWebApiPURCHASEDTO) + { + if (wmsWebApiPURCHASEDTO == null) { return; } + + using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: false)) + { + await _purchaseManager.AddAsync(wmsWebApiPURCHASEDTO); + await uow.SaveChangesAsync(); + } + } } \ No newline at end of file diff --git a/src/WmsWebApi.Application/StockMove/StockMoveService.cs b/src/WmsWebApi.Application/StockMove/StockMoveService.cs index 3fce3ca..7950fb7 100644 --- a/src/WmsWebApi.Application/StockMove/StockMoveService.cs +++ b/src/WmsWebApi.Application/StockMove/StockMoveService.cs @@ -27,6 +27,7 @@ public class StockMoveService : ApplicationService, IStockMoveService private readonly ITaPartRepository _taPartRepository; private readonly ITaStoreLocationRepository _taStoreLocationRepository; private readonly IConfiguration _configuration; + private readonly Volo.Abp.Uow.IUnitOfWorkManager _unitOfWorkManager; public StockMoveService(ITsStockDetailRepository tsStockDetailRepository, ITbStockMoveRepository tbStockMoveRepository, @@ -36,7 +37,8 @@ public class StockMoveService : ApplicationService, IStockMoveService ITLTransactionRepository tlTransactionRepository, IStockMoveManager stockMoveManager, TmPgWmsUpdate tmPgWmsUpdate, - IConfiguration configuration) + IConfiguration configuration, + IUnitOfWorkManager unitOfWorkManager) { _tsStockDetailRepository = tsStockDetailRepository; _tbStockMoveRepository = tbStockMoveRepository; @@ -47,6 +49,7 @@ public class StockMoveService : ApplicationService, IStockMoveService _stockMoveManager = stockMoveManager; _tmPgWmsUpdate = tmPgWmsUpdate; _configuration = configuration; + _unitOfWorkManager = unitOfWorkManager; } [HttpPost("add")] @@ -66,7 +69,7 @@ public class StockMoveService : ApplicationService, IStockMoveService result.MESSAGE = "Json格式不正确,详细信息:" + ex.Message; return result; } - + try { List _billList = new List(); @@ -89,9 +92,16 @@ public class StockMoveService : ApplicationService, IStockMoveService BillType = 302, SubBillType = 30201, State = 2, - Remark = "AGVMove", - AccountDate = DateTime.ParseExact(_SSDto.AccountDate, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture) + Remark = "AGVMove" }; + try + { + tbBill.AccountDate = DateTime.ParseExact(_SSDto.AccountDate, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture); + } + catch (Exception) + { + tbBill.AccountDate = DateTime.Parse(_SSDto.AccountDate); + } _billList.Add(tbBill); #endregion var agvloc = _configuration.GetConnectionString("AgvInLoc"); @@ -140,12 +150,12 @@ public class StockMoveService : ApplicationService, IStockMoveService ToState = EnumStockState.合格 }; - if(_SSDto.BillType == "902")//从WMS移库到AGV + if (_SSDto.BillType == "902")//从WMS移库到AGV { tbStockMove.FromLocCode = wmsloc; tbStockMove.ToLocCode = agvloc; } - else if(_SSDto.BillType == "903") + else if (_SSDto.BillType == "903") { tbStockMove.FromLocCode = agvloc; tbStockMove.ToLocCode = wmsloc; @@ -328,7 +338,7 @@ public class StockMoveService : ApplicationService, IStockMoveService _transList.Add(tlTrans1); _transList.Add(tlTrans2); } - + #endregion } @@ -347,8 +357,16 @@ public class StockMoveService : ApplicationService, IStockMoveService await _tmPgWmsUpdate.DeleteTsStock(_stockDelList); await _tlTransactionRepository.AddAsync(_transList); } - - //var pParts = boms.Select(p => p.MATNR).ToList().ToString(); + } + catch (Exception ex) + { + bErr = true; + result.TYPE = 'E'; + result.MESSAGE = ex.Message; + throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); + } + finally + { WmsWebApiStockMoveDTO apiSSdto = new WmsWebApiStockMoveDTO() { AccountDate = _SSDto.AccountDate, @@ -366,15 +384,20 @@ public class StockMoveService : ApplicationService, IStockMoveService result.TYPE = 'E'; apiSSdto.ITYPE = result.MESSAGE; } - await _stockMoveManager.AddAsync(apiSSdto); - } - catch(Exception ex) - { - result.TYPE = 'E'; - result.MESSAGE = ex.Message; + await AddWmsWebApiStockMoveDTONowUnitOfWorkAsync(apiSSdto); } return result; } + private async Task AddWmsWebApiStockMoveDTONowUnitOfWorkAsync(WmsWebApiStockMoveDTO wmsWebApiStockMoveDTO) + { + if (wmsWebApiStockMoveDTO == null) { return; } + + using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: false)) + { + await _stockMoveManager.AddAsync(wmsWebApiStockMoveDTO); + await uow.SaveChangesAsync(); + } + } } \ No newline at end of file diff --git a/src/WmsWebApi.Application/TbParts/PartService.cs b/src/WmsWebApi.Application/TbParts/PartService.cs index 572d6b9..dba895e 100644 --- a/src/WmsWebApi.Application/TbParts/PartService.cs +++ b/src/WmsWebApi.Application/TbParts/PartService.cs @@ -7,6 +7,7 @@ using Newtonsoft.Json; using Volo.Abp.Application.Services; using Volo.Abp.Domain.Repositories; using Volo.Abp.Uow; +using WmsWebApi.Domain; using WmsWebApi.EntityFrameworkCore; using WmsWebApi.Wms; @@ -20,17 +21,20 @@ public class PartService : ApplicationService, IPartService private readonly ITaCustPartRepository _taCustPartRepository; private readonly IPartManager _partDtoRepository; private readonly TmPgWmsUpdate _tmPgWmsUpdate; + private readonly Volo.Abp.Uow.IUnitOfWorkManager _unitOfWorkManager; public PartService(ITmPgPartgroupRepository tmPgPartgroupRepository, ITaPartRepository taPartRepository, ITaCustPartRepository taCustPartRepository, IPartManager partDtoRepository, - TmPgWmsUpdate tmPgWmsUpdate) + TmPgWmsUpdate tmPgWmsUpdate, + IUnitOfWorkManager unitOfWorkManager) { _tmPgPartgroupRepository = tmPgPartgroupRepository; _taPartRepository = taPartRepository; _taCustPartRepository = taCustPartRepository; _partDtoRepository = partDtoRepository; _tmPgWmsUpdate = tmPgWmsUpdate; + _unitOfWorkManager = unitOfWorkManager; } [HttpPost("add")] @@ -50,7 +54,13 @@ public class PartService : ApplicationService, IPartService result.MESSAGE = "Json格式不正确,详细信息:" + ex.Message; return result; } - + if (string.IsNullOrEmpty(_part.MATNR)) + { + result.TYPE = 'E'; + result.MESSAGE = "物料号不能为空!"; + return result; + } + try { //判断是否是长春工厂 @@ -61,9 +71,6 @@ public class PartService : ApplicationService, IPartService } else { - if (string.IsNullOrEmpty(_part.MATNR)) - throw new Exception($"物料号不能为空!"); - if (_part.MATNR.Trim().StartsWith("1") || _part.MATNR.Trim().StartsWith("2") || _part.MATNR.Trim().StartsWith("3") || _part.MATNR.Trim().StartsWith("7")) { #region part信息更新 @@ -96,7 +103,7 @@ public class PartService : ApplicationService, IPartService //[DisplayName("状态")] part.State = "A"; - if(_part.MMSTA.Trim().ToUpper() == "Z2") + if (_part.MMSTA.Trim().ToUpper() == "Z2") part.State = "H"; //[DisplayName("管理类型")] --判断物料组属性 @@ -230,10 +237,19 @@ public class PartService : ApplicationService, IPartService else { bErr = true; - result.MESSAGE = $"非WinWMS使用的物料号!{_part.MATNR.Trim()}"; + result.MESSAGE = $"非WinWMS使用的物料号!{_part.MATNR.Trim()}"; } } - + } + catch (Exception ex) + { + bErr = true; + result.TYPE = 'E'; + result.MESSAGE = ex.GetBaseException().Message; + throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); + } + finally + { WmsWebApiPARTDTO partdto = new WmsWebApiPARTDTO() { MATNR = _part.MATNR, @@ -259,19 +275,25 @@ public class PartService : ApplicationService, IPartService { partdto.ITYPE = "非长春工厂数据"; } - if(bErr) + if (bErr) { partdto.ITYPE = result.MESSAGE; } - await _partDtoRepository.AddAsync(partdto); - } - catch(Exception ex) - { - result.TYPE = 'E'; - result.MESSAGE = ex.Message; + await AddWmsWebApiPARTDTONowUnitOfWorkAsync(partdto); } return result; } + private async Task AddWmsWebApiPARTDTONowUnitOfWorkAsync(WmsWebApiPARTDTO wmsWebApiPARTDTO) + { + if (wmsWebApiPARTDTO == null) { return; } + + using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: false)) + { + await _partDtoRepository.AddAsync(wmsWebApiPARTDTO); + await uow.SaveChangesAsync(); + } + } + } \ No newline at end of file diff --git a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs index e30f628..c1ab87d 100644 --- a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs +++ b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs @@ -62,6 +62,7 @@ public class ZlldcjLogAppService : ApplicationService, IZlldcjLogAppService { result.TYPE = 'E'; result.MESSAGE = ex.Message; + throw new Exception(ex.Message, ex); } return result; @@ -354,6 +355,7 @@ public class ZlldcjLogAppService : ApplicationService, IZlldcjLogAppService { result.TYPE = 'E'; result.MESSAGE = ex.Message; + throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); } return result; } diff --git a/src/WmsWebApi.Domain/StockMove/StockMoveManager.cs b/src/WmsWebApi.Domain/StockMove/StockMoveManager.cs index a14fa45..848bc4a 100644 --- a/src/WmsWebApi.Domain/StockMove/StockMoveManager.cs +++ b/src/WmsWebApi.Domain/StockMove/StockMoveManager.cs @@ -11,11 +11,11 @@ using WmsWebApi.Wms; namespace WmsWebApi.Domain; -public class PartManager : DomainService, IStockMoveManager +public class StockMoveManager : DomainService, IStockMoveManager { private readonly IRepository _partDtoRepository; - public PartManager( + public StockMoveManager( IRepository partDtoRepository ) { diff --git a/src/WmsWebApi.EntityFrameworkCore/EntityFrameworkCore/WmsWebApiDbContextModelCreatingExtensions.cs b/src/WmsWebApi.EntityFrameworkCore/EntityFrameworkCore/WmsWebApiDbContextModelCreatingExtensions.cs index 42e09d4..d20b6f2 100644 --- a/src/WmsWebApi.EntityFrameworkCore/EntityFrameworkCore/WmsWebApiDbContextModelCreatingExtensions.cs +++ b/src/WmsWebApi.EntityFrameworkCore/EntityFrameworkCore/WmsWebApiDbContextModelCreatingExtensions.cs @@ -3,6 +3,7 @@ using Microsoft.EntityFrameworkCore; using Volo.Abp; using Volo.Abp.EntityFrameworkCore.Modeling; using WmsWebApi.Boms; +using WmsWebApi.Domain; using WmsWebApi.OtherZll; using WmsWebApi.Parts; using WmsWebApi.PPlan; @@ -82,6 +83,9 @@ namespace WmsWebApi.EntityFrameworkCore //其他领料 ConfigureOtherDllDto(builder); + + ConfigureProductRecieve(builder); + ConfigureWmsWebApiStockMove(builder); } private static void ConfigureTbOrder(ModelBuilder builder) @@ -641,5 +645,23 @@ namespace WmsWebApi.EntityFrameworkCore b.Property(q => q.ITYPE); }); } + + private static void ConfigureProductRecieve(ModelBuilder builder) + { + builder.Entity(b => + { + b.ToTable("WmsWebApiProductRecieveDTO", WmsWebApiDbProperties.DbSchema); + b.ConfigureByConvention(); + }); + } + + private static void ConfigureWmsWebApiStockMove(ModelBuilder builder) + { + builder.Entity(b => + { + b.ToTable("WmsWebApiStockMoveDTO", WmsWebApiDbProperties.DbSchema); + b.ConfigureByConvention(); + }); + } } } \ No newline at end of file