book_id, is_black_box_enable, is_res_share_enable, update_user, update_time, create_time, create_user
select from book_switch where book_id = #{bookId,jdbcType=BIGINT}
select from book_switch where book_id in #{item}
delete from book_switch where book_id = #{bookId,jdbcType=BIGINT}
insert into book_switch (book_id,is_black_box_enable, is_res_share_enable, update_user, update_time, create_time, create_user) values (#{bookId,jdbcType=BIGINT},#{isBlackBoxEnable,jdbcType=INTEGER}, #{isResShareEnable,jdbcType=INTEGER}, #{updateUser,jdbcType=BIGINT}, now(), now(), #{createUser,jdbcType=BIGINT}) on duplicate key update is_black_box_enable=values(is_black_box_enable), is_res_share_enable=values(is_res_share_enable), update_time=now(), update_user=values(update_user)

insert into book_switch book_id, is_black_box_enable, is_res_share_enable, update_user, update_time, create_time, create_user #{bookId}, #{isBlackBoxEnable,jdbcType=INTEGER}, #{isResShareEnable,jdbcType=INTEGER}, #{updateUser,jdbcType=BIGINT}, now(), now(), #{createUser,jdbcType=BIGINT} on duplicate key update is_black_box_enable=values(is_black_box_enable), is_res_share_enable=values(is_res_share_enable), update_time=now(), update_user=values(update_user)
insert into book_switch (book_id,is_black_box_enable, is_res_share_enable, update_user, update_time, create_time, create_user) values (#{item.bookId,jdbcType=BIGINT},#{item.isBlackBoxEnable,jdbcType=INTEGER}, #{item.isResShareEnable,jdbcType=INTEGER}, #{item.updateUser,jdbcType=BIGINT}, now(), now(), #{item.createUser,jdbcType=BIGINT}) on duplicate key update is_black_box_enable=values(is_black_box_enable), is_res_share_enable=values(is_res_share_enable), update_time=now(), update_user=values(update_user)
update book_switch is_black_box_enable = #{isBlackBoxEnable,jdbcType=INTEGER}, is_res_share_enable = #{isResShareEnable,jdbcType=INTEGER}, update_user = #{updateUser,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP}, create_user = #{createUser,jdbcType=BIGINT}, where book_id = #{bookId,jdbcType=BIGINT}
update book_switch set is_black_box_enable = #{isBlackBoxEnable,jdbcType=INTEGER}, is_res_share_enable = #{isResShareEnable,jdbcType=INTEGER}, update_user = #{updateUser,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP}, create_user = #{createUser,jdbcType=BIGINT} where book_id = #{bookId,jdbcType=BIGINT}