id, create_time, edit_time, title, title_img, author, type, hot, source, source_url,
summary,jmrh_flag
content
delete from news
where id = #{id,jdbcType=BIGINT}
insert into news (id, create_time, edit_time,
title, title_img, author,
type, hot, source,
source_url, summary, content,jmrh_flag
)
values (#{id,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{editTime,jdbcType=TIMESTAMP},
#{title,jdbcType=VARCHAR}, #{titleImg,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER}, #{hot,jdbcType=INTEGER}, #{source,jdbcType=VARCHAR},
#{sourceUrl,jdbcType=VARCHAR}, #{summary,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR},
#{jmrhFlag,jdbcType=INTEGER}
)
insert into news
id,
create_time,
edit_time,
title,
title_img,
author,
type,
hot,
source,
source_url,
summary,
content,
jmrhFlag,
#{id,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP},
#{editTime,jdbcType=TIMESTAMP},
#{title,jdbcType=VARCHAR},
#{titleImg,jdbcType=VARCHAR},
#{author,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER},
#{hot,jdbcType=INTEGER},
#{source,jdbcType=VARCHAR},
#{sourceUrl,jdbcType=VARCHAR},
#{summary,jdbcType=VARCHAR},
#{content,jdbcType=LONGVARCHAR},
#{content,jdbcType=INTEGER},
update news
create_time = #{createTime,jdbcType=TIMESTAMP},
edit_time = #{editTime,jdbcType=TIMESTAMP},
title = #{title,jdbcType=VARCHAR},
title_img = #{titleImg,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
hot = #{hot,jdbcType=INTEGER},
source = #{source,jdbcType=VARCHAR},
source_url = #{sourceUrl,jdbcType=VARCHAR},
summary = #{summary,jdbcType=VARCHAR},
content = #{content,jdbcType=LONGVARCHAR},
content = #{jmrhFlag,jdbcType=INTEGER},
where id = #{id,jdbcType=BIGINT}
update news
set create_time = #{createTime,jdbcType=TIMESTAMP},
edit_time = #{editTime,jdbcType=TIMESTAMP},
title = #{title,jdbcType=VARCHAR},
title_img = #{titleImg,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
hot = #{hot,jdbcType=INTEGER},
source = #{source,jdbcType=VARCHAR},
source_url = #{sourceUrl,jdbcType=VARCHAR},
summary = #{summary,jdbcType=VARCHAR},
content = #{content,jdbcType=LONGVARCHAR},
jmrh_flag = #{jmrhFlag,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
update news
set create_time = #{createTime,jdbcType=TIMESTAMP},
edit_time = #{editTime,jdbcType=TIMESTAMP},
title = #{title,jdbcType=VARCHAR},
title_img = #{titleImg,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
hot = #{hot,jdbcType=INTEGER},
source = #{source,jdbcType=VARCHAR},
source_url = #{sourceUrl,jdbcType=VARCHAR},
summary = #{summary,jdbcType=VARCHAR},
jmrh_flag = #{jmrhFlag,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}