wet 2 years ago
commit 063ba1c428

@ -14,7 +14,7 @@ namespace Myshipping.Application.Entity
/// <summary> /// <summary>
/// 订舱ID /// 订舱ID
/// </summary> /// </summary>
[Description("车队ID")] [Description("订舱ID")]
public Nullable<long> BookingId { get; set; } public Nullable<long> BookingId { get; set; }
/// <summary> /// <summary>
/// 车队ID /// 车队ID
@ -27,9 +27,9 @@ namespace Myshipping.Application.Entity
[Description("车队代码")] [Description("车队代码")]
public string TruckCode { get; set; } public string TruckCode { get; set; }
/// <summary> /// <summary>
/// 车队代码 /// 车队名称
/// </summary> /// </summary>
[Description("车队代码")] [Description("车队名称")]
public string TruckName { get; set; } public string TruckName { get; set; }
/// <summary> /// <summary>
/// TO /// TO

@ -99,7 +99,7 @@ namespace Myshipping.Application
{ {
_bookingTruckRepository.Insert(entity); _bookingTruckRepository.Insert(entity);
if (entityCtnList.Count > 0) if (entityCtnList != null && entityCtnList.Count > 0)
{ {
entityCtnList.ForEach(async ctn => entityCtnList.ForEach(async ctn =>
{ {
@ -124,7 +124,7 @@ namespace Myshipping.Application
it.TruckCode, it.TruckCode,
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
if (entityCtnList.Count > 0) if (entityCtnList != null && entityCtnList.Count > 0)
{ {
entityCtnList.ForEach(async ctn => entityCtnList.ForEach(async ctn =>
{ {

Loading…
Cancel
Save