|
|
@@ -15,6 +15,7 @@ import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.apache.ibatis.annotations.Update;
|
|
|
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
@@ -569,4 +570,10 @@ public interface FsCourseWatchLogMapper extends BaseMapper<FsCourseWatchLog> {
|
|
|
List<FsCourseReportVO> selectFsCourseReportVO(FsCourseWatchLogStatisticsListParam param);
|
|
|
|
|
|
List<FsUserReportVO> selectFsUserReportVO(FsCourseWatchLogStatisticsListParam param);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询看课记录
|
|
|
+ */
|
|
|
+ @Select("select * from fs_course_watch_log where user_id = #{userId} and video_id = #{videoId} and period_id = #{periodId} and send_type = 1 order by log_id desc limit 1")
|
|
|
+ FsCourseWatchLog selectWatchLogByUserIdAndVideoIdAndPeriodId(@Param("userId") Long userId, @Param("videoId") Long videoId, @Param("periodId") Long periodId);
|
|
|
}
|