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,