select ID, IS_DELETED, CREATED_TIME, CREATED_BY, MODIFIED_BY, LAST_UPDATED_TIME, BUILDING_ID, TEAM_ID from building_team_rel insert into building_team_rel IS_DELETED, CREATED_TIME, CREATED_BY, MODIFIED_BY, LAST_UPDATED_TIME, BUILDING_ID, TEAM_ID, #{isDeleted}, #{createdTime}, #{createdBy}, #{modifiedBy}, #{lastUpdatedTime}, #{buildingId}, #{teamId}, update building_team_rel IS_DELETED = #{isDeleted}, CREATED_TIME = #{createdTime}, CREATED_BY = #{createdBy}, MODIFIED_BY = #{modifiedBy}, LAST_UPDATED_TIME = #{lastUpdatedTime}, BUILDING_ID = #{buildingId}, TEAM_ID = #{teamId}, where ID = #{id} delete from building_team_rel where ID = #{id} delete from building_team_rel where ID in #{id}