From 1d38ef64899f77f2b658c759639933c98603d7ba Mon Sep 17 00:00:00 2001 From: cjy Date: Fri, 13 Sep 2024 15:04:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DS.WMS.Core/Code/Method/CodeDataRuleService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ds-wms-service/DS.WMS.Core/Code/Method/CodeDataRuleService.cs b/ds-wms-service/DS.WMS.Core/Code/Method/CodeDataRuleService.cs index e3aac2c2..67e1cae3 100644 --- a/ds-wms-service/DS.WMS.Core/Code/Method/CodeDataRuleService.cs +++ b/ds-wms-service/DS.WMS.Core/Code/Method/CodeDataRuleService.cs @@ -137,7 +137,7 @@ namespace DS.WMS.Core.Code.Method return await Task.FromResult(DataResult.Failed("权限复制人员不能为空!")); } - if (db.Queryable().Where(x=> !req.CopyUserIds.Contains(x.Id)).Any()) { + if (db.Queryable().Where(x=> req.CopyUserIds.Contains(x.Id)).Count() == 0) { return await Task.FromResult(DataResult.Failed("请检查复制人员信息!")); } @@ -165,6 +165,7 @@ namespace DS.WMS.Core.Code.Method { UserId = userInfo.Id, UserName = userInfo.UserName, + TemplateName = rule.TemplateName, VisibleTemplateId = rule.VisibleTemplateId, VisibleRuleScope = rule.VisibleRuleScope, VisibleRuleScopeName = rule.VisibleRuleScopeName, @@ -257,6 +258,7 @@ namespace DS.WMS.Core.Code.Method { UserId = userInfo.Id, UserName = userInfo.UserName, + TemplateName = currentTemplate.TemplateName, VisibleTemplateId = currentTemplate.Id, VisibleRuleScope = currentTemplate.RuleScope, VisibleRuleScopeName = currentTemplate.RuleScopeName, @@ -363,6 +365,7 @@ namespace DS.WMS.Core.Code.Method { UserId = userInfo.Id, UserName = userInfo.UserName, + TemplateName = currentTemplate.TemplateName, OperateTemplateId = currentTemplate.Id, OperateRuleScope = currentTemplate.RuleScope, OperateRuleScopeName = currentTemplate.RuleScopeName,