id, title, cover, content, source, hot, publish_time, create_time, update_time delete from news where id = #{id,jdbcType=INTEGER} insert into news ( title, cover, content, source, hot, publish_time, create_time ) values (#{title,jdbcType=VARCHAR}, #{cover,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR},#{source,jdbcType=VARCHAR}, #{hot,jdbcType=INTEGER}, #{publishTime,jdbcType=TIMESTAMP}, now() ) update news title = #{title,jdbcType=VARCHAR}, cover = #{cover,jdbcType=VARCHAR}, content = #{content,jdbcType=VARCHAR}, source = #{source,jdbcType=VARCHAR}, hot = #{hot,jdbcType=INTEGER}, publish_time = #{publishTime,jdbcType=TIMESTAMP}, where id = #{id,jdbcType=INTEGER}