|
|
@ -6,6 +6,7 @@ using DS.Module.DjyRulesEngine;
|
|
|
|
using DS.WMS.Core.Info.Dtos;
|
|
|
|
using DS.WMS.Core.Info.Dtos;
|
|
|
|
using DS.WMS.Core.Info.Interface;
|
|
|
|
using DS.WMS.Core.Info.Interface;
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
|
|
|
|
using DS.WMS.Core.Op.Dtos.Cargoo;
|
|
|
|
using DS.WMS.Core.Op.Dtos.VGM;
|
|
|
|
using DS.WMS.Core.Op.Dtos.VGM;
|
|
|
|
using DS.WMS.Core.Op.EDI;
|
|
|
|
using DS.WMS.Core.Op.EDI;
|
|
|
|
using DS.WMS.Core.Op.Interface;
|
|
|
|
using DS.WMS.Core.Op.Interface;
|
|
|
@ -28,14 +29,17 @@ public class SeaExportController : ApiController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly ISeaExportService _invokeService;
|
|
|
|
private readonly ISeaExportService _invokeService;
|
|
|
|
private readonly ISeaExportCommonService _commonService;
|
|
|
|
private readonly ISeaExportCommonService _commonService;
|
|
|
|
|
|
|
|
private readonly ICargooService _cargooService;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 构造函数
|
|
|
|
/// 构造函数
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
public SeaExportController(ISeaExportService invokeService, ISeaExportCommonService commonService)
|
|
|
|
public SeaExportController(ISeaExportService invokeService, ISeaExportCommonService commonService, ICargooService cargooService)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_invokeService = invokeService;
|
|
|
|
_invokeService = invokeService;
|
|
|
|
_commonService = commonService;
|
|
|
|
_commonService = commonService;
|
|
|
|
|
|
|
|
_cargooService = cargooService;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -523,4 +527,22 @@ public class SeaExportController : ApiController
|
|
|
|
return await _invokeService.GetVgmSendChannel(id);
|
|
|
|
return await _invokeService.GetVgmSendChannel(id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 发送Cargoo
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="id">业务Id</param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
|
|
|
[Route("SendCargoo")]
|
|
|
|
|
|
|
|
public async Task<DataResult<CargooShipmentResultDto>> SendCargoo([FromQuery] long id)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var res = await _cargooService.SendCargoo(new Core.Op.Dtos.Cargoo.CargooShipmentReqDto {
|
|
|
|
|
|
|
|
bookingId = id,
|
|
|
|
|
|
|
|
cargooStatusEnum = CargooStatusEnum.Confirmed,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|