|
@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<sql id="selectFsCourseWatchLogVo">
|
|
<sql id="selectFsCourseWatchLogVo">
|
|
|
select log_id, user_id,finish_time,send_finish_msg,sop_id,video_id,reward_type, log_type, create_time,
|
|
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,
|
|
update_time, qw_external_contact_id, duration, qw_user_id, company_user_id, company_id, course_id,
|
|
|
- camp_period_time,project,period_id,watch_type from fs_course_watch_log
|
|
|
|
|
|
|
+ camp_period_time,project,period_id,watch_type,link_id from fs_course_watch_log
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsCourseWatchLogList" parameterType="FsCourseWatchLog" resultMap="FsCourseWatchLogResult">
|
|
<select id="selectFsCourseWatchLogList" parameterType="FsCourseWatchLog" resultMap="FsCourseWatchLogResult">
|
|
@@ -1219,7 +1219,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCourseByUserIdForStatusFinish" resultType="com.fs.course.vo.FsUserCourseAppListVO">
|
|
<select id="selectCourseByUserIdForStatusFinish" resultType="com.fs.course.vo.FsUserCourseAppListVO">
|
|
|
- select c.course_name courseName,c.img_url imgUrl,r.title videoName,l.link_id linkId,l.duration,l.video_id videoId,l.user_id userId,l.company_user_id companyUserId from fs_course_watch_log l
|
|
|
|
|
|
|
+ select c.course_name courseName,c.img_url imgUrl,r.title videoName,l.link_id linkId,l.duration,l.video_id videoId,l.user_id userId,l.company_user_id companyUserId,l.log_id logId from fs_course_watch_log l
|
|
|
left join fs_user_course c on l.course_id =c.course_id
|
|
left join fs_user_course c on l.course_id =c.course_id
|
|
|
left join fs_user_course_video r on r.video_id=l.video_id
|
|
left join fs_user_course_video r on r.video_id=l.video_id
|
|
|
WHERE l.user_id = #{userId} and l.log_type = 2
|
|
WHERE l.user_id = #{userId} and l.log_type = 2
|
|
@@ -1228,7 +1228,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectCourseByUserIdForStatusNotFinish" resultType="com.fs.course.vo.FsUserCourseAppListVO">
|
|
<select id="selectCourseByUserIdForStatusNotFinish" resultType="com.fs.course.vo.FsUserCourseAppListVO">
|
|
|
- select c.course_name courseName,c.img_url imgUrl,r.title videoName,l.link_id linkId,l.duration,l.video_id videoId,l.user_id userId,l.company_user_id from fs_course_watch_log l
|
|
|
|
|
|
|
+ select c.course_name courseName,c.img_url imgUrl,r.title videoName,l.link_id linkId,l.duration,l.video_id videoId,l.user_id userId,l.company_user_id companyUserId,l.log_id logId from fs_course_watch_log l
|
|
|
left join fs_user_course c on l.course_id =c.course_id
|
|
left join fs_user_course c on l.course_id =c.course_id
|
|
|
left join fs_user_course_video r on r.video_id=l.video_id
|
|
left join fs_user_course_video r on r.video_id=l.video_id
|
|
|
WHERE l.user_id = #{userId} and l.log_type != 2
|
|
WHERE l.user_id = #{userId} and l.log_type != 2
|
|
@@ -1237,7 +1237,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getAppCourseLearningOne" resultType="com.fs.course.vo.FsUserCourseAppListVO">
|
|
<select id="getAppCourseLearningOne" resultType="com.fs.course.vo.FsUserCourseAppListVO">
|
|
|
- select c.course_name courseName,c.img_url imgUrl,r.title videoName,l.link_id linkId,l.duration,l.video_id videoId,l.user_id userId,l.company_user_id companyUserId from fs_course_watch_log l
|
|
|
|
|
|
|
+ select c.course_name courseName,c.img_url imgUrl,r.title videoName,l.link_id linkId,l.duration,l.video_id videoId,l.user_id userId,l.company_user_id companyUserId,l.log_id logId from fs_course_watch_log l
|
|
|
left join fs_user_course c on l.course_id =c.course_id
|
|
left join fs_user_course c on l.course_id =c.course_id
|
|
|
left join fs_user_course_video r on r.video_id=l.video_id
|
|
left join fs_user_course_video r on r.video_id=l.video_id
|
|
|
WHERE l.user_id = #{userId} and l.update_time is not null
|
|
WHERE l.user_id = #{userId} and l.update_time is not null
|