INSERT INTO article_content(
article_content_id,
title,
sub_title,
summary,
link,
source,
author,
publish_date,
is_publish,
content,
sort,
article_category_id,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{articleContentId},
#{title},
#{subTitle},
#{summary},
#{link},
#{source},
#{author},
#{publishDate},
#{isPublish},
#{content},
#{sort},
#{articleCategoryId},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
article_content
SET
is_delete = 1,
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
article_content_id IN
#{articleContentIds[${index}]}
UPDATE
article_content
SET
title = #{title},
sub_title = #{subTitle},
summary = #{summary},
link = #{link},
source = #{source},
author = #{author},
publish_date = #{publishDate},
is_publish = #{isPublish},
content = #{content},
article_category_id = #{articleCategoryId},
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
article_content_id = #{articleContentId}