|
|
@@ -117,6 +117,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where msg_id = #{msgId}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateQwMsgByMsgIdAndSessionId">
|
|
|
+ update qw_msg
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="qwExtId != null">qw_ext_id = #{qwExtId},</if>
|
|
|
+ <if test="qwUserId != null">qw_user_id = #{qwUserId},</if>
|
|
|
+ <if test="content != null">content = #{content},</if>
|
|
|
+ <if test="msgType != null">msg_type = #{msgType},</if>
|
|
|
+ <if test="sendType != null">send_type = #{sendType},</if>
|
|
|
+ <if test="companyId != null">company_id = #{companyId},</if>
|
|
|
+ <if test="roleId != null">role_id = #{roleId},</if>
|
|
|
+ <if test="companyUserId != null">company_user_id = #{companyUserId},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="msgJson != null">msg_json = #{msgJson},</if>
|
|
|
+ <if test="status != null">status = #{status},</if>
|
|
|
+ <if test="nickName != null">nick_name = #{nickName},</if>
|
|
|
+ <if test="avatar != null">avatar = #{avatar},</if>
|
|
|
+ <if test="qwMsgId != null">qw_msg_id = #{qwMsgId},</if>
|
|
|
+ <if test="qwAppInfo != null">qw_app_info = #{qwAppInfo},</if>
|
|
|
+ </trim>
|
|
|
+ where msg_id = #{msgId} and session_id = #{sessionId}
|
|
|
+ </update>
|
|
|
+
|
|
|
<delete id="deleteQwMsgByMsgId" parameterType="Long">
|
|
|
delete from qw_msg where msg_id = #{msgId}
|
|
|
</delete>
|