and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} id, book_id, index_id, index_num, content delete from book_content where id = #{id,jdbcType=BIGINT} delete from book_content insert into book_content (id, book_id, index_id, index_num, content) values (#{id,jdbcType=BIGINT}, #{bookId,jdbcType=BIGINT}, #{indexId,jdbcType=BIGINT}, #{indexNum,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}) insert into book_content id, book_id, index_id, index_num, content, #{id,jdbcType=BIGINT}, #{bookId,jdbcType=BIGINT}, #{indexId,jdbcType=BIGINT}, #{indexNum,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, update book_content id = #{record.id,jdbcType=BIGINT}, book_id = #{record.bookId,jdbcType=BIGINT}, index_id = #{record.indexId,jdbcType=BIGINT}, index_num = #{record.indexNum,jdbcType=INTEGER}, content = #{record.content,jdbcType=VARCHAR}, update book_content set id = #{record.id,jdbcType=BIGINT}, book_id = #{record.bookId,jdbcType=BIGINT}, index_id = #{record.indexId,jdbcType=BIGINT}, index_num = #{record.indexNum,jdbcType=INTEGER}, content = #{record.content,jdbcType=VARCHAR} update book_content book_id = #{bookId,jdbcType=BIGINT}, index_id = #{indexId,jdbcType=BIGINT}, index_num = #{indexNum,jdbcType=INTEGER}, content = #{content,jdbcType=VARCHAR}, where id = #{id,jdbcType=BIGINT} update book_content set book_id = #{bookId,jdbcType=BIGINT}, index_id = #{indexId,jdbcType=BIGINT}, index_num = #{indexNum,jdbcType=INTEGER}, content = #{content,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT} insert into book_content (book_id, index_num, content) values #{item.bookId,jdbcType=VARCHAR}, #{item.indexNum,jdbcType=VARCHAR}, #{item.content,jdbcType=VARCHAR}, delete t1 from book_content t1 left join book_index t2 on t1.book_id = t2.book_id and t1.index_num = t2.index_num left join book t3 on t1.book_id = t3.id where t2.id is null or t3.id is null