|
@@ -2,17 +2,17 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.caimei365.wechat.dao.WeChatDao">
|
|
|
<select id="getReplyByParams" resultType="com.caimei365.wechat.entity.WechatReply">
|
|
|
- SELECT DISTINCT a.id, a.keyword, a.title, a.responsetype AS responseType, a.msgtype AS msgType, a.relateId AS relateId
|
|
|
+ SELECT DISTINCT a.id, a.keyword, a.title, a.response_type AS responseType, a.msg_type AS msgType, a.relate_id AS relateId
|
|
|
FROM wechat_reply a
|
|
|
- WHERE msgType = #{msgType} AND (wxType = '0' OR wxType = #{wxType})
|
|
|
+ WHERE msg_type = #{msgType} AND (wx_type = '0' OR wx_type = #{wxType})
|
|
|
<if test="keyword != null and keyword != ''">
|
|
|
AND keyword = #{keyword}
|
|
|
</if>
|
|
|
- ORDER BY updateTime DESC
|
|
|
+ ORDER BY update_date DESC
|
|
|
</select>
|
|
|
<select id="getArticleDetailList" resultType="com.caimei365.wechat.entity.WechatArticleDetail">
|
|
|
- SELECT a.id AS id,a.articleId AS articleId, a.title, a.linkurl AS linkUrl, a.picurl AS picUrl
|
|
|
- FROM wechat_article_detail a WHERE a.articleId = #{articleId}
|
|
|
+ SELECT a.id AS id,a.article_id AS articleId, a.title, a.url, a.pic_url AS picUrl
|
|
|
+ FROM wechat_article_detail a WHERE a.article_id = #{articleId}
|
|
|
LIMIT 0,7
|
|
|
</select>
|
|
|
<select id="getTextContent" resultType="java.lang.String">
|