|
@@ -10,7 +10,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="watchCourseCount" column="watch_course_count" />
|
|
|
<result property="missCourseCount" column="miss_course_count" />
|
|
|
<result property="missCourseStatus" column="miss_course_status" />
|
|
|
+ <result property="missCourseDays" column="miss_course_days" />
|
|
|
<result property="courseId" column="course_id" />
|
|
|
+ <result property="partCourseCount" column="part_course_count" />
|
|
|
<result property="lastWatchDate" column="last_watch_date" />
|
|
|
<result property="status" column="status" />
|
|
|
<result property="stopWatchDays" column="stop_watch_days" />
|
|
@@ -19,10 +21,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="completeWatchDate" column="complete_watch_date" />
|
|
|
+ <result property="completeWatchCount" column="complete_watch_count" />
|
|
|
+ <result property="watchTimes" column="watch_times" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserCourseCountVo">
|
|
|
- select id, user_id, watch_course_count, miss_course_count, miss_course_status, course_id, last_watch_date, status, stop_watch_days, create_time, update_time, create_by, update_by, complete_watch_date from fs_user_course_count
|
|
|
+ select id, user_id, watch_course_count, miss_course_count, miss_course_status, miss_course_days, course_id, part_course_count, last_watch_date, status, stop_watch_days, create_time, update_time, create_by, update_by, complete_watch_date, complete_watch_count, watch_times from fs_user_course_count
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserCourseCountList" parameterType="FsUserCourseCount" resultMap="FsUserCourseCountResult">
|
|
@@ -32,11 +36,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="watchCourseCount != null "> and watch_course_count = #{watchCourseCount}</if>
|
|
|
<if test="missCourseCount != null "> and miss_course_count = #{missCourseCount}</if>
|
|
|
<if test="missCourseStatus != null "> and miss_course_status = #{missCourseStatus}</if>
|
|
|
+ <if test="missCourseDays != null "> and miss_course_days = #{missCourseDays}</if>
|
|
|
<if test="courseId != null "> and course_id = #{courseId}</if>
|
|
|
+ <if test="partCourseCount != null and partCourseCount != ''"> and part_course_count = #{partCourseCount}</if>
|
|
|
<if test="lastWatchDate != null "> and last_watch_date = #{lastWatchDate}</if>
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
<if test="stopWatchDays != null "> and stop_watch_days = #{stopWatchDays}</if>
|
|
|
<if test="completeWatchDate != null "> and complete_watch_date = #{completeWatchDate}</if>
|
|
|
+ <if test="completeWatchCount != null "> and complete_watch_count = #{completeWatchCount}</if>
|
|
|
+ <if test="watchTimes != null "> and watch_times = #{watchTimes}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -53,7 +61,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="watchCourseCount != null">watch_course_count,</if>
|
|
|
<if test="missCourseCount != null">miss_course_count,</if>
|
|
|
<if test="missCourseStatus != null">miss_course_status,</if>
|
|
|
+ <if test="missCourseDays != null">miss_course_days,</if>
|
|
|
<if test="courseId != null">course_id,</if>
|
|
|
+ <if test="partCourseCount != null">part_course_count,</if>
|
|
|
<if test="lastWatchDate != null">last_watch_date,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="stopWatchDays != null">stop_watch_days,</if>
|
|
@@ -62,6 +72,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="completeWatchDate != null">complete_watch_date,</if>
|
|
|
+ <if test="completeWatchCount != null">complete_watch_count,</if>
|
|
|
+ <if test="watchTimes != null">watch_times,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -69,7 +81,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="watchCourseCount != null">#{watchCourseCount},</if>
|
|
|
<if test="missCourseCount != null">#{missCourseCount},</if>
|
|
|
<if test="missCourseStatus != null">#{missCourseStatus},</if>
|
|
|
+ <if test="missCourseDays != null">#{missCourseDays},</if>
|
|
|
<if test="courseId != null">#{courseId},</if>
|
|
|
+ <if test="partCourseCount != null">#{partCourseCount},</if>
|
|
|
<if test="lastWatchDate != null">#{lastWatchDate},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="stopWatchDays != null">#{stopWatchDays},</if>
|
|
@@ -78,6 +92,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="completeWatchDate != null">#{completeWatchDate},</if>
|
|
|
+ <if test="completeWatchCount != null">#{completeWatchCount},</if>
|
|
|
+ <if test="watchTimes != null">#{watchTimes},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -88,7 +104,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="watchCourseCount != null">watch_course_count = #{watchCourseCount},</if>
|
|
|
<if test="missCourseCount != null">miss_course_count = #{missCourseCount},</if>
|
|
|
<if test="missCourseStatus != null">miss_course_status = #{missCourseStatus},</if>
|
|
|
+ <if test="missCourseDays != null">miss_course_days = #{missCourseDays},</if>
|
|
|
<if test="courseId != null">course_id = #{courseId},</if>
|
|
|
+ <if test="partCourseCount != null">part_course_count = #{partCourseCount},</if>
|
|
|
<if test="lastWatchDate != null">last_watch_date = #{lastWatchDate},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="stopWatchDays != null">stop_watch_days = #{stopWatchDays},</if>
|
|
@@ -97,6 +115,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="completeWatchDate != null">complete_watch_date = #{completeWatchDate},</if>
|
|
|
+ <if test="completeWatchCount != null">complete_watch_count = #{completeWatchCount},</if>
|
|
|
+ <if test="watchTimes != null">watch_times = #{watchTimes},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|