diff --git a/Myshipping.Application/Entity/BookingTruck.cs b/Myshipping.Application/Entity/BookingTruck.cs index 85ea64bc..98d2adcd 100644 --- a/Myshipping.Application/Entity/BookingTruck.cs +++ b/Myshipping.Application/Entity/BookingTruck.cs @@ -14,7 +14,7 @@ namespace Myshipping.Application.Entity /// /// 订舱ID /// - [Description("车队ID")] + [Description("订舱ID")] public Nullable BookingId { get; set; } /// /// 车队ID @@ -27,9 +27,9 @@ namespace Myshipping.Application.Entity [Description("车队代码")] public string TruckCode { get; set; } /// - /// 车队代码 + /// 车队名称 /// - [Description("车队代码")] + [Description("车队名称")] public string TruckName { get; set; } /// /// TO diff --git a/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs b/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs index c688c07a..c02f7ee5 100644 --- a/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs +++ b/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs @@ -99,7 +99,7 @@ namespace Myshipping.Application { _bookingTruckRepository.Insert(entity); - if (entityCtnList.Count > 0) + if (entityCtnList != null && entityCtnList.Count > 0) { entityCtnList.ForEach(async ctn => { @@ -124,7 +124,7 @@ namespace Myshipping.Application it.TruckCode, }).ExecuteCommandAsync(); - if (entityCtnList.Count > 0) + if (entityCtnList != null && entityCtnList.Count > 0) { entityCtnList.ForEach(async ctn => {