INSERT INTO duty_article_content(
article_content_id,
article_type_id,
article_classify_id,
article_content_title,
article_content_sub_title,
article_content_source,
article_content_author,
article_content_content,
article_content_cover_photos,
article_content_is_publish,
article_content_publish_time,
article_content_order_by,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{articleContentId},
#{articleTypeId},
#{articleClassifyId},
#{articleContentTitle},
#{articleContentSubTitle},
#{articleContentSource},
#{articleContentAuthor},
#{articleContentContent},
#{articleContentCoverPhotos},
#{articleContentIsPublish},
#{articleContentPublishTime},
#{articleContentOrderBy},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
duty_article_content
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
article_content_id IN
#{articleContentIds[${index}]}
DELETE FROM
duty_article_content
WHERE
article_content_id IN
#{articleContentIds[${index}]}
UPDATE
duty_article_content
SET
article_type_id = #{articleTypeId},
article_classify_id = #{articleClassifyId},
article_content_title = #{articleContentTitle},
article_content_sub_title = #{articleContentSubTitle},
article_content_source = #{articleContentSource},
article_content_author = #{articleContentAuthor},
article_content_content = #{articleContentContent},
article_content_cover_photos = #{articleContentCoverPhotos},
article_content_is_publish = #{articleContentIsPublish},
article_content_publish_time = #{articleContentPublishTime},
article_content_order_by = #{articleContentOrderBy},
gmt_modified = #{gmtModified},
modifier = #{modifier}
WHERE
article_content_id = #{articleContentId}