insert into sys_user_sys_role(UserID, RoleID) values (#{userID},#{roleID}) insert into sys_role_sys_function_code(RoleID, FunctionCode) values (#{roleID},#{item.functionCode}) insert into sys_role_datarange(RoleDataRangeID, RoleID,FunctionCode,DataRangeID,CreateBy,CreateTime) values (uuid(),#{roleID},#{item.functionCode},#{item.dataRangeID},#{userID},sysdate()) delete from sys_user_sys_role where 1=1 and roleID in #{roleID} delete from sys_role_sys_function_code where 1=1 and roleID in #{roleID} delete from sys_role_datarange where 1=1 and roleID in #{roleID}