|
|
@@ -64,12 +64,10 @@ namespace BPA.SAAS.Manage.Application.Org.Services |
|
|
|
throw Oops.Oh("已存在相同编码的角色"); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
input.Code = GetNumber2(); |
|
|
|
} |
|
|
|
|
|
|
|
var role = input.Adapt<BPA_Roles>(); |
|
|
|
// role.DataScopeType = DataScopeType.ALL; |
|
|
|
input.Code = GetNumber2(); |
|
|
|
// role.DataScopeType = DataScopeType.ALL; |
|
|
|
return await _db.Insertable(role).CallEntityMethod(t => t.Create()).ExecuteCommandAsync() > 0; |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|