修改舱位增加委托号,引入现舱后自动获取委托编号更新舱位

dev
jianghaiqing 1 month ago
parent c530c147d2
commit 498413f324

@ -442,5 +442,10 @@ namespace DS.WMS.Core.Op.Entity
[SqlSugar.SugarColumn(ColumnDescription = "状态名称", Length = 20, IsNullable = true)] [SqlSugar.SugarColumn(ColumnDescription = "状态名称", Length = 20, IsNullable = true)]
public string StatusName { get; set; } public string StatusName { get; set; }
/// <summary>
/// 委托编号
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "委托编号", Length = 20, IsNullable = true)]
public string CustomerNo { get; set; }
} }
} }

@ -3113,6 +3113,22 @@ namespace DS.WMS.Core.Op.Method
Logger.Log(NLog.LogLevel.Info, $"引入失败,更新海运出口失败,原因:{saveSeaExportRlt.Message}"); Logger.Log(NLog.LogLevel.Info, $"引入失败,更新海运出口失败,原因:{saveSeaExportRlt.Message}");
} }
//这里生成完订单后,需要将订单的委托号回填到舱位上
var order = tenantDb.Queryable<SeaExport>().Where(x => x.Id == model.bookingOrderId).First();
//这里把订单的委托号同步到舱位
if (order != null)
{
foreach (var slot in latestSlotList)
{
slot.CustomerNo = order.CustomerNo;
tenantDb.Updateable<BookingSlotBase>(slot).UpdateColumns(x => new
{
x.CustomerNo
}).ExecuteCommand();
}
}
// if (generateModel.CtnList == null) // if (generateModel.CtnList == null)
//{ //{

Loading…
Cancel
Save