mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 新增角色使用内置管理员标识符问题
This commit is contained in:
		@@ -80,6 +80,7 @@ public class SysRoleController extends BaseController {
 | 
			
		||||
    @Log(title = "角色管理", businessType = BusinessType.INSERT)
 | 
			
		||||
    @PostMapping
 | 
			
		||||
    public R<Void> add(@Validated @RequestBody SysRole role) {
 | 
			
		||||
        roleService.checkRoleAllowed(role);
 | 
			
		||||
        if (!roleService.checkRoleNameUnique(role)) {
 | 
			
		||||
            return R.fail("新增角色'" + role.getRoleName() + "'失败,角色名称已存在");
 | 
			
		||||
        } else if (!roleService.checkRoleKeyUnique(role)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user