|
@@ -295,6 +295,50 @@ public interface FsCourseWatchLogMapper extends BaseMapper<FsCourseWatchLog> {
|
|
|
"</script>"})
|
|
"</script>"})
|
|
|
List<FsCourseWatchLogStatisticsListVO> selectFsCourseWatchLogStatisticsListVO(FsCourseWatchLogStatisticsListParam param);
|
|
List<FsCourseWatchLogStatisticsListVO> selectFsCourseWatchLogStatisticsListVO(FsCourseWatchLogStatisticsListParam param);
|
|
|
|
|
|
|
|
|
|
+ @Select({"<script> " +
|
|
|
|
|
+ "SELECT COUNT(*) FROM (" +
|
|
|
|
|
+ " SELECT 1 " +
|
|
|
|
|
+ " FROM fs_course_watch_log o " +
|
|
|
|
|
+ " <if test= 'sendType != 1 '> " +
|
|
|
|
|
+ " LEFT JOIN qw_user qu on qu.id = o.qw_user_id " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " <if test= 'sendType == 1 '> " +
|
|
|
|
|
+ " LEFT JOIN company_user cu on cu.user_id = o.company_user_id " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " WHERE o.company_id = #{companyId} " +
|
|
|
|
|
+ " <if test= 'sendType != null '> " +
|
|
|
|
|
+ " AND o.send_type = #{sendType} " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " <if test= 'sTime != null '> " +
|
|
|
|
|
+ " AND o.create_time >= #{sTime} " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " <if test='eTime != null '> " +
|
|
|
|
|
+ " AND o.create_time < DATE_ADD(#{eTime}, INTERVAL 1 DAY) " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " <if test ='sendType != 1 and nickName != null and nickName != \"\"'> " +
|
|
|
|
|
+ " AND qu.qw_user_name LIKE CONCAT(#{nickName}, '%') " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " <if test ='sendType == 1 and nickName != null and nickName != \"\"'> " +
|
|
|
|
|
+ " AND cu.nick_name LIKE CONCAT(#{nickName}, '%') " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " <if test ='courseId != null'> " +
|
|
|
|
|
+ " AND o.course_id = #{courseId} " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " <if test ='videoId != null'> " +
|
|
|
|
|
+ " AND o.video_id = #{videoId} " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " GROUP BY o.video_id, " +
|
|
|
|
|
+ " <if test= 'sendType != 1 '> " +
|
|
|
|
|
+ " o.qw_user_id, " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " <if test= 'sendType == 1 '> " +
|
|
|
|
|
+ " o.company_user_id, " +
|
|
|
|
|
+ " </if> " +
|
|
|
|
|
+ " DATE(o.create_time) " +
|
|
|
|
|
+ ") t " +
|
|
|
|
|
+ "</script>"})
|
|
|
|
|
+ Long selectFsCourseWatchLogStatisticsListVOCount(FsCourseWatchLogStatisticsListParam param);
|
|
|
|
|
+
|
|
|
|
|
|
|
|
ArrayList<FsCourseWatchLogByFinishTimeParam> selectFsCourseWatchLogByFinishTime();
|
|
ArrayList<FsCourseWatchLogByFinishTimeParam> selectFsCourseWatchLogByFinishTime();
|
|
|
|
|
|