insert into sys_user values(null,#{username},#{email},#{password},#{phoneNum}) insert into sys_user_role values(#{id},#{roleId}) delete from sys_user_role where userId=#{id} delete from sys_user where id=#{id}