|
|
@@ -11,9 +11,12 @@
|
|
|
<result column="summary" property="summary" jdbcType="VARCHAR" />
|
|
|
<result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
|
|
|
<result column="lecture_url" property="lectureUrl" jdbcType="VARCHAR" />
|
|
|
+ <result column="hot" property="hot" jdbcType="INTEGER" />
|
|
|
+ <result column="dynamic" property="dynamic" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
- id, uid, lecture_time, create_time, last_update_time, name, summary, deleted_sign, lecture_url
|
|
|
+ id, uid, lecture_time, create_time, last_update_time, name, summary, deleted_sign, lecture_url,
|
|
|
+ hot, dynamic
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -28,10 +31,11 @@
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.Lecture" >
|
|
|
insert into lecture (id, uid, lecture_time,
|
|
|
create_time, last_update_time, name,
|
|
|
- summary, deleted_sign, lecture_url)
|
|
|
+ summary, deleted_sign, lecture_url, hot, dynamic)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{lectureTime,jdbcType=TIMESTAMP},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{name,jdbcType=VARCHAR},
|
|
|
- #{summary,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER}, #{lectureUrl,jdbcType=VARCHAR})
|
|
|
+ #{summary,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER}, #{lectureUrl,jdbcType=VARCHAR},
|
|
|
+ #{hot,jdbcType=INTEGER}, #{dynamic,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Lecture" >
|
|
|
insert into lecture
|
|
|
@@ -60,9 +64,15 @@
|
|
|
<if test="deletedSign != null" >
|
|
|
deleted_sign,
|
|
|
</if>
|
|
|
- <if test="lectureUrl != null" >
|
|
|
+ <if test="lectureUrl != null" >
|
|
|
lecture_url,
|
|
|
</if>
|
|
|
+ <if test="hot != null" >
|
|
|
+ hot,
|
|
|
+ </if>
|
|
|
+ <if test="dynamic != null" >
|
|
|
+ dynamic,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
@@ -89,9 +99,15 @@
|
|
|
<if test="deletedSign != null" >
|
|
|
#{deletedSign,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="lectureUrl != null" >
|
|
|
+ <if test="lectureUrl != null" >
|
|
|
#{lectureUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="hot != null" >
|
|
|
+ #{hot,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dynamic != null" >
|
|
|
+ #{dynamic,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Lecture" >
|
|
|
@@ -118,9 +134,15 @@
|
|
|
<if test="deletedSign != null" >
|
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="lectureUrl != null" >
|
|
|
+ <if test="lectureUrl != null" >
|
|
|
lecture_url = #{lectureUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="hot != null" >
|
|
|
+ hot = #{hot,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dynamic != null" >
|
|
|
+ dynamic = #{dynamic,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -133,7 +155,9 @@
|
|
|
name = #{name,jdbcType=VARCHAR},
|
|
|
summary = #{summary,jdbcType=VARCHAR},
|
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
|
- lecture_url = #{lectureUrl,jdbcType=VARCHAR}
|
|
|
+ lecture_url = #{lectureUrl,jdbcType=VARCHAR},
|
|
|
+ hot = #{hot,jdbcType=INTEGER},
|
|
|
+ dynamic = #{dynamic,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|