|
|
@@ -40,6 +40,7 @@
|
|
|
<result property="projectId" column="project_id" />
|
|
|
<result property="isFirst" column="is_first" />
|
|
|
<result property="courseIntroImg" column="course_intro_img" />
|
|
|
+ <result property="courseCouponId" column="course_coupon_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserCourseVideoVo">
|
|
|
@@ -118,6 +119,7 @@
|
|
|
<if test="jobId != null">job_id,</if>
|
|
|
<if test="vid != null">vid,</if>
|
|
|
<if test="courseIntroImg != null">course_intro_img,</if>
|
|
|
+ <if test="courseCouponId != null">course_coupon_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="fileId != null">#{fileId},</if>
|
|
|
@@ -163,6 +165,7 @@
|
|
|
<if test="jobId != null">#{jobId},</if>
|
|
|
<if test="vid != null">#{vid},</if>
|
|
|
<if test="courseIntroImg != null">#{courseIntroImg},</if>
|
|
|
+ <if test="courseCouponId != null">#{courseCouponId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<insert id="insertBatchFsUserCourseVideo" parameterType="FsUserCourseVideo" useGeneratedKeys="true" keyProperty="videoId">
|
|
|
@@ -259,6 +262,8 @@
|
|
|
<if test="vid != null">vid = #{vid},</if>
|
|
|
<if test="courseIntroImg != null">course_intro_img = #{courseIntroImg},</if>
|
|
|
<if test="courseIntroImg == null">course_intro_img = null,</if>
|
|
|
+ <if test="courseCouponId != null">course_coupon_id = #{courseCouponId},</if>
|
|
|
+ <if test="courseCouponId == null">course_coupon_id = null,</if>
|
|
|
</trim>
|
|
|
where video_id = #{videoId}
|
|
|
</update>
|