jianghaiqing 5 months ago
commit 3430894491

@ -355,7 +355,7 @@ namespace Myshipping.Application.EDI
} }
var bookingNoArr = jdata.GetJArrayValue("bookingNo"); var bookingNoArr = jdata.GetJArrayValue("bookingNo");
extObj["BookingNO"] = bookingNoArr; extObj["CustNO"] = bookingNoArr;
custOrder.ExtendData = extObj.ToJsonString(); custOrder.ExtendData = extObj.ToJsonString();
await repCustOrder.AsUpdateable(custOrder).UpdateColumns(x => new { x.ExtendData }).ExecuteCommandAsync(); await repCustOrder.AsUpdateable(custOrder).UpdateColumns(x => new { x.ExtendData }).ExecuteCommandAsync();
Log.Information($"回写CC号 {custOrder.Id} {custOrder.BOOKINGNO}"); Log.Information($"回写CC号 {custOrder.Id} {custOrder.BOOKINGNO}");

@ -492,7 +492,7 @@ namespace Myshipping.Application.Event
//生成id并插入客户订舱数据 //生成id并插入客户订舱数据
custOrder.Id = YitIdHelper.NextId(); custOrder.Id = YitIdHelper.NextId();
custOrder.BOOKINGNO = item.GetStringValue("BookingNO"); custOrder.BOOKINGNO = item.GetStringValue("BookingNO");
custOrder.BSNO = item.GetStringValue("CustOrderId"); custOrder.BSNO = item.GetStringValue("custOrderId");
custOrder.ParentBookingNO = parentBookingNO; custOrder.ParentBookingNO = parentBookingNO;
JObject jobjExt = null; JObject jobjExt = null;
if (!string.IsNullOrEmpty(custOrder.ExtendData)) if (!string.IsNullOrEmpty(custOrder.ExtendData))
@ -505,6 +505,7 @@ namespace Myshipping.Application.Event
} }
jobjExt["CustNO"] = item.GetStringValue("CustNO"); jobjExt["CustNO"] = item.GetStringValue("CustNO");
custOrder.ExtendData = jobjExt.ToString();
await repoCutomerOrder.InsertAsync(custOrder); await repoCutomerOrder.InsertAsync(custOrder);
@ -522,8 +523,10 @@ namespace Myshipping.Application.Event
custOrder.BookingId = ord.Id; custOrder.BookingId = ord.Id;
await repoCutomerOrder.AsUpdateable(custOrder).UpdateColumns(x => new { x.BookingId }).ExecuteCommandAsync(); await repoCutomerOrder.AsUpdateable(custOrder).UpdateColumns(x => new { x.BookingId }).ExecuteCommandAsync();
ord.BSNO = item.GetStringValue("OrderId"); //订舱编号和客户端BSNO
await repoOrder.AsUpdateable(ord).UpdateColumns(x => new { x.BSNO }).ExecuteCommandAsync(); ord.BSNO = item.GetStringValue("orderId");
ord.CUSTNO = item.GetStringValue("custNO");
await repoOrder.AsUpdateable(ord).UpdateColumns(x => new { x.BSNO, x.CUSTNO }).ExecuteCommandAsync();
_logger.LogInformation($"生成了订舱台账数据 {ord.Id}"); _logger.LogInformation($"生成了订舱台账数据 {ord.Id}");

