|
|
|
@ -71,7 +71,9 @@ namespace DS.WMS.Core.Map.Method
|
|
|
|
|
if (req.Id == 0)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (tenantDb.Queryable<MappingService>().Where(x => x.LinkId == req.LinkId && x.Module == req.Module).Any())
|
|
|
|
|
if (tenantDb.Queryable<MappingService>().Where(x => x.LinkId == req.LinkId && x.Module == req.Module)
|
|
|
|
|
.WhereIF(req.CarrierId > 0, x => x.CarrierId != null && x.CarrierId.Value == req.CarrierId)
|
|
|
|
|
.WhereIF(req.CarrierId == 0, x => x.CarrierId == null || x.CarrierId.Value == 0).Any())
|
|
|
|
|
{
|
|
|
|
|
return DataResult.Failed("运输条款映射信息已存在!", MultiLanguageConst.MappingServiceExist);
|
|
|
|
|
}
|
|
|
|
|