增加日志
This commit is contained in:
@@ -4907,6 +4907,11 @@
|
||||
监测金蝶删单
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Domain.Options.QuartzJobOptions.JobStartProductInventory">
|
||||
<summary>
|
||||
成品仓库即时库存
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Domain.Options.QuartzJobOptions.JobStoreClusteredKey">
|
||||
<summary>
|
||||
是否启用集群:键
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user