|
@@ -24,10 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="sendFinishMsg" column="send_finish_msg" />
|
|
|
<result property="campPeriodTime" column="camp_period_time" />
|
|
|
<result property="lastHeartbeatTime" column="last_heartbeat_time" />
|
|
|
+ <result property="project" column="project" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsCourseWatchLogVo">
|
|
|
- select log_id, user_id,finish_time,send_finish_msg,sop_id,video_id,reward_type, log_type, create_time, update_time, qw_external_contact_id, duration, qw_user_id, company_user_id, company_id, course_id,camp_period_time from fs_course_watch_log
|
|
|
+ select log_id, user_id,finish_time,send_finish_msg,sop_id,video_id,reward_type, log_type, create_time, update_time, qw_external_contact_id, duration, qw_user_id, company_user_id, company_id, course_id,camp_period_time,project from fs_course_watch_log
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsCourseWatchLogList" parameterType="FsCourseWatchLog" resultMap="FsCourseWatchLogResult">
|
|
@@ -44,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="courseId != null "> and course_id = #{courseId}</if>
|
|
|
<if test="sendType != null "> and send_type = #{sendType}</if>
|
|
|
<if test="campPeriodTime != null "> and camp_period_time = #{campPeriodTime}</if>
|
|
|
+ <if test="project != null "> and project = #{project}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -218,6 +220,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sendFinishMsg != null">send_finish_msg,</if>
|
|
|
<if test="campPeriodTime != null">camp_period_time,</if>
|
|
|
<if test="periodId != null">period_id,</if>
|
|
|
+ <if test="project != null">project,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
@@ -238,6 +241,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sendFinishMsg != null">#{sendFinishMsg},</if>
|
|
|
<if test="campPeriodTime != null">#{campPeriodTime},</if>
|
|
|
<if test="periodId != null">#{periodId},</if>
|
|
|
+ <if test="project != null">#{project},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -261,6 +265,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="finishTime != null">finish_time,</if>
|
|
|
<if test="sendFinishMsg != null">send_finish_msg,</if>
|
|
|
<if test="campPeriodTime != null">camp_period_time,</if>
|
|
|
+ <if test="project != null">project,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
@@ -280,6 +285,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="finishTime != null">#{finishTime},</if>
|
|
|
<if test="sendFinishMsg != null">#{sendFinishMsg},</if>
|
|
|
<if test="campPeriodTime != null">#{campPeriodTime},</if>
|
|
|
+ <if test="project != null">#{project},</if>
|
|
|
</trim>
|
|
|
on duplicate key update
|
|
|
<trim suffixOverrides=",">
|
|
@@ -305,7 +311,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
send_type,
|
|
|
reward_type,
|
|
|
sop_id,
|
|
|
- camp_period_time
|
|
|
+ camp_period_time,
|
|
|
+ project
|
|
|
)
|
|
|
VALUES
|
|
|
<foreach collection="watchLogs" item="log" separator=",">
|
|
@@ -324,7 +331,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{log.sendType},
|
|
|
#{log.rewardType},
|
|
|
#{log.sopId},
|
|
|
- #{log.campPeriodTime}
|
|
|
+ #{log.campPeriodTime},
|
|
|
+ #{log.project}
|
|
|
)
|
|
|
</foreach>
|
|
|
ON DUPLICATE KEY UPDATE
|
|
@@ -354,6 +362,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sendFinishMsg != null">send_finish_msg = #{sendFinishMsg},</if>
|
|
|
<if test="lastHeartbeatTime != null">last_heartbeat_time = #{lastHeartbeatTime},</if>
|
|
|
<if test="periodId != null">period_id = #{periodId},</if>
|
|
|
+ <if test="project != null">project = #{project},</if>
|
|
|
</trim>
|
|
|
where log_id = #{logId}
|
|
|
</update>
|