|
|
@ -56,7 +56,7 @@ namespace Myshipping.Application
|
|
|
|
private readonly INamedServiceProvider<IBookingOrderService> _namedBookingOrderServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<IBookingOrderService> _namedBookingOrderServiceProvider;
|
|
|
|
private readonly SqlSugarRepository<BookingSlotBase> _bookingSlotBaseRepository;
|
|
|
|
private readonly SqlSugarRepository<BookingSlotBase> _bookingSlotBaseRepository;
|
|
|
|
private readonly INamedServiceProvider<ITaskCautionNoticeService> _namedTaskCautionNoticeServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<ITaskCautionNoticeService> _namedTaskCautionNoticeServiceProvider;
|
|
|
|
|
|
|
|
private readonly IDjyTenantParamService _djyTenantParamService;
|
|
|
|
|
|
|
|
|
|
|
|
public TaskManageCutDateChangeService(SqlSugarRepository<TaskCutDateChangeInfo> taskCutDateChangeInfoRepository,
|
|
|
|
public TaskManageCutDateChangeService(SqlSugarRepository<TaskCutDateChangeInfo> taskCutDateChangeInfoRepository,
|
|
|
|
SqlSugarRepository<TaskCutDateChangeDetailInfo> taskCutDateChangeDetailInfoRepository,
|
|
|
|
SqlSugarRepository<TaskCutDateChangeDetailInfo> taskCutDateChangeDetailInfoRepository,
|
|
|
@ -70,7 +70,7 @@ namespace Myshipping.Application
|
|
|
|
INamedServiceProvider<IBookingOrderService> namedBookingOrderServiceProvider,
|
|
|
|
INamedServiceProvider<IBookingOrderService> namedBookingOrderServiceProvider,
|
|
|
|
INamedServiceProvider<ITaskCautionNoticeService> namedTaskCautionNoticeServiceProvider,
|
|
|
|
INamedServiceProvider<ITaskCautionNoticeService> namedTaskCautionNoticeServiceProvider,
|
|
|
|
SqlSugarRepository<BookingSlotBase> bookingSlotBaseRepository,
|
|
|
|
SqlSugarRepository<BookingSlotBase> bookingSlotBaseRepository,
|
|
|
|
SqlSugarRepository<BookingOrder> bookingOrderRepository)
|
|
|
|
SqlSugarRepository<BookingOrder> bookingOrderRepository, IDjyTenantParamService djyTenantParamService)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_taskCutDateChangeInfoRepository = taskCutDateChangeInfoRepository;
|
|
|
|
_taskCutDateChangeInfoRepository = taskCutDateChangeInfoRepository;
|
|
|
|
_taskCutDateChangeDetailInfoRepository = taskCutDateChangeDetailInfoRepository;
|
|
|
|
_taskCutDateChangeDetailInfoRepository = taskCutDateChangeDetailInfoRepository;
|
|
|
@ -83,6 +83,7 @@ namespace Myshipping.Application
|
|
|
|
_namedBookingOrderServiceProvider = namedBookingOrderServiceProvider;
|
|
|
|
_namedBookingOrderServiceProvider = namedBookingOrderServiceProvider;
|
|
|
|
_bookingSlotBaseRepository = bookingSlotBaseRepository;
|
|
|
|
_bookingSlotBaseRepository = bookingSlotBaseRepository;
|
|
|
|
_namedTaskCautionNoticeServiceProvider = namedTaskCautionNoticeServiceProvider;
|
|
|
|
_namedTaskCautionNoticeServiceProvider = namedTaskCautionNoticeServiceProvider;
|
|
|
|
|
|
|
|
_djyTenantParamService = djyTenantParamService;
|
|
|
|
|
|
|
|
|
|
|
|
_logger = logger;
|
|
|
|
_logger = logger;
|
|
|
|
_cache = cache;
|
|
|
|
_cache = cache;
|
|
|
@ -645,6 +646,14 @@ namespace Myshipping.Application
|
|
|
|
Attaches = new List<AttachesInfo>()
|
|
|
|
Attaches = new List<AttachesInfo>()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//如果配置了租户参数(AUTO_TRANS_EMAIL_OP_CCTO-自动转发是否默认抄送操作=ENABLE)发送邮件时自动抄送操作
|
|
|
|
|
|
|
|
DjyTenantParamValueOutput paramConfig = _djyTenantParamService.GetParaCodeWithValue(new[] { "AUTO_TRANS_EMAIL_OP_CCTO" }).GetAwaiter().GetResult().FirstOrDefault();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (paramConfig != null && paramConfig.ParaValue.Equals("ENABLE", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
emailApiUserDefinedDto.CCTo = opEmail;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"生成请求邮件参数,结果:{JSON.Serialize(emailApiUserDefinedDto)}");
|
|
|
|
_logger.LogInformation($"生成请求邮件参数,结果:{JSON.Serialize(emailApiUserDefinedDto)}");
|
|
|
|
|
|
|
|
|
|
|
|
//推送邮件
|
|
|
|
//推送邮件
|
|
|
|