select article_id, article_title, cover_photo, article_type, article_content, article_url, if_visible, hits, if_pushed, push_time, summary, create_by, create_time, update_by, update_time from health_popular_article
insert into health_popular_article
article_title,
cover_photo,
article_type,
article_content,
article_url,
if_visible,
hits,
if_pushed,
push_time,
summary,
create_by,
create_time,
update_by,
update_time,
#{articleTitle},
#{coverPhoto},
#{articleType},
#{articleContent},
#{articleUrl},
#{ifVisible},
#{hits},
#{ifPushed},
#{pushTime},
#{summary},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update health_popular_article
article_title = #{articleTitle},
cover_photo = #{coverPhoto},
article_type = #{articleType},
article_content = #{articleContent},
article_url = #{articleUrl},
if_visible = #{ifVisible},
hits = #{hits},
if_pushed = #{ifPushed},
push_time = #{pushTime},
summary = #{summary},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where article_id = #{articleId}
delete from health_popular_article where article_id = #{articleId}
delete from health_popular_article where article_id in
#{articleId}
delete from health_popular_article_chronic where article_id = #{articleId}
insert into health_popular_article_chronic(article_id, chronic_id, chronic_name)
values
(#{entity.articleId}, #{entity.chronicId}, #{entity.chronicName})