|
|
|
@ -75,7 +75,8 @@ namespace DS.WMS.Core.Map.Method
|
|
|
|
|
if (req.Id == 0)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (tenantDb.Queryable<MappingPackage>().Where(x => x.LinkId == req.LinkId && x.Module == req.Module).Any())
|
|
|
|
|
if (tenantDb.Queryable<MappingPackage>().Where(x => x.LinkId == req.LinkId && x.Module == req.Module)
|
|
|
|
|
.WhereIF(req.CarrierId > 0, x => x.CarrierId != null && x.CarrierId.Value == req.CarrierId).Any())
|
|
|
|
|
{
|
|
|
|
|
return DataResult.Failed("包装映射信息已存在!", MultiLanguageConst.MappingPackageExist);
|
|
|
|
|
}
|
|
|
|
|