|
|
@ -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;
|
|
|
|