INSERT INTO AdminRuleOther ( adminId,subAdminId,roleType ) Values ( #{adminId},#{subAdminId},#{roleType}) INSERT INTO adminruleother ( adminId,subAdminId,roleType) Values (#{item.adminId}, #{item.subAdminId}, #{item.roleType}) delete from adminruleother where adminId=#{adminId} and roleType =#{roleType}