|
@@ -16,6 +16,7 @@
|
|
|
<result column="file_name_" property="fileName" />
|
|
|
<result column="file_size_" property="fileSize" />
|
|
|
<result column="message_type_" property="messageType" />
|
|
|
+ <result column="send_type_" property="sendType" />
|
|
|
<result column="send_flag_" property="sendFlag" />
|
|
|
<result column="send_time_" property="sendTime" />
|
|
|
<result column="operator_" property="operator" />
|
|
@@ -36,14 +37,17 @@
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.ImSendGroupMessage" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO im_send_group_message (message_content_,sender_id_,extra,target_ids_,file_url_,file_name_,
|
|
|
- file_size_,message_type_,send_flag_,send_time_,create_time_,update_time_,operator_)
|
|
|
+ file_size_,message_type_,send_flag_,send_time_,create_time_,update_time_,operator_,send_type_)
|
|
|
VALUES(#{messageContent},#{senderId},#{extra},#{targetIds},#{fileUrl},#{fileName},#{fileSize},
|
|
|
- #{messageType},#{sendFlag},#{sendTime},NOW(),NOW(),#{operator})
|
|
|
+ #{messageType},#{sendFlag},#{sendTime},NOW(),NOW(),#{operator},#{sendType})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.ImSendGroupMessage">
|
|
|
UPDATE im_send_group_message <set>
|
|
|
+ <if test="sendType != null">
|
|
|
+ send_type_ = #{sendType},
|
|
|
+ </if>
|
|
|
<if test="operator != null">
|
|
|
operator_ = #{operator},
|
|
|
</if>
|
|
@@ -101,6 +105,9 @@
|
|
|
<if test="senderId != null">
|
|
|
AND sender_id_ = #{senderId}
|
|
|
</if>
|
|
|
+ <if test="sendType != null">
|
|
|
+ AND send_type_ = #{sendType}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
|