id, book_id, edition_year, edition, create_time, update_time, update_user
select from edition_record where id = #{id,jdbcType=BIGINT}
delete from edition_record where id = #{id,jdbcType=BIGINT}
insert into edition_record (id, book_id, edition_year, edition, create_time, update_time, update_user) values (#{id,jdbcType=BIGINT}, #{bookId,jdbcType=BIGINT}, #{editionYear,jdbcType=VARCHAR}, #{edition,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER})
insert into edition_record (book_id, edition_year, edition, create_time, update_time,update_user ) values (#{item.bookId,jdbcType=BIGINT}, #{item.editionYear,jdbcType=VARCHAR}, #{item.edition,jdbcType=INTEGER}, now(),now(),#{item.updateUser} )
insert into edition_record id, book_id, edition_year, edition, create_time, update_time, update_user, #{id,jdbcType=BIGINT}, #{bookId,jdbcType=INTEGER}, #{editionYear,jdbcType=VARCHAR}, #{edition,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER},
update edition_record book_id = #{bookId,jdbcType=INTEGER}, edition_year = #{editionYear,jdbcType=VARCHAR}, edition = #{edition,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, update_user = #{updateUser,jdbcType=INTEGER}, where id = #{id,jdbcType=BIGINT}
update edition_record set book_id = #{bookId,jdbcType=BIGINT}, edition_year = #{editionYear,jdbcType=VARCHAR}, edition = #{edition,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, update_user = #{updateUser,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT}