UPDATE wechat_reply SET keyword = #{keyword}, title = #{title}, responsetype = #{responseType},
msgtype = #{msgType}, relateID = #{relateId}, update_by = #{userId}, update_date = NOW()
WHERE cm_wxparamID = #{id}
INSERT INTO wechat_reply(keyword, title, responsetype, msgtype, relateID, wx_type, create_by, create_date)
VALUES (#{keyword}, #{title}, #{responseType}, #{msgType}, #{relateId}, #{wxType}, #{userId}, NOW())
DELETE FROM wechat_reply WHERE cm_wxparamID = #{id}
UPDATE wechat_text SET title = #{title}, content = #{content}, wx_type = #{wxType}, update_by = #{userId}, update_date = NOW()
WHERE cm_wxtextID = #{id}
INSERT INTO wechat_text(title, content, wx_type, create_by, create_date)
VALUES (#{title}, #{content}, #{wxType}, #{userId}, NOW())
DELETE FROM wechat_text WHERE cm_wxtextID = #{id}
UPDATE wechat_article SET title = #{title}, wx_type = #{wxType}, update_by = #{userId}, update_date = NOW()
WHERE cm_wxarticleID = #{id}
UPDATE wechat_article_detail SET title = #{title}, linkurl = #{linkUrl}, picurl = #{pictureUrl}, update_by = #{userId}, update_date = NOW()
WHERE cm_wxarticledtlID = #{id}
INSERT INTO wechat_article(title, wx_type, create_by, create_date)
VALUES (#{title}, #{wxType}, #{userId}, NOW())
INSERT INTO wechat_article_detail(cm_wxarticleID, title, linkurl, picurl, create_by, create_date)
VALUES (#{articleId}, #{title}, #{linkUrl},#{pictureUrl}, #{userId}, NOW())
DELETE FROM wechat_article WHERE cm_wxarticleID = #{id}
DELETE FROM wechat_article_detail WHERE cm_wxarticleID = #{articleId}
DELETE FROM wechat_article_detail WHERE cm_wxarticledtlID = #{id}