|
@@ -134,11 +134,11 @@
|
|
UPDATE wechat_article_detail SET title = #{title}, linkurl = #{linkUrl}, picurl = #{pictureUrl}, update_by = #{userId}, update_date = NOW()
|
|
UPDATE wechat_article_detail SET title = #{title}, linkurl = #{linkUrl}, picurl = #{pictureUrl}, update_by = #{userId}, update_date = NOW()
|
|
WHERE cm_wxarticledtlID = #{id}
|
|
WHERE cm_wxarticledtlID = #{id}
|
|
</update>
|
|
</update>
|
|
- <insert id="insertWechatArticle">
|
|
|
|
|
|
+ <insert id="insertWechatArticle" keyProperty="id" useGeneratedKeys="true">
|
|
INSERT INTO wechat_article(title, wx_type, create_by, create_date)
|
|
INSERT INTO wechat_article(title, wx_type, create_by, create_date)
|
|
VALUES (#{title}, #{wxType}, #{userId}, NOW())
|
|
VALUES (#{title}, #{wxType}, #{userId}, NOW())
|
|
</insert>
|
|
</insert>
|
|
- <insert id="insertWechatArticleDetail">
|
|
|
|
|
|
+ <insert id="insertWechatArticleDetail" keyProperty="id" useGeneratedKeys="true">
|
|
INSERT INTO wechat_article_detail(cm_wxarticleID, title, linkurl, picurl, create_by, create_date)
|
|
INSERT INTO wechat_article_detail(cm_wxarticleID, title, linkurl, picurl, create_by, create_date)
|
|
VALUES (#{articleId}, #{title}, #{linkUrl},#{pictureUrl}, #{userId}, NOW())
|
|
VALUES (#{articleId}, #{title}, #{linkUrl},#{pictureUrl}, #{userId}, NOW())
|
|
</insert>
|
|
</insert>
|