|
|
@ -18,6 +18,7 @@ using Microsoft.Extensions.Logging;
|
|
|
|
using Myshipping.Application.EDI;
|
|
|
|
using Myshipping.Application.EDI;
|
|
|
|
using Myshipping.Application.Entity;
|
|
|
|
using Myshipping.Application.Entity;
|
|
|
|
using Myshipping.Application.Helper;
|
|
|
|
using Myshipping.Application.Helper;
|
|
|
|
|
|
|
|
using Myshipping.Application.Service.BookingOrder;
|
|
|
|
using Myshipping.Application.Service.BookingSlot.Dto;
|
|
|
|
using Myshipping.Application.Service.BookingSlot.Dto;
|
|
|
|
using Myshipping.Core;
|
|
|
|
using Myshipping.Core;
|
|
|
|
using Myshipping.Core.Const;
|
|
|
|
using Myshipping.Core.Const;
|
|
|
@ -122,6 +123,8 @@ namespace Myshipping.Application
|
|
|
|
private readonly INamedServiceProvider<IBookingOrderService> _namedBookingOrderServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<IBookingOrderService> _namedBookingOrderServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<ITaskManageRollingNominationService> _namedRollingNominationServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<ITaskManageRollingNominationService> _namedRollingNominationServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<ITaskManageBCService> _namedTaskManageBCServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<ITaskManageBCService> _namedTaskManageBCServiceProvider;
|
|
|
|
|
|
|
|
private readonly INamedServiceProvider<IBookingMSKAPIService> _namedBookingMSKAPIServiceProvider;
|
|
|
|
|
|
|
|
|
|
|
|
private readonly IBookingValueAddedService _bookingValueAddedService;
|
|
|
|
private readonly IBookingValueAddedService _bookingValueAddedService;
|
|
|
|
|
|
|
|
|
|
|
|
const string CONST_WEB_ACCOUNT_TYPE = "CmaWeb";
|
|
|
|
const string CONST_WEB_ACCOUNT_TYPE = "CmaWeb";
|
|
|
@ -178,6 +181,7 @@ namespace Myshipping.Application
|
|
|
|
INamedServiceProvider<ITaskManageRollingNominationService> namedRollingNominationServiceProvider,
|
|
|
|
INamedServiceProvider<ITaskManageRollingNominationService> namedRollingNominationServiceProvider,
|
|
|
|
INamedServiceProvider<ITaskManageBCService> namedTaskManageBCServiceProvider,
|
|
|
|
INamedServiceProvider<ITaskManageBCService> namedTaskManageBCServiceProvider,
|
|
|
|
IBookingValueAddedService bookingValueAddedService,
|
|
|
|
IBookingValueAddedService bookingValueAddedService,
|
|
|
|
|
|
|
|
INamedServiceProvider<IBookingMSKAPIService> namedBookingMSKAPIServiceProvider,
|
|
|
|
ILogger<BookingOrderService> logger)
|
|
|
|
ILogger<BookingOrderService> logger)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_taskBaseInfoRepository = taskBaseInfoRepository;
|
|
|
|
_taskBaseInfoRepository = taskBaseInfoRepository;
|
|
|
@ -229,6 +233,8 @@ namespace Myshipping.Application
|
|
|
|
_taskDraftInfoRepository = taskDraftInfoRepository;
|
|
|
|
_taskDraftInfoRepository = taskDraftInfoRepository;
|
|
|
|
_taskPODDischargeGateoutFullInfoRepository = taskPODDischargeGateoutFullInfoRepository;
|
|
|
|
_taskPODDischargeGateoutFullInfoRepository = taskPODDischargeGateoutFullInfoRepository;
|
|
|
|
_taskPODDischargeGateoutFullDetailInfoRepository = taskPODDischargeGateoutFullDetailInfoRepository;
|
|
|
|
_taskPODDischargeGateoutFullDetailInfoRepository = taskPODDischargeGateoutFullDetailInfoRepository;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_namedBookingMSKAPIServiceProvider = namedBookingMSKAPIServiceProvider;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#region 创建任务
|
|
|
|
#region 创建任务
|
|
|
@ -773,6 +779,25 @@ namespace Myshipping.Application
|
|
|
|
2、推送钉钉消息@操作人 通知收到变更
|
|
|
|
2、推送钉钉消息@操作人 通知收到变更
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (info.Main.TaskType == TaskBaseTypeEnum.BC)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var service = _namedBookingMSKAPIServiceProvider
|
|
|
|
|
|
|
|
.GetService<ITransient>(nameof(BookingMSKAPIService));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var synRlt = await service.SyncBCInfo(info.Main.BCInfo.MBLNo, taskInfo.TenantId.Value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"入库完BC,自动推送状态到API订舱列表 mblno={info.Main.BCInfo.MBLNo} synRlt={JSON.Serialize(synRlt)}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (info.Main.TaskType == TaskBaseTypeEnum.CANCELLATION)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var service = _namedBookingMSKAPIServiceProvider
|
|
|
|
|
|
|
|
.GetService<ITransient>(nameof(BookingMSKAPIService));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var synRlt = await service.SyncBCInfo(info.Main.BCInfo.MBLNo, taskInfo.TenantId.Value,"Cancellation");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"入库完BC,自动推送状态到API订舱列表 mblno={info.Main.BCInfo.MBLNo} synRlt={JSON.Serialize(synRlt)}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (info.Main.TaskType == TaskBaseTypeEnum.BC_MODIFY)
|
|
|
|
if (info.Main.TaskType == TaskBaseTypeEnum.BC_MODIFY)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var name = _namedTaskManageBCServiceProvider
|
|
|
|
var name = _namedTaskManageBCServiceProvider
|
|
|
|