|
@@ -18,22 +18,6 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
id_, name_, introduce_, member_num_, memo_, img_, type_,create_by_, create_time_, update_time_
|
|
|
</sql>
|
|
|
- <insert id="batchInsert" parameterType="com.yonge.cooleshow.biz.dal.entity.ImHistoryMessage">
|
|
|
- insert into im_history_message(msgUID_,fromUserId_,targetId_,targetType_,
|
|
|
- GroupId_,busChannel_,classname_,content_,
|
|
|
- extraContent_,dateTime_,source_,isDiscard_,
|
|
|
- isSensitiveWord_,isForbidden_,isNotForward_,
|
|
|
- groupUserIds_,appId_)
|
|
|
- values
|
|
|
- <foreach collection="list" separator="," item="item" >
|
|
|
- (#{item.msgUID,jdbcType=VARCHAR},#{item.fromUserId,jdbcType=VARCHAR},#{item.targetId,jdbcType=VARCHAR},
|
|
|
- #{item.targetType},#{item.groupId,jdbcType=VARCHAR},#{item.busChannel,jdbcType=VARCHAR},
|
|
|
- #{item.classname,jdbcType=VARCHAR},#{item.content,jdbcType=VARCHAR},#{item.extraContent,jdbcType=VARCHAR},
|
|
|
- #{item.dateTime,jdbcType=VARCHAR},#{item.source,jdbcType=VARCHAR},#{item.isDiscard,jdbcType=VARCHAR},
|
|
|
- #{item.isSensitiveWord,jdbcType=VARCHAR},#{item.isForbidden,jdbcType=VARCHAR},#{item.isNotForward,jdbcType=VARCHAR},
|
|
|
- #{item.groupUserIds,jdbcType=VARCHAR},#{item.appId,jdbcType=VARCHAR})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
|
|
|
<update id="updateById" parameterType="com.yonge.cooleshow.biz.dal.entity.ImGroup">
|
|
|
update im_group
|
|
@@ -134,4 +118,21 @@
|
|
|
<select id="queryCount" resultType="java.lang.Integer">
|
|
|
SELECT COUNT(*) FROM im_history_message
|
|
|
</select>
|
|
|
+
|
|
|
+ <insert id="batchInsert" parameterType="com.yonge.cooleshow.biz.dal.entity.ImHistoryMessage">
|
|
|
+ insert into im_history_message(msgUID_,fromUserId_,targetId_,targetType_,
|
|
|
+ GroupId_,busChannel_,classname_,content_,
|
|
|
+ extraContent_,dateTime_,source_,isDiscard_,
|
|
|
+ isSensitiveWord_,isForbidden_,isNotForward_,
|
|
|
+ groupUserIds_,appId_)
|
|
|
+ values
|
|
|
+ <foreach collection="list" separator="," item="item" >
|
|
|
+ (#{item.msgUID,jdbcType=VARCHAR},#{item.fromUserId,jdbcType=VARCHAR},#{item.targetId,jdbcType=VARCHAR},
|
|
|
+ #{item.targetType},#{item.groupId,jdbcType=VARCHAR},#{item.busChannel,jdbcType=VARCHAR},
|
|
|
+ #{item.classname,jdbcType=VARCHAR},#{item.content,jdbcType=VARCHAR},#{item.extraContent,jdbcType=VARCHAR},
|
|
|
+ #{item.dateTime,jdbcType=VARCHAR},#{item.source,jdbcType=VARCHAR},#{item.isDiscard,jdbcType=VARCHAR},
|
|
|
+ #{item.isSensitiveWord,jdbcType=VARCHAR},#{item.isForbidden,jdbcType=VARCHAR},#{item.isNotForward,jdbcType=VARCHAR},
|
|
|
+ #{item.groupUserIds,jdbcType=VARCHAR},#{item.appId,jdbcType=VARCHAR})
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
</mapper>
|