diff --git a/.vs/WMS.Web/DesignTimeBuild/.dtbcache.v2 b/.vs/WMS.Web/DesignTimeBuild/.dtbcache.v2 index 845061d2..a2bfa09e 100644 Binary files a/.vs/WMS.Web/DesignTimeBuild/.dtbcache.v2 and b/.vs/WMS.Web/DesignTimeBuild/.dtbcache.v2 differ diff --git a/src/WMS.Web.Domain/Services/ProductInventoryService.cs b/src/WMS.Web.Domain/Services/ProductInventoryService.cs index e6596b3b..03e2d19c 100644 --- a/src/WMS.Web.Domain/Services/ProductInventoryService.cs +++ b/src/WMS.Web.Domain/Services/ProductInventoryService.cs @@ -72,7 +72,7 @@ namespace WMS.Web.Domain.Services //var str = string.Join(",", codes.Select(s => s.Code).ToList()); var res = await _erpInventoryService.GetInventory(codes.Select(s => s.Code).ToList()); - _logger.LogInformation($"拉取金蝶数据结果:{res.IsSuccess} {res.Message} {res.Data.Count()}"); + _logger.LogInformation($"拉取金蝶数据结果:{res.IsSuccess} {res.Message}"); if (!res.IsSuccess) return res; //过滤掉不符合要求的组织和仓库组合 List listOld = new List(); @@ -144,7 +144,7 @@ namespace WMS.Web.Domain.Services var ids = resStock.Data.Where(w => listNames.Contains(w.Name)).Select(s => s.Id).ToList(); //获取领星库存 var resInventory = await _juShuiTanService.GetInventory(ids); - _logger.LogInformation($"拉取聚水潭数据结果:{resInventory.IsSuccess} {resInventory.Message} {resInventory.Data.Count()}"); + _logger.LogInformation($"拉取聚水潭数据结果:{resInventory.IsSuccess} {resInventory.Message}"); if (!resInventory.IsSuccess) return resStock; @@ -235,7 +235,7 @@ namespace WMS.Web.Domain.Services string strIds = string.Join(",", ids); //获取领星库存 var resInventory = await _lingXingService.GetInventory(new Core.Dto.LingXing.LingXingInventoryRequest() { wid = strIds }); - _logger.LogInformation($"拉取领星数据结果:{resInventory.IsSuccess} {resInventory.Message} {resInventory.Data.Count()}"); + _logger.LogInformation($"拉取领星数据结果:{resInventory.IsSuccess} {resInventory.Message}"); if (!resInventory.IsSuccess) return resStock; //物料 diff --git a/src/WMS.Web.Domain/Services/Public/LingXingService.cs b/src/WMS.Web.Domain/Services/Public/LingXingService.cs index df6f5415..2c097ac7 100644 --- a/src/WMS.Web.Domain/Services/Public/LingXingService.cs +++ b/src/WMS.Web.Domain/Services/Public/LingXingService.cs @@ -25,6 +25,7 @@ using WMS.Web.Core.Help; using static System.Net.WebRequestMethods; using WMS.Web.Domain.Values; using WMS.Web.Core.Dto.JuShuiTan; +using System.Threading; namespace WMS.Web.Domain.Services.Public { @@ -142,6 +143,7 @@ namespace WMS.Web.Domain.Services.Public int num = res.Total / 800; for (int i = 1; i <= num; i++) { + Thread.Sleep(1000);//怕拉取过于频繁接口限制 dto.offset = i; if (i == num) dto.length = res.Total - (num * 800); resUrl = await GetStr("/erp/sc/routing/data/local_inventory/inventoryDetails", dto);