|
|
@ -137,7 +137,7 @@ namespace DS.WMS.Core.Code.Method
|
|
|
|
return await Task.FromResult(DataResult.Failed("权限复制人员不能为空!"));
|
|
|
|
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("请检查复制人员信息!"));
|
|
|
|
return await Task.FromResult(DataResult.Failed("请检查复制人员信息!"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -165,6 +165,7 @@ namespace DS.WMS.Core.Code.Method
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UserId = userInfo.Id,
|
|
|
|
UserId = userInfo.Id,
|
|
|
|
UserName = userInfo.UserName,
|
|
|
|
UserName = userInfo.UserName,
|
|
|
|
|
|
|
|
TemplateName = rule.TemplateName,
|
|
|
|
VisibleTemplateId = rule.VisibleTemplateId,
|
|
|
|
VisibleTemplateId = rule.VisibleTemplateId,
|
|
|
|
VisibleRuleScope = rule.VisibleRuleScope,
|
|
|
|
VisibleRuleScope = rule.VisibleRuleScope,
|
|
|
|
VisibleRuleScopeName = rule.VisibleRuleScopeName,
|
|
|
|
VisibleRuleScopeName = rule.VisibleRuleScopeName,
|
|
|
@ -257,6 +258,7 @@ namespace DS.WMS.Core.Code.Method
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UserId = userInfo.Id,
|
|
|
|
UserId = userInfo.Id,
|
|
|
|
UserName = userInfo.UserName,
|
|
|
|
UserName = userInfo.UserName,
|
|
|
|
|
|
|
|
TemplateName = currentTemplate.TemplateName,
|
|
|
|
VisibleTemplateId = currentTemplate.Id,
|
|
|
|
VisibleTemplateId = currentTemplate.Id,
|
|
|
|
VisibleRuleScope = currentTemplate.RuleScope,
|
|
|
|
VisibleRuleScope = currentTemplate.RuleScope,
|
|
|
|
VisibleRuleScopeName = currentTemplate.RuleScopeName,
|
|
|
|
VisibleRuleScopeName = currentTemplate.RuleScopeName,
|
|
|
@ -363,6 +365,7 @@ namespace DS.WMS.Core.Code.Method
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UserId = userInfo.Id,
|
|
|
|
UserId = userInfo.Id,
|
|
|
|
UserName = userInfo.UserName,
|
|
|
|
UserName = userInfo.UserName,
|
|
|
|
|
|
|
|
TemplateName = currentTemplate.TemplateName,
|
|
|
|
OperateTemplateId = currentTemplate.Id,
|
|
|
|
OperateTemplateId = currentTemplate.Id,
|
|
|
|
OperateRuleScope = currentTemplate.RuleScope,
|
|
|
|
OperateRuleScope = currentTemplate.RuleScope,
|
|
|
|
OperateRuleScopeName = currentTemplate.RuleScopeName,
|
|
|
|
OperateRuleScopeName = currentTemplate.RuleScopeName,
|
|
|
|