a.id AS "id",
a.source AS "source",
a.type AS "type",
a.mediaId AS "mediaId",
a.title AS "title",
a.author AS "author",
a.digest AS "digest",
a.content AS "content",
a.contentSourceUrl AS "contentSourceUrlfindAllList",
a.thumbMediaId AS "thumbMediaId",
a.showCoverPic AS "showCoverPic",
a.url AS "url",
a.thumbUrl AS "thumbUrl",
a.needOpenComment AS "needOpenComment",
a.onlyFansCanComment AS "onlyFansCanComment",
a.actType AS "actType",
a.actName AS "actName",
a.actTime AS "actTime",
a.actEndTime AS "actEndTime",
a.actStatus AS "actStatus",
a.deployTime AS "deployTime",
a.deployStatus AS "deployStatus",
a.points AS "points",
a.readings AS "readings",
a.pv AS "pv",
a.basePoints AS "basePoints",
a.baseReadings AS "baseReadings",
a.createTime AS "createTime",
a.updateTime AS "updateTime",
a.tagId as "tagId",
a.tagName as "tagName",
a.keyWord as "keyWord",
a.subtitle as "subtitle"
INSERT INTO cm_wx_article
source,
type,
mediaId,
title,
author,
digest,
content,
contentSourceUrl,
thumbMediaId,
showCoverPic,
url,
thumbUrl,
needOpenComment,
onlyFansCanComment,
actType,
actName,
actTime,
actEndTime,
actStatus,
deployTime,
deployStatus,
points,
readings,
pv,
basePoints,
baseReadings,
createTime,
updateTime,
tagId,
keyWord,
subtitle
#{source},
#{type},
#{mediaId},
#{title},
#{author},
#{digest},
#{content},
#{contentSourceUrl},
#{thumbMediaId},
#{showCoverPic},
#{url},
#{thumbUrl},
#{needOpenComment},
#{onlyFansCanComment},
#{actType},
#{actName},
#{actTime},
#{actEndTime},
#{actStatus},
#{deployTime},
#{deployStatus},
#{points},
#{readings},
#{pv},
#{basePoints},
#{baseReadings},
#{createTime},
#{updateTime},
#{tagId},
#{keyWord},
#{subtitle}
UPDATE cm_wx_article SET
source = #{source},
type = #{type},
mediaId = #{mediaId},
title = #{title},
author = #{author},
digest = #{digest},
content = #{content},
contentSourceUrl = #{contentSourceUrl},
thumbMediaId = #{thumbMediaId},
showCoverPic = #{showCoverPic},
url = #{url},
thumbUrl = #{thumbUrl},
needOpenComment = #{needOpenComment},
onlyFansCanComment = #{onlyFansCanComment},
actType = #{actType},
actName = #{actName},
actTime = #{actTime},
actEndTime = #{actEndTime},
actStatus = #{actStatus},
deployTime = #{deployTime},
deployStatus = #{deployStatus},
points = #{points},
readings = #{readings},
pv = #{pv},
basePoints = #{basePoints},
baseReadings = #{baseReadings},
createTime = #{createTime},
updateTime = #{updateTime},
tagId = #{tagId},
keyWord = #{keyWord},
subtitle = #{subtitle}
WHERE id = #{id}
UPDATE cm_wx_article SET
deployTime = #{deployTime},
deployStatus = #{deployStatus}
WHERE id = #{id}
UPDATE cm_wx_article SET
content = #{content},
thumbUrl = #{thumbUrl},
type = #{type}
WHERE id = #{id}
DELETE FROM cm_wx_article
WHERE id = #{id}
DELETE FROM cm_wx_article_article
WHERE articleId = #{articleId}
DELETE FROM cm_wx_article_product
WHERE articleId = #{articleId}
INSERT INTO cm_wx_article_article(
articleId,
relatedArticleId,
sort
) VALUES (
#{articleId},
#{id},
#{sort}
)
INSERT INTO cm_wx_article_product(
articleId,
relatedProductId,
sort
) VALUES (
#{articleId},
#{productID},
#{sort}
)