select id, sheep_id, group_id from bas_sheep_group_mapping insert into bas_sheep_group_mapping sheep_id, group_id, #{sheepId}, #{groupId}, update bas_sheep_group_mapping sheep_id = #{sheepId}, group_id = #{groupId}, where id = #{id} delete from bas_sheep_group_mapping where id = #{id} delete from bas_sheep_group_mapping where id in #{id}