diff --git a/.vs/WMS.Web/DesignTimeBuild/.dtbcache.v2 b/.vs/WMS.Web/DesignTimeBuild/.dtbcache.v2 index 2d8d064f..11ebb1fd 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.Api/wwwroot/WMS.Web.Domain.xml b/src/WMS.Web.Api/wwwroot/WMS.Web.Domain.xml index 7db0df75..dbe907eb 100644 --- a/src/WMS.Web.Api/wwwroot/WMS.Web.Domain.xml +++ b/src/WMS.Web.Api/wwwroot/WMS.Web.Domain.xml @@ -4907,6 +4907,11 @@ 监测金蝶删单 + + + 成品仓库即时库存 + + 是否启用集群:键 diff --git a/src/WMS.Web.Domain/Services/ProductInventoryService.cs b/src/WMS.Web.Domain/Services/ProductInventoryService.cs index 9c1da60d..650dfd5d 100644 --- a/src/WMS.Web.Domain/Services/ProductInventoryService.cs +++ b/src/WMS.Web.Domain/Services/ProductInventoryService.cs @@ -300,14 +300,24 @@ namespace WMS.Web.Domain.Services { _logger.LogInformation($"同步成品仓库存->开始 {DateTime.Now}"); - var res = await this.Erp(); - if (!res.IsSuccess) return res; + try + { + var res = await this.Erp(); + _logger.LogInformation($"同步成品仓库存(物料) {res.IsSuccess} {res.Message}"); + if (!res.IsSuccess) return res; - res = await this.JuShuiTan(); - if (!res.IsSuccess) return res; + res = await this.JuShuiTan(); + _logger.LogInformation($"同步成品仓库存(聚水潭) {res.IsSuccess} {res.Message}"); + if (!res.IsSuccess) return res; - res = await this.LingXing(); - if (!res.IsSuccess) return res; + res = await this.LingXing(); + _logger.LogInformation($"同步成品仓库存(领星) {res.IsSuccess} {res.Message}"); + if (!res.IsSuccess) return res; + } + catch (Exception ex) + { + _logger.LogError($"同步成品仓库异常:{ex.ToString()}"); + } _logger.LogInformation($"同步成品仓库存->结束 {DateTime.Now}"); return Result.ReSuccess();