|
@@ -1,7 +1,7 @@
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
<!DOCTYPE mapper
|
|
|
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+ 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">
|
|
@@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="completeWatchCount != null">complete_watch_count,</if>
|
|
|
<if test="watchTimes != null">watch_times,</if>
|
|
|
<if test="createDate != null">create_date,</if>
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
<if test="userId != null">#{userId},</if>
|
|
@@ -101,7 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="completeWatchCount != null">#{completeWatchCount},</if>
|
|
|
<if test="watchTimes != null">#{watchTimes},</if>
|
|
|
<if test="createDate != null">#{createDate},</if>
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateFsUserCourseCount" parameterType="FsUserCourseCount">
|
|
@@ -231,6 +231,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
on duplicate key update
|
|
|
<trim suffixOverrides=",">
|
|
|
+ <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="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>
|
|
|
+ <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>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|