|
@@ -5,6 +5,7 @@
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
+ <result column="video_ids" jdbcType="VARCHAR" property="videoIds" />
|
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
@@ -68,7 +69,7 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, user_id, name, is_delete, create_time, update_time
|
|
|
+ id, user_id, `name`, video_ids, is_delete, create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.ReplyStaffExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -83,6 +84,9 @@
|
|
|
<if test="orderByClause != null">
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
+ <if test="page != null">
|
|
|
+ limit #{page.offset} , #{page.pageSize}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -101,12 +105,12 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.ReplyStaff">
|
|
|
- insert into reply_staff (id, user_id, name,
|
|
|
- is_delete, create_time, update_time
|
|
|
- )
|
|
|
+ insert into reply_staff (id, user_id, `name`,
|
|
|
+ video_ids, is_delete, create_time,
|
|
|
+ update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
|
- #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
- )
|
|
|
+ #{videoIds,jdbcType=VARCHAR}, #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.ReplyStaff">
|
|
|
insert into reply_staff
|
|
@@ -118,7 +122,10 @@
|
|
|
user_id,
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
- name,
|
|
|
+ `name`,
|
|
|
+ </if>
|
|
|
+ <if test="videoIds != null">
|
|
|
+ video_ids,
|
|
|
</if>
|
|
|
<if test="isDelete != null">
|
|
|
is_delete,
|
|
@@ -140,6 +147,9 @@
|
|
|
<if test="name != null">
|
|
|
#{name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="videoIds != null">
|
|
|
+ #{videoIds,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="isDelete != null">
|
|
|
#{isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -160,38 +170,42 @@
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
update reply_staff
|
|
|
<set>
|
|
|
- <if test="row.id != null">
|
|
|
- id = #{row.id,jdbcType=BIGINT},
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="record.userId != null">
|
|
|
+ user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.userId != null">
|
|
|
- user_id = #{row.userId,jdbcType=VARCHAR},
|
|
|
+ <if test="record.name != null">
|
|
|
+ `name` = #{record.name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.name != null">
|
|
|
- name = #{row.name,jdbcType=VARCHAR},
|
|
|
+ <if test="record.videoIds != null">
|
|
|
+ video_ids = #{record.videoIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="row.isDelete != null">
|
|
|
- is_delete = #{row.isDelete,jdbcType=INTEGER},
|
|
|
+ <if test="record.isDelete != null">
|
|
|
+ is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="row.createTime != null">
|
|
|
- create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="row.updateTime != null">
|
|
|
- update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ <if test="record.updateTime != null">
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</set>
|
|
|
- <if test="example != null">
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update reply_staff
|
|
|
- set id = #{row.id,jdbcType=BIGINT},
|
|
|
- user_id = #{row.userId,jdbcType=VARCHAR},
|
|
|
- name = #{row.name,jdbcType=VARCHAR},
|
|
|
- is_delete = #{row.isDelete,jdbcType=INTEGER},
|
|
|
- create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
- update_time = #{row.updateTime,jdbcType=TIMESTAMP}
|
|
|
- <if test="example != null">
|
|
|
+ set id = #{record.id,jdbcType=BIGINT},
|
|
|
+ user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
+ `name` = #{record.name,jdbcType=VARCHAR},
|
|
|
+ video_ids = #{record.videoIds,jdbcType=VARCHAR},
|
|
|
+ is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
@@ -202,7 +216,10 @@
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
- name = #{name,jdbcType=VARCHAR},
|
|
|
+ `name` = #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="videoIds != null">
|
|
|
+ video_ids = #{videoIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="isDelete != null">
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
@@ -219,7 +236,8 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.api.model.po.ReplyStaff">
|
|
|
update reply_staff
|
|
|
set user_id = #{userId,jdbcType=VARCHAR},
|
|
|
- name = #{name,jdbcType=VARCHAR},
|
|
|
+ `name` = #{name,jdbcType=VARCHAR},
|
|
|
+ video_ids = #{videoIds,jdbcType=VARCHAR},
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|