From 35299b97e8b7d75b9b24b6b6d5463075fefa206e Mon Sep 17 00:00:00 2001 From: cjy Date: Mon, 28 Oct 2024 11:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DS.WMS.Core/Code/Method/CodeFormSetService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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();