diff --git a/ds-wms-service/DS.WMS.Core/Code/Method/CodeFormSetService.cs b/ds-wms-service/DS.WMS.Core/Code/Method/CodeFormSetService.cs index b8641bcb..eebec377 100644 --- a/ds-wms-service/DS.WMS.Core/Code/Method/CodeFormSetService.cs +++ b/ds-wms-service/DS.WMS.Core/Code/Method/CodeFormSetService.cs @@ -72,10 +72,10 @@ public class CodeFormSetService : IFormSetService var tenantDb = saasService.GetBizDbScopeById(user.TenantId); #region 添加系统参数 是否租户共享信息 var query = tenantDb.Queryable(); - //var config = db.Queryable().Where(x => x.Status == StatusEnum.Enable && x.Code == "IsTenantShareInfo").First(); + var config = db.Queryable().Where(x => x.Status == StatusEnum.Enable && x.Code == "IsTenantShareInfo").First(); - //if (config.IsNotNull() && config.Value == "TRUE") - // query.ClearFilter(); + if (config.IsNotNull() && config.Value == "TRUE") + query.ClearFilter(); #endregion if (query .Where(x => x.PermissionId == req.PermissionId && x.FormNo == req.FormNo && x.TaskStatus == req.TaskStatus && x.Id != req.Id).Any()) @@ -246,10 +246,10 @@ public class CodeFormSetService : IFormSetService var tenantDb = saasService.GetBizDbScopeById(user.TenantId); #region 添加系统参数 是否租户共享信息 var query = tenantDb.Queryable(); - //var config = db.Queryable().Where(x => x.Status == StatusEnum.Enable && x.Code == "IsTenantShareInfo").First(); + var config = db.Queryable().Where(x => x.Status == StatusEnum.Enable && x.Code == "IsTenantShareInfo").First(); - //if (config.IsNotNull() && config.Value == "TRUE") - // query.ClearFilter(); + if (config.IsNotNull() && config.Value == "TRUE") + query.ClearFilter(); #endregion var info = await query.Where(x => x.Id == long.Parse(id)).FirstAsync();