修改cargoo

dev
jianghaiqing 2 months ago
parent bf5d0f5b4f
commit 8c924f7e32

@ -6,6 +6,7 @@ using DS.Module.DjyRulesEngine;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
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.EDI;
using DS.WMS.Core.Op.Interface;
@ -28,14 +29,17 @@ public class SeaExportController : ApiController
{
private readonly ISeaExportService _invokeService;
private readonly ISeaExportCommonService _commonService;
private readonly ICargooService _cargooService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public SeaExportController(ISeaExportService invokeService, ISeaExportCommonService commonService)
public SeaExportController(ISeaExportService invokeService, ISeaExportCommonService commonService, ICargooService cargooService)
{
_invokeService = invokeService;
_commonService = commonService;
_cargooService = cargooService;
}
/// <summary>
@ -523,4 +527,22 @@ public class SeaExportController : ApiController
return await _invokeService.GetVgmSendChannel(id);
}
#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;
}
}
Loading…
Cancel
Save