t.menu_id, t.code, t.name, t.parent_code, t.icon, t.app_type, t.status, t.menu_root delete from ta_role_menu where role_id in ( select role_id from ta_user_role r where r.user_id = #{userId} ) insert into ta_role_menu (role_id, menu_id) values ( (select role_id from ta_user_role u where u.user_id = #{userId}), #{item.menuId} )