@ -187,6 +187,8 @@ public class SaasDbService : ISaasDbService
}
};
var templist = dbProvider.QueryFilter.GeFilterList;
Console.WriteLine("当前过滤器:"+ JsonConvert.SerializeObject(templist));
//全局过滤租户Id
dbProvider.QueryFilter.AddTableFilter<ITenantId>(m => m.TenantId ==long.Parse(user.TenantId));
//全局过滤机构Id
@ -91,7 +91,7 @@ namespace DS.WMS.Core.Info.Method
if (req.Id == 0)
{
if (TenantDb.Queryable<InfoClientParam>().Where(x => x.ParamId == req.ParamId && x.CustomerId == x.CustomerId).Any())
if (TenantDb.Queryable<InfoClientParam>().Where(x => x.ParamId == req.ParamId && x.CustomerId == req.CustomerId).Any())
return DataResult.Failed("往来单位参数已存在!", MultiLanguageConst.ClientParamExist);