|
|
@@ -26,11 +26,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="lastHeartbeatTime" column="last_heartbeat_time" />
|
|
|
<result property="project" column="project" />
|
|
|
<result property="periodId" column="period_id" />
|
|
|
- <result property="appid" column="appid" />
|
|
|
+ <result property="appId" column="app_id" />
|
|
|
</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,project,period_id,appid 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,period_id,app_id from fs_course_watch_log
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsCourseWatchLogList" parameterType="FsCourseWatchLog" resultMap="FsCourseWatchLogResult">
|
|
|
@@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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>
|
|
|
- <if test="appid != null "> and appid = #{appid}</if>
|
|
|
+ <if test="appId != null "> and app_id = #{appId}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectFsCourseWatchLogListVO" resultType="com.fs.course.vo.FsCourseWatchLogListVO">
|
|
|
select l.log_id,l.project,l.period_id,l.user_id,uc.course_name,v.title as video_name,qec.avatar as external_user_avatar,
|
|
|
- l.log_type,SEC_TO_TIME(l.duration) as duration,c.company_name,l.camp_period_time,l.finish_time,l.appid,
|
|
|
+ l.log_type,SEC_TO_TIME(l.duration) as duration,c.company_name,l.camp_period_time,l.finish_time,l.app_id,
|
|
|
cu.nick_name as company_user_name ,l.send_type,l.create_time,l.update_time,l.last_heartbeat_time,fcpsc.name,
|
|
|
CASE
|
|
|
WHEN qu.qw_user_name IS NOT NULL AND qu.qw_user_name LIKE '{%' THEN JSON_UNQUOTE(JSON_EXTRACT(qu.qw_user_name, '$.name'))
|
|
|
@@ -75,10 +75,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
left join company c on c.company_id = l.company_id
|
|
|
LEFT JOIN qw_user qu on qu.id= l.qw_user_id
|
|
|
LEFT JOIN qw_external_contact qec on l.qw_external_contact_id = qec.id
|
|
|
- LEFT JOIN fs_course_play_source_config fcpsc on l.appid = fcpsc.appid
|
|
|
+ LEFT JOIN fs_course_play_source_config fcpsc on l.app_id = fcpsc.appid
|
|
|
<where>
|
|
|
<if test ='maps.appid != null'>
|
|
|
- and l.appid = #{maps.appid}
|
|
|
+ and l.app_id = #{maps.appid}
|
|
|
</if>
|
|
|
<if test ='maps.isVip != null and maps.isVip == 0'>
|
|
|
and (l.user_id = 0 or l.user_id is null)
|
|
|
@@ -284,7 +284,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="campPeriodTime != null">camp_period_time,</if>
|
|
|
<if test="periodId != null">period_id,</if>
|
|
|
<if test="project != null">project,</if>
|
|
|
- <if test="appid != null">appid,</if>
|
|
|
+ <if test="appId != null">app_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
@@ -306,7 +306,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="campPeriodTime != null">#{campPeriodTime},</if>
|
|
|
<if test="periodId != null">#{periodId},</if>
|
|
|
<if test="project != null">#{project},</if>
|
|
|
- <if test="appid != null">#{appid},</if>
|
|
|
+ <if test="appId != null">#{appId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -331,7 +331,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="project != null">project,</if>
|
|
|
- <if test="appid != null">appid,</if>
|
|
|
+ <if test="appId != null">app_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
@@ -352,7 +352,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sendFinishMsg != null">#{sendFinishMsg},</if>
|
|
|
<if test="campPeriodTime != null">#{campPeriodTime},</if>
|
|
|
<if test="project != null">#{project},</if>
|
|
|
- <if test="appid != null">#{appid},</if>
|
|
|
+ <if test="appId != null">#{appId},</if>
|
|
|
</trim>
|
|
|
on duplicate key update
|
|
|
<trim suffixOverrides=",">
|
|
|
@@ -435,7 +435,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="lastHeartbeatTime != null">last_heartbeat_time = #{lastHeartbeatTime},</if>
|
|
|
<if test="periodId != null">period_id = #{periodId},</if>
|
|
|
<if test="project != null">project = #{project},</if>
|
|
|
- <if test="appid != null">appid = #{appid},</if>
|
|
|
+ <if test="appId != null">app_id = #{appId},</if>
|
|
|
</trim>
|
|
|
where log_id = #{logId}
|
|
|
</update>
|