发送方别名

optimize
wanghaomei 2 years ago
parent e5d6d4068d
commit cd517ec6fa

@ -15508,6 +15508,11 @@
发送类型 发送类型
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Core.DjyEdiSettingInput.ALIASSENDCODE">
<summary>
发送方别名
</summary>
</member>
<member name="T:Myshipping.Core.AddDjyEdiSettingInput"> <member name="T:Myshipping.Core.AddDjyEdiSettingInput">
<summary> <summary>
EDI参数设置新增输入参数 EDI参数设置新增输入参数

@ -97,7 +97,7 @@ namespace Myshipping.Core.Service
await _rep.InsertAsync(entity); await _rep.InsertAsync(entity);
//其他同船司、同发送类型的都禁用 //其他同船司、同发送类型的都禁用
var otherList = _rep.Where(x => x.TenantId == input.TenantId && x.CARRIERID == input.CARRIERID && x.Id != entity.Id).ToList(); var otherList = _rep.Where(x => x.TenantId == input.TenantId && x.CARRIERID == input.CARRIERID && x.SendType == input.SendType && x.Id != entity.Id).ToList();
foreach (var item in otherList) foreach (var item in otherList)
{ {
item.EnableFlag = false; item.EnableFlag = false;
@ -181,7 +181,7 @@ namespace Myshipping.Core.Service
//其他同船司、同发送类型的都禁用 //其他同船司、同发送类型的都禁用
var otherList = _rep.Where(x => x.TenantId == entity.TenantId && x.CARRIERID == entity.CARRIERID && x.Id != entity.Id).ToList(); var otherList = _rep.Where(x => x.TenantId == entity.TenantId && x.CARRIERID == entity.CARRIERID && x.SendType == entity.SendType && x.Id != entity.Id).ToList();
foreach (var item in otherList) foreach (var item in otherList)
{ {
item.EnableFlag = false; item.EnableFlag = false;

@ -143,6 +143,10 @@ namespace Myshipping.Core
/// </summary> /// </summary>
public string SendType { get; set; } = string.Empty; public string SendType { get; set; } = string.Empty;
/// <summary>
/// 发送方别名
/// </summary>
public string ALIASSENDCODE { get; set; }
} }
/// <summary> /// <summary>

Loading…
Cancel
Save