增加日志判断

master
jianghaiqing 6 months ago
parent 7610cc33c3
commit de6f5f5604

@ -754,8 +754,28 @@ namespace Myshipping.Application
id = model.Id; id = model.Id;
//生成待比对详情 //生成待比对详情
TaskBCInfoDto bcSrcDto = model.Adapt<TaskBCInfoDto>(); TaskBCInfoDto bcSrcDto = new TaskBCInfoDto();
TaskBCInfoDto bcTargetDto = dto.DataObj.Adapt<TaskBCInfoDto>();
try
{
bcSrcDto = model.Adapt<TaskBCInfoDto>();
}
catch (Exception ex)
{
_logger.LogInformation($"slotId={model.Id} 映射数据库对象请求对应异常,原因:{ex.Message}");
}
TaskBCInfoDto bcTargetDto = new TaskBCInfoDto();
try
{
bcTargetDto = dto.DataObj.Adapt<TaskBCInfoDto>();
}
catch (Exception ex)
{
_logger.LogInformation($"slotId={model.Id} 映射推送的舱位请求对应异常,原因:{ex.Message}");
}
_logger.LogInformation($"slotId={model.Id} 开始处理重要提醒"); _logger.LogInformation($"slotId={model.Id} 开始处理重要提醒");
//执行差异重要提醒 //执行差异重要提醒

Loading…
Cancel
Save