r.ID, r.NAME, r.ROLE_TYPE, r.ENNAME, r.REMARKS insert into SYS_ROLE_MENU (ROLE_ID, MENU_ID) VALUES (#{roleId}, #{menuId}) insert into SYS_USER_ROLE (USER_ID, ROLE_ID) VALUES (#{userId}, #{roleId}) delete SYS_ROLE_MENU where ROLE_ID = #{roleId} delete SYS_USER_ROLE where ROLE_ID = #{roleId} delete SYS_USER_ROLE where ROLE_ID = #{roleId} AND USER_ID = #{userId}