数据权限修改

dev
cjy 2 months ago
parent 786ed4fc90
commit 1d38ef6489

@ -137,7 +137,7 @@ namespace DS.WMS.Core.Code.Method
return await Task.FromResult(DataResult.Failed("权限复制人员不能为空!"));
}
if (db.Queryable<SysUser>().Where(x=> !req.CopyUserIds.Contains(x.Id)).Any()) {
if (db.Queryable<SysUser>().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,

Loading…
Cancel
Save