|  | @@ -3,7 +3,7 @@
 | 
	
		
			
				|  |  |  PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 | 
	
		
			
				|  |  |  <mapper namespace="com.fs.store.mapper.FsUserCourseCountMapper">
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <resultMap type="FsUserCourseCount" id="FsUserCourseCountResult">
 | 
	
		
			
				|  |  |          <result property="id"    column="id"    />
 | 
	
		
			
				|  |  |          <result property="userId"    column="user_id"    />
 | 
	
	
		
			
				|  | @@ -11,7 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |          <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="courseIds"    column="course_idss"    />
 | 
	
		
			
				|  |  |          <result property="partCourseCount"    column="part_course_count"    />
 | 
	
		
			
				|  |  |          <result property="lastWatchDate"    column="last_watch_date"    />
 | 
	
		
			
				|  |  |          <result property="status"    column="status"    />
 | 
	
	
		
			
				|  | @@ -26,18 +26,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |      </resultMap>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <sql id="selectFsUserCourseCountVo">
 | 
	
		
			
				|  |  | -        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
 | 
	
		
			
				|  |  | +        select id, user_id, watch_course_count, miss_course_count, miss_course_status, miss_course_days, course_ids, 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">
 | 
	
		
			
				|  |  |          <include refid="selectFsUserCourseCountVo"/>
 | 
	
		
			
				|  |  | -        <where>  
 | 
	
		
			
				|  |  | +        <where>
 | 
	
		
			
				|  |  |              <if test="userId != null "> and user_id = #{userId}</if>
 | 
	
		
			
				|  |  |              <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="courseIds != null "> and course_ids = #{courseIds}</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>
 | 
	
	
		
			
				|  | @@ -47,12 +47,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |              <if test="watchTimes != null "> and watch_times = #{watchTimes}</if>
 | 
	
		
			
				|  |  |          </where>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <select id="selectFsUserCourseCountById" parameterType="Long" resultMap="FsUserCourseCountResult">
 | 
	
		
			
				|  |  |          <include refid="selectFsUserCourseCountVo"/>
 | 
	
		
			
				|  |  |          where id = #{id}
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <insert id="insertFsUserCourseCount" parameterType="FsUserCourseCount">
 | 
	
		
			
				|  |  |          insert into fs_user_course_count
 | 
	
		
			
				|  |  |          <trim prefix="(" suffix=")" suffixOverrides=",">
 | 
	
	
		
			
				|  | @@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |              <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="courseIds != null">course_ids,</if>
 | 
	
		
			
				|  |  |              <if test="partCourseCount != null">part_course_count,</if>
 | 
	
		
			
				|  |  |              <if test="lastWatchDate != null">last_watch_date,</if>
 | 
	
		
			
				|  |  |              <if test="status != null">status,</if>
 | 
	
	
		
			
				|  | @@ -82,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |              <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="courseIds != null">#{courseIds},</if>
 | 
	
		
			
				|  |  |              <if test="partCourseCount != null">#{partCourseCount},</if>
 | 
	
		
			
				|  |  |              <if test="lastWatchDate != null">#{lastWatchDate},</if>
 | 
	
		
			
				|  |  |              <if test="status != null">#{status},</if>
 | 
	
	
		
			
				|  | @@ -105,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |              <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="courseIds != null">course_ids = #{courseIds},</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>
 | 
	
	
		
			
				|  | @@ -126,10 +126,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |      </delete>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <delete id="deleteFsUserCourseCountByIds" parameterType="String">
 | 
	
		
			
				|  |  | -        delete from fs_user_course_count where id in 
 | 
	
		
			
				|  |  | +        delete from fs_user_course_count where id in
 | 
	
		
			
				|  |  |          <foreach item="id" collection="array" open="(" separator="," close=")">
 | 
	
		
			
				|  |  |              #{id}
 | 
	
		
			
				|  |  |          </foreach>
 | 
	
		
			
				|  |  |      </delete>
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | -</mapper>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +</mapper>
 |