|
@@ -2,7 +2,7 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<!-- namespace必须指向DAO接口 -->
|
|
|
-<mapper namespace="com.jpsoft.picc.modules.base.dao.ReplyMessageDAO">
|
|
|
+<mapper namespace="com.jpsoft.weixin.dao.ReplyMessageDAO">
|
|
|
<resultMap id="ReplyMessageMap" type="com.jpsoft.picc.modules.base.entity.ReplyMessage">
|
|
|
<id property="id" column="id_"/>
|
|
|
<result property="wechatId" column="wechat_id"/>
|
|
@@ -10,6 +10,7 @@
|
|
|
<result property="message" column="message_"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
+ <result property="callbackUrl" column="callback_url"/>
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.picc.modules.base.entity.ReplyMessage">
|
|
|
<!--
|
|
@@ -19,7 +20,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into wechat_reply_message
|
|
|
- (id_,wechat_id,event_,message_,create_time,update_time)
|
|
|
+ (id_,wechat_id,event_,message_,create_time,update_time,callback_url)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -28,6 +29,7 @@
|
|
|
,#{message,jdbcType=VARCHAR}
|
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
+ ,#{callbackUrl,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -52,6 +54,9 @@
|
|
|
<if test="updateTime!=null">
|
|
|
update_time=#{updateTime,jdbcType= TIMESTAMP },
|
|
|
</if>
|
|
|
+ <if test="callbackUrl!=null">
|
|
|
+ callback_url=#{callbackUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|