diff --git a/src/WmsWebApi.Application/Boms/BomService.cs b/src/WmsWebApi.Application/Boms/BomService.cs index 63b4f20..6632bf3 100644 --- a/src/WmsWebApi.Application/Boms/BomService.cs +++ b/src/WmsWebApi.Application/Boms/BomService.cs @@ -214,7 +214,7 @@ public class BomService : ApplicationService, IBomService if (IsRequestRetry == false) { - await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.BomAdd, content.ToString()); + //await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.BomAdd, content.ToString()); } throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); diff --git a/src/WmsWebApi.Application/PPlan/PPlanService.cs b/src/WmsWebApi.Application/PPlan/PPlanService.cs index 8d2cf53..4dc8a7b 100644 --- a/src/WmsWebApi.Application/PPlan/PPlanService.cs +++ b/src/WmsWebApi.Application/PPlan/PPlanService.cs @@ -181,7 +181,7 @@ public class PPlanService : ApplicationService, IPPlanService if (IsRequestRetry == false) { - await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.PPlanAdd, content.ToString()); + //await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.PPlanAdd, content.ToString()); } throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); diff --git a/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs b/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs index 2534475..32cd3c2 100644 --- a/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs +++ b/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs @@ -266,7 +266,7 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService if (IsRequestRetry == false) { - await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.ProductRecieveAdd, content.ToString()); + //await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.ProductRecieveAdd, content.ToString()); } throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); diff --git a/src/WmsWebApi.Application/StockMove/StockMoveService.cs b/src/WmsWebApi.Application/StockMove/StockMoveService.cs index d1cc040..7643888 100644 --- a/src/WmsWebApi.Application/StockMove/StockMoveService.cs +++ b/src/WmsWebApi.Application/StockMove/StockMoveService.cs @@ -395,7 +395,7 @@ public class StockMoveService : ApplicationService, IStockMoveService if (IsRequestRetry == false) { - await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.StockMoveAdd, content.ToString()); + //await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.StockMoveAdd, content.ToString()); } throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); diff --git a/src/WmsWebApi.Application/TbParts/PartService.cs b/src/WmsWebApi.Application/TbParts/PartService.cs index ddc142a..e5537b6 100644 --- a/src/WmsWebApi.Application/TbParts/PartService.cs +++ b/src/WmsWebApi.Application/TbParts/PartService.cs @@ -284,7 +284,7 @@ public class PartService : ApplicationService, IPartService if (IsRequestRetry == false) { - await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.PartAdd, content.ToString()); + //await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.PartAdd, content.ToString()); } throw new Exception($"接口异常,请稍后重试:{ex.GetBaseException().Message}", ex); diff --git a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs index 01168ab..d7d7f91 100644 --- a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs +++ b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs @@ -213,7 +213,7 @@ public class ZlldcjLogAppService : ApplicationService, IZlldcjLogAppService { item.IType = ex.GetBaseException().Message; } - throw new Exception("操作数据库失败,请稍后重试。", ex); + throw; } finally { @@ -244,8 +244,7 @@ public class ZlldcjLogAppService : ApplicationService, IZlldcjLogAppService { await _backgroundJobRequestRetry.AddBackgroundJobAsync(EnumActionName.ZlldcjLogAdd, content.ToString()); } - - throw; + throw new Exception("操作数据库失败,稍后系统自动重试。", ex); } finally { diff --git a/src/WmsWebApi.EntityFrameworkCore/EntityFrameworkCore/WmsWebApiDbContextModelCreatingExtensions.cs b/src/WmsWebApi.EntityFrameworkCore/EntityFrameworkCore/WmsWebApiDbContextModelCreatingExtensions.cs index c7457cf..fd820fd 100644 --- a/src/WmsWebApi.EntityFrameworkCore/EntityFrameworkCore/WmsWebApiDbContextModelCreatingExtensions.cs +++ b/src/WmsWebApi.EntityFrameworkCore/EntityFrameworkCore/WmsWebApiDbContextModelCreatingExtensions.cs @@ -537,9 +537,9 @@ namespace WmsWebApi.EntityFrameworkCore { b.ToTable("WmsWebApiPURCHASEDTO", WmsWebApiDbProperties.DbSchema); b.ConfigureByConvention(); - b.Property(q => q.MBLNR).IsRequired().HasMaxLength(10); - b.Property(q => q.MJAHR).IsRequired().HasMaxLength(10); - b.Property(q => q.BUDAT).IsRequired(); + b.Property(q => q.MBLNR).IsRequired().HasMaxLength(20); + b.Property(q => q.MJAHR).IsRequired().HasMaxLength(20); + b.Property(q => q.BUDAT).IsRequired().HasMaxLength(20); b.Property(q => q.JSON); b.Property(q => q.DYSJ); b.Property(q => q.ITYPE);