|
|
|
@ -9,6 +9,7 @@
|
|
|
|
|
<result column="discussion_quantity" jdbcType="INTEGER" property="discussionQuantity" />
|
|
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.trade.entity.TchDiscussManage">
|
|
|
|
|
<result column="chat_content" jdbcType="LONGVARCHAR" property="chatContent" />
|
|
|
|
@ -72,7 +73,7 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, discuss_id, create_time, visible_class, discussion_quantity, user_id, name
|
|
|
|
|
id, discuss_id, create_time, visible_class, discussion_quantity, user_id, name, school_id
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
chat_content
|
|
|
|
@ -128,10 +129,12 @@
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.trade.entity.TchDiscussManage">
|
|
|
|
|
insert into tch_discuss_manage (id, discuss_id, create_time,
|
|
|
|
|
visible_class, discussion_quantity, user_id,
|
|
|
|
|
name, chat_content)
|
|
|
|
|
name, school_id, chat_content
|
|
|
|
|
)
|
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{discussId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{visibleClass,jdbcType=VARCHAR}, #{discussionQuantity,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR},
|
|
|
|
|
#{name,jdbcType=VARCHAR}, #{chatContent,jdbcType=LONGVARCHAR})
|
|
|
|
|
#{name,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, #{chatContent,jdbcType=LONGVARCHAR}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.TchDiscussManage">
|
|
|
|
|
insert into tch_discuss_manage
|
|
|
|
@ -157,6 +160,9 @@
|
|
|
|
|
<if test="name != null">
|
|
|
|
|
name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chatContent != null">
|
|
|
|
|
chat_content,
|
|
|
|
|
</if>
|
|
|
|
@ -183,6 +189,9 @@
|
|
|
|
|
<if test="name != null">
|
|
|
|
|
#{name,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
#{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chatContent != null">
|
|
|
|
|
#{chatContent,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -218,6 +227,9 @@
|
|
|
|
|
<if test="record.name != null">
|
|
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.schoolId != null">
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.chatContent != null">
|
|
|
|
|
chat_content = #{record.chatContent,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -235,6 +247,7 @@
|
|
|
|
|
discussion_quantity = #{record.discussionQuantity,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
chat_content = #{record.chatContent,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -248,7 +261,8 @@
|
|
|
|
|
visible_class = #{record.visibleClass,jdbcType=VARCHAR},
|
|
|
|
|
discussion_quantity = #{record.discussionQuantity,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
name = #{record.name,jdbcType=VARCHAR}
|
|
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -274,6 +288,9 @@
|
|
|
|
|
<if test="name != null">
|
|
|
|
|
name = #{name,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chatContent != null">
|
|
|
|
|
chat_content = #{chatContent,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -288,6 +305,7 @@
|
|
|
|
|
discussion_quantity = #{discussionQuantity,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
name = #{name,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
chat_content = #{chatContent,jdbcType=LONGVARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
@ -298,7 +316,8 @@
|
|
|
|
|
visible_class = #{visibleClass,jdbcType=VARCHAR},
|
|
|
|
|
discussion_quantity = #{discussionQuantity,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
name = #{name,jdbcType=VARCHAR}
|
|
|
|
|
name = #{name,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|