Junjie
2024-10-16 a9b98ef2b0af7a4a830a2a4d3320d42e2779b152
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java
@@ -162,4 +162,14 @@
        return R.ok("分配成功");
    }
    @PreAuthorize("hasAuthority('system:role:list')")
    @GetMapping("/role/list/name/{ids}")
    public R listName(@PathVariable Long[] ids) {
        List<String> nameList = new ArrayList<>();
        for (Long id : ids) {
            nameList.add(roleService.getById(id).getName());
        }
        return R.ok().add(nameList);
    }
}