增加日志
This commit is contained in:
@@ -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