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/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
index c19cf33d..973aa57b 100644
--- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
+++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
@@ -5078,8 +5078,6 @@ namespace Myshipping.Application
}
}
-
-
Dictionary dic1 = new Dictionary();
foreach (PropertyDescriptor descriptor in TypeDescriptor.GetProperties(ctn))
{
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 =>
{
diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml
index 6c96f390..d15e6c19 100644
--- a/Myshipping.Core/Myshipping.Core.xml
+++ b/Myshipping.Core/Myshipping.Core.xml
@@ -11821,7 +11821,7 @@
-
+
下拉列表
diff --git a/Myshipping.Core/Service/CommonDB/CommonDBService.cs b/Myshipping.Core/Service/CommonDB/CommonDBService.cs
index c20bd316..f8660a39 100644
--- a/Myshipping.Core/Service/CommonDB/CommonDBService.cs
+++ b/Myshipping.Core/Service/CommonDB/CommonDBService.cs
@@ -1515,6 +1515,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie
///
/// 查询条件
///
+ [HttpGet("/commondb/CodeCountryList")]
public async Task CodeCountryList([FromQuery] NameQueryDto input)
{
List list = await _sysCacheService.GetAllCodeCountry();
diff --git a/Myshipping.Core/Service/DjyVesselInfo/DjyVesselInfoService.cs b/Myshipping.Core/Service/DjyVesselInfo/DjyVesselInfoService.cs
index 06118c2d..1f277f4c 100644
--- a/Myshipping.Core/Service/DjyVesselInfo/DjyVesselInfoService.cs
+++ b/Myshipping.Core/Service/DjyVesselInfo/DjyVesselInfoService.cs
@@ -109,12 +109,13 @@ namespace Myshipping.Core.Service
///
///
[HttpGet("/DjyVesselInfoService/GetList")]
- public async Task GetList([FromQuery] string CarrierID, DateTime? ETD = null, string KeyWord = "")
+ public async Task GetList([FromQuery] string CarrierID, DateTime? ETD = null, string PortDischargeId = null,string KeyWord = "")
{
//获取船名
List list = await _sysCacheService.GetAllCodeVessel();
var tlist = await _rep.AsQueryable().Filter(null, true).WhereIF(!string.IsNullOrWhiteSpace(KeyWord), x => x.Vessel.StartsWith(KeyWord.ToUpper())).
+ WhereIF(!string.IsNullOrEmpty(PortDischargeId),x=>x.PortDischargeId==PortDischargeId).
WhereIF(ETD != null, x => Convert.ToDateTime(x.ETD).ToString("yyyy-MM-dd") == Convert.ToDateTime(ETD).ToString("yyyy-MM-dd")).//船期关联船名
WhereIF(ETD == null, x => x.ETD > DateTime.Now.AddDays(-7)).//领导需求当前日期7天之前
WhereIF(!string.IsNullOrEmpty(CarrierID),x=>x.CARRIERID==CarrierID|| x.CARRIERID==null|| x.CARRIERID == "").
@@ -126,6 +127,8 @@ namespace Myshipping.Core.Service
Vessel = x.Vessel,
ETD = x.ETD == null ? "" : Convert.ToDateTime(x.ETD).ToString("yyyy-MM-dd"),
ATD = x.ATD == null ? "" : Convert.ToDateTime(x.ATD).ToString("yyyy-MM-dd"),
+ PortDischargeId=x.PortDischargeId,
+ PortDischarge=x.PortDischarge
}).Take(20).
ToListAsync();
@@ -147,6 +150,8 @@ namespace Myshipping.Core.Service
Vessel = x.Name,
ETD = "",
ATD = "",
+ PortDischargeId = "",
+ PortDischarge = ""
}).Take(20).ToList();
foreach (var item in ves)
{