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