jianghaiqing 2 years ago
commit a16b62f661

@ -41,6 +41,10 @@ namespace Myshipping.Application.Entity
/// </summary> /// </summary>
public string VOYNO { get; set; } public string VOYNO { get; set; }
/// <summary> /// <summary>
/// 船公司ID
/// </summary>
public string CARRIERID { get; set; }
/// <summary>
/// 船公司EDI /// 船公司EDI
/// </summary> /// </summary>
public string CARRIER { get; set; } public string CARRIER { get; set; }

@ -109,6 +109,9 @@ namespace Myshipping.Application
entity.State = "已录入"; entity.State = "已录入";
if (input.Id == 0) if (input.Id == 0)
{ {
if (!string.IsNullOrEmpty(entity.CARRIERID)) {
entity.CARRIER = _cache.GetAllCodeCarrier().Result.Where(x => x.Code == entity.CARRIERID).Select(x => x.EdiCode).FirstOrDefault();
}
await _seaeedi.InsertAsync(entity); await _seaeedi.InsertAsync(entity);
if (input.EdiCtn != null) if (input.EdiCtn != null)
@ -129,7 +132,10 @@ namespace Myshipping.Application
} }
else else
{ {
if (!string.IsNullOrEmpty(entity.CARRIERID))
{
entity.CARRIER = _cache.GetAllCodeCarrier().Result.Where(x => x.Code == entity.CARRIERID).Select(x => x.EdiCode).FirstOrDefault();
}
await _seaeedi.AsUpdateable(entity).IgnoreColumns(it => new await _seaeedi.AsUpdateable(entity).IgnoreColumns(it => new
{ {
it.MBLNO, it.MBLNO,

@ -38,6 +38,10 @@ namespace Myshipping.Application.Service.BookingOrderSeaeEdi.Dto
/// </summary> /// </summary>
public string VOYNO { get; set; } public string VOYNO { get; set; }
/// <summary> /// <summary>
/// 船公司ID
/// </summary>
public string CARRIERID { get; set; }
/// <summary>
/// 船公司EDI /// 船公司EDI
/// </summary> /// </summary>
public string CARRIER { get; set; } public string CARRIER { get; set; }

@ -692,6 +692,11 @@
场站映射 场站映射
</summary> </summary>
</member> </member>
<member name="F:Myshipping.Core.CommonConst.CACHE_KEY_COMMON_DB_MAPPING_FORWARDER">
<summary>
船代映射
</summary>
</member>
<member name="F:Myshipping.Core.CommonConst.CACHE_KEY_COMMON_DB_MAPPING_PORTLOAD"> <member name="F:Myshipping.Core.CommonConst.CACHE_KEY_COMMON_DB_MAPPING_PORTLOAD">
<summary> <summary>
起始港映射 起始港映射
@ -6351,6 +6356,12 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Myshipping.Core.Service.ISysCacheService.GetAllMappingForwarder">
<summary>
获取公共库 船代映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodeCarrier(System.Collections.Generic.List{Myshipping.Core.Entity.CodeCarrier})"> <member name="M:Myshipping.Core.Service.ISysCacheService.SetAllCodeCarrier(System.Collections.Generic.List{Myshipping.Core.Entity.CodeCarrier})">
<summary> <summary>
设置公共库 船公司 设置公共库 船公司
@ -6441,6 +6452,12 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllMappingForwarder(System.Collections.Generic.List{Myshipping.Core.Entity.MappingForwarder})">
<summary>
设置公共库 船代映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.ISysCacheService.SetAllMappingPortLoad(System.Collections.Generic.List{Myshipping.Core.Entity.MappingPortLoad})"> <member name="M:Myshipping.Core.Service.ISysCacheService.SetAllMappingPortLoad(System.Collections.Generic.List{Myshipping.Core.Entity.MappingPortLoad})">
<summary> <summary>
设置公共库 起始港映射 设置公共库 起始港映射
@ -6865,6 +6882,12 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Myshipping.Core.Service.SysCacheService.GetAllMappingForwarder">
<summary>
获取公共库 船代映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodeCarrier(System.Collections.Generic.List{Myshipping.Core.Entity.CodeCarrier})"> <member name="M:Myshipping.Core.Service.SysCacheService.SetAllCodeCarrier(System.Collections.Generic.List{Myshipping.Core.Entity.CodeCarrier})">
<summary> <summary>
设置公共库 船公司 设置公共库 船公司
@ -6973,6 +6996,12 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllMappingForwarder(System.Collections.Generic.List{Myshipping.Core.Entity.MappingForwarder})">
<summary>
设置公共库 船代映射
</summary>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.SysCacheService.SetAllMappingPortLoad(System.Collections.Generic.List{Myshipping.Core.Entity.MappingPortLoad})"> <member name="M:Myshipping.Core.Service.SysCacheService.SetAllMappingPortLoad(System.Collections.Generic.List{Myshipping.Core.Entity.MappingPortLoad})">
<summary> <summary>
设置公共库 起始港映射 设置公共库 起始港映射
@ -7767,6 +7796,16 @@
新增船代信息 新增船代信息
</summary> </summary>
</member> </member>
<member name="M:Myshipping.Core.Service.CommonDBService.MappingForwarderList(Myshipping.Core.Service.MappingQueryDto)">
<summary>
获取船代映射
</summary>
</member>
<member name="M:Myshipping.Core.Service.CommonDBService.AddOrUpdateMappingForwarder(Myshipping.Core.Service.CommonDB.Dto.MappingForwarderDto)">
<summary>
新增编辑船代映射信息
</summary>
</member>
<member name="M:Myshipping.Core.Service.CommonDBService.YardList(Myshipping.Core.Service.NameQueryDto)"> <member name="M:Myshipping.Core.Service.CommonDBService.YardList(Myshipping.Core.Service.NameQueryDto)">
<summary> <summary>
获取场站列表信息 获取场站列表信息
@ -8138,6 +8177,31 @@
排序 排序
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Core.Service.CommonDB.Dto.MappingForwarderDto.Code">
<summary>
代码
</summary>
</member>
<member name="P:Myshipping.Core.Service.CommonDB.Dto.MappingForwarderDto.Module">
<summary>
模块
</summary>
</member>
<member name="P:Myshipping.Core.Service.CommonDB.Dto.MappingForwarderDto.MapCode">
<summary>
映射code
</summary>
</member>
<member name="P:Myshipping.Core.Service.CommonDB.Dto.MappingForwarderDto.Remark">
<summary>
备注
</summary>
</member>
<member name="P:Myshipping.Core.Service.CommonDB.Dto.MappingForwarderDto.Sort">
<summary>
排序
</summary>
</member>
<member name="P:Myshipping.Core.Service.CommonDB.Dto.CodeFrtDto.Code"> <member name="P:Myshipping.Core.Service.CommonDB.Dto.CodeFrtDto.Code">
<summary> <summary>
代码 代码

Loading…
Cancel
Save