@ -1658,6 +1658,7 @@ namespace Myshipping.Application
} }
jobjExt["CustNO"] = bookNO; jobjExt["CustNO"] = bookNO;
model.ExtendData = jobjExt.ToString();
await _rep.InsertAsync(model); await _rep.InsertAsync(model);
@ -1679,6 +1680,10 @@ namespace Myshipping.Application
model.BookingId = ord.Id; model.BookingId = ord.Id;
await _rep.AsUpdateable(model).UpdateColumns(x => new { x.BookingId }).ExecuteCommandAsync(); await _rep.AsUpdateable(model).UpdateColumns(x => new { x.BookingId }).ExecuteCommandAsync();
//订舱编号
ord.CUSTNO = bookNO;
await _repOrder.AsUpdateable(ord).UpdateColumns(x => new { x.CUSTNO }).ExecuteCommandAsync();
respDtO.OrderId = ord.Id; respDtO.OrderId = ord.Id;
_logger.LogInformation($"生成了订舱台账数据 {ord.Id}"); _logger.LogInformation($"生成了订舱台账数据 {ord.Id}");
@ -2434,7 +2439,7 @@ namespace Myshipping.Application
else if (model.CARRIERID == "EMC") else if (model.CARRIERID == "EMC")
{ {
var custNOArr = extObj.GetJArrayValue("CustNO"); var custNOArr = extObj.GetJArrayValue("CustNO");
if (custNOArr.Count > 0) if (custNOArr != null && custNOArr.Count > 0)
{ {
var custNO = custNOArr.First().ToString(); var custNO = custNOArr.First().ToString();
_logger.LogInformation($"回写订舱编号:{custNO},系统编号:{model.BOOKINGNO}"); _logger.LogInformation($"回写订舱编号:{custNO},系统编号:{model.BOOKINGNO}");

@ -12889,7 +12889,7 @@ namespace Myshipping.Application
#region BC #region BC
/// <summary> /// <summary>
/// 接收BC信息更新订舱 /// 运营端接收订舱拒绝消息
/// </summary> /// </summary>
[AllowAnonymous] [AllowAnonymous]
[HttpPost("/BookingOrder/ReceiveBookingReject")] [HttpPost("/BookingOrder/ReceiveBookingReject")]
@ -12897,7 +12897,7 @@ namespace Myshipping.Application
public async Task<ReceiveBcInfoResultDto> ReceiveBookingReject(ReceiveBookingRejectInputDto input) public async Task<ReceiveBcInfoResultDto> ReceiveBookingReject(ReceiveBookingRejectInputDto input)
{ {
// 客户订舱:运营端发送订舱数据给客户端 // 客户订舱:运营端发送订舱数据给客户端
if (App.Configuration["RunType"] == CommonConst.RUN_TYPE_DJY) if (App.Configuration["RunType"] != CommonConst.RUN_TYPE_DJY)
{ {
return new ReceiveBcInfoResultDto(false, "非运营端,接收失败"); return new ReceiveBcInfoResultDto(false, "非运营端,接收失败");
} }

@ -4733,12 +4733,17 @@
</member> </member>
<member name="F:Myshipping.Core.BookingOrderSyncTypeEnum.BC"> <member name="F:Myshipping.Core.BookingOrderSyncTypeEnum.BC">
<summary> <summary>
同步BC+文件相关字段 用于同步BC及文件相关字段
</summary> </summary>
</member> </member>
<member name="F:Myshipping.Core.BookingOrderSyncTypeEnum.CC"> <member name="F:Myshipping.Core.BookingOrderSyncTypeEnum.CC">
<summary> <summary>
只同步CC号 只用于同步CC号
</summary>
</member>
<member name="F:Myshipping.Core.BookingOrderSyncTypeEnum.REJECT">
<summary>
只用于推送订舱拒绝消息
</summary> </summary>
</member> </member>
<member name="T:Myshipping.Core.CacheType"> <member name="T:Myshipping.Core.CacheType">

@ -56,7 +56,7 @@
}, },
"Cache": { "Cache": {
"CacheType": "RedisCache", // RedisCache "CacheType": "RedisCache", // RedisCache
"RedisConnectionString": "60.209.125.238:36379,password=,defaultDatabase=11" "RedisConnectionString": "127.0.0.1:6379,password=,defaultDatabase=11"
}, },
"SnowId": { "SnowId": {
"WorkerId": "1" // 0~63,1 "WorkerId": "1" // 0~63,1

Loading…
Cancel
Save