insert into book_index ( `id`, `book_id`, `index_num`, `index_name` ) values ( #{id}, #{bookId}, #{indexNum}, #{indexName} ) update book_index `book_id` = #{bookId}, `index_num` = #{indexNum}, `index_name` = #{indexName} where id = #{id} delete from book_index where id = #{value} delete from book_index where id in #{id} insert into book_index (book_id, index_num, index_name) values #{item.bookId,jdbcType=VARCHAR}, #{item.indexNum,jdbcType=VARCHAR}, #{item.indexName,jdbcType=VARCHAR}, delete from book_index where book_id in (${bookIds});