|
|
|
@ -11968,5 +11968,28 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
return new ReceiveBcInfoResultDto(true, $"接收成功,共更新{changeNum}条订舱记录");
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 手动推送BC相关字段
|
|
|
|
|
/// </summary>
|
|
|
|
|
[HttpPost("/BookingOrder/PushBcInfo")]
|
|
|
|
|
public async Task PushBcInfo([FromBody] JObject param)
|
|
|
|
|
{
|
|
|
|
|
if (param == null)
|
|
|
|
|
{
|
|
|
|
|
throw new Exception("参数Id为空");
|
|
|
|
|
}
|
|
|
|
|
var id = param.GetLongValue("id");
|
|
|
|
|
var order = await _rep.AsQueryable().Where(x => x.Id == id)
|
|
|
|
|
.FirstAsync();
|
|
|
|
|
if (order == null)
|
|
|
|
|
{
|
|
|
|
|
throw new Exception("未查询到此订舱记录");
|
|
|
|
|
}
|
|
|
|
|
// 客户订舱:运营端推送BC字段给客户端
|
|
|
|
|
if (App.Configuration["RunType"] == CommonConst.RUN_TYPE_DJY)
|
|
|
|
|
{
|
|
|
|
|
CustomerBookingSyncHelper.SendCustomerBookingSync((long)id, BookingOrderSyncTypeEnum.BC.ToString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|