增加日志

This commit is contained in:
18942506660
2024-10-30 10:23:13 +08:00
parent c06db35af4
commit e8284d9c80
3 changed files with 21 additions and 6 deletions

View File

@@ -4907,6 +4907,11 @@
监测金蝶删单 监测金蝶删单
</summary> </summary>
</member> </member>
<member name="P:WMS.Web.Domain.Options.QuartzJobOptions.JobStartProductInventory">
<summary>
成品仓库即时库存
</summary>
</member>
<member name="P:WMS.Web.Domain.Options.QuartzJobOptions.JobStoreClusteredKey"> <member name="P:WMS.Web.Domain.Options.QuartzJobOptions.JobStoreClusteredKey">
<summary> <summary>
是否启用集群:键 是否启用集群:键

View File

@@ -300,14 +300,24 @@ namespace WMS.Web.Domain.Services
{ {
_logger.LogInformation($"同步成品仓库存->开始 {DateTime.Now}"); _logger.LogInformation($"同步成品仓库存->开始 {DateTime.Now}");
var res = await this.Erp(); try
if (!res.IsSuccess) return res; {
var res = await this.Erp();
_logger.LogInformation($"同步成品仓库存(物料) {res.IsSuccess} {res.Message}");
if (!res.IsSuccess) return res;
res = await this.JuShuiTan(); res = await this.JuShuiTan();
if (!res.IsSuccess) return res; _logger.LogInformation($"同步成品仓库存(聚水潭) {res.IsSuccess} {res.Message}");
if (!res.IsSuccess) return res;
res = await this.LingXing(); res = await this.LingXing();
if (!res.IsSuccess) return res; _logger.LogInformation($"同步成品仓库存(领星) {res.IsSuccess} {res.Message}");
if (!res.IsSuccess) return res;
}
catch (Exception ex)
{
_logger.LogError($"同步成品仓库异常:{ex.ToString()}");
}
_logger.LogInformation($"同步成品仓库存->结束 {DateTime.Now}"); _logger.LogInformation($"同步成品仓库存->结束 {DateTime.Now}");
return Result.ReSuccess(); return Result.ReSuccess();