Browse Source

角色编码

storemanagement
zhaoy 11 months ago
parent
commit
50d26965d0
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      BPA.SAAS.Manage.Application/Org/Services/RoleService.cs

+ 3
- 5
BPA.SAAS.Manage.Application/Org/Services/RoleService.cs View File

@@ -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>


Loading…
Cancel
Save