|
@@ -11,10 +11,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isSuccess" column="is_success" />
|
|
|
<result property="sendText" column="send_text" />
|
|
|
<result property="type" column="type" />
|
|
|
+ <result property="form" column="form" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectWxSendMessageVo">
|
|
|
- select id, create_time, to_user, is_success, send_text, type from wx_send_message
|
|
|
+ select id, create_time, to_user, is_success, send_text, type,form from wx_send_message
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectWxSendMessageList" parameterType="WxSendMessage" resultMap="WxSendMessageResult">
|
|
@@ -24,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isSuccess != null and isSuccess != ''"> and is_success = #{isSuccess}</if>
|
|
|
<if test="sendText != null and sendText != ''"> and send_text = #{sendText}</if>
|
|
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
+ <if test="form != null and form != ''"> and form = #{form}</if>
|
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
|
</if>
|
|
@@ -47,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isSuccess != null and isSuccess != ''">is_success,</if>
|
|
|
<if test="sendText != null and sendText != ''">send_text,</if>
|
|
|
<if test="type != null and type != ''">type,</if>
|
|
|
+ <if test="form != null and form != ''">form,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null ">#{id},</if>
|
|
@@ -55,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isSuccess != null and isSuccess != ''">#{isSuccess},</if>
|
|
|
<if test="sendText != null and sendText != ''">#{sendText},</if>
|
|
|
<if test="type != null and type != ''">#{type},</if>
|
|
|
+ <if test="form != null and form != ''">#{form},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -66,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isSuccess != null and isSuccess != ''">is_success = #{isSuccess},</if>
|
|
|
<if test="sendText != null and sendText != ''">send_text = #{sendText},</if>
|
|
|
<if test="type != null and type != ''">type = #{type},</if>
|
|
|
+ <if test="form != null and form != ''">type = #{form},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -82,9 +87,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<insert id="bathInsertWxSendMessage">
|
|
|
- insert into wx_send_message(create_time, to_user,is_success,send_text,type) values
|
|
|
+ insert into wx_send_message(create_time, to_user,is_success,send_text,type,form) values
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
- (now(),#{item.toUser},#{item.isSuccess},#{item.sendText},#{item.type})
|
|
|
+ (now(),#{item.toUser},#{item.isSuccess},#{item.sendText},#{item.type},#{item.form})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|