From 2bba6987fe28ed713647b59c6098beaed61f2d38 Mon Sep 17 00:00:00 2001 From: Tang Date: Wed, 15 Nov 2023 16:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E5=AD=97=E5=85=B8=E6=9D=83=E9=99=90=E6=97=A0=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/tang/system/service/impl/SysRoleServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tang-system/src/main/java/com/tang/system/service/impl/SysRoleServiceImpl.java b/tang-system/src/main/java/com/tang/system/service/impl/SysRoleServiceImpl.java index ae36c7f6..6303114d 100644 --- a/tang-system/src/main/java/com/tang/system/service/impl/SysRoleServiceImpl.java +++ b/tang-system/src/main/java/com/tang/system/service/impl/SysRoleServiceImpl.java @@ -130,10 +130,14 @@ public int insertRole(SysRole role) { public int updateRoleByRoleId(SysRole role) { var roleId = role.getRoleId(); var menuIds = role.getMenuIds(); + var dictIds = role.getDictIds(); menuMapper.deleteRoleMenuByRoleId(roleId); if (!menuIds.isEmpty()) { menuMapper.insertRoleMenu(roleId, menuIds); } + if (!dictIds.isEmpty()) { + dictTypeMapper.insertRoleDict(role.getRoleId(), dictIds); + } return roleMapper.updateRoleByRoleId(role); }