id, title, publisher, `type`, picture_url, `status`, sort, content, release_status,
create_time, release_time, keywords, hot
delete from news
where id = #{id,jdbcType=INTEGER}
insert into news (title, publisher, `type`,
picture_url, `status`, sort,
content, release_status, create_time,
release_time, keywords, hot
)
values (#{title,jdbcType=VARCHAR}, #{publisher,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
#{pictureUrl,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
#{content,jdbcType=VARCHAR}, #{releaseStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{releaseTime,jdbcType=TIMESTAMP}, #{keywords,jdbcType=VARCHAR}, #{hot,jdbcType=BIGINT}
)
insert into news
title,
publisher,
`type`,
picture_url,
`status`,
sort,
content,
release_status,
create_time,
release_time,
keywords,
hot,
#{title,jdbcType=VARCHAR},
#{publisher,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER},
#{pictureUrl,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER},
#{content,jdbcType=VARCHAR},
#{releaseStatus,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{releaseTime,jdbcType=TIMESTAMP},
#{keywords,jdbcType=VARCHAR},
#{hot,jdbcType=BIGINT},
update news
title = #{title,jdbcType=VARCHAR},
publisher = #{publisher,jdbcType=VARCHAR},
`type` = #{type,jdbcType=INTEGER},
picture_url = #{pictureUrl,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
content = #{content,jdbcType=VARCHAR},
release_status = #{releaseStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
release_time = #{releaseTime,jdbcType=TIMESTAMP},
keywords = #{keywords,jdbcType=VARCHAR},
hot = #{hot,jdbcType=BIGINT},
where id = #{id,jdbcType=INTEGER}
update news
set title = #{title,jdbcType=VARCHAR},
publisher = #{publisher,jdbcType=VARCHAR},
`type` = #{type,jdbcType=INTEGER},
picture_url = #{pictureUrl,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
content = #{content,jdbcType=VARCHAR},
release_status = #{releaseStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
release_time = #{releaseTime,jdbcType=TIMESTAMP},
keywords = #{keywords,jdbcType=VARCHAR},
hot = #{hot,jdbcType=BIGINT}
where id = #{id,jdbcType=INTEGER}