提交 57deedca 编写于 作者: F fengyw

修改

上级 e7072b50
......@@ -47,11 +47,11 @@ public class AdminSysMenuRoleBiz {
if (req.getRoleId() == null) {
return Result.error("角色ID不能为空");
}
if (CollectionUtil.isNotEmpty(req.getMenuId())) {
if (CollectionUtil.isNotEmpty(req.getMenuIdList())) {
// 先删除该角色下所有的菜单
dao.deleteByRoleId(req.getRoleId());
// 再保存新的菜单
for (Long menuId : req.getMenuId()) {
for (Long menuId : req.getMenuIdList()) {
SysMenuRole entity = new SysMenuRole();
entity.setMenuId(menuId);
entity.setRoleId(req.getRoleId());
......
......@@ -23,5 +23,5 @@ public class AdminSysMenuRoleSaveReq implements Serializable {
/**
* 菜单ID集合
*/
private List<Long> menuId;
private List<Long> menuIdList;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册