VodPlayHistoryMapper.java 1.06 KB
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.VodPlayHistoryDO;
import com.subsidy.vo.vod.GetMemberStudyInfoVO;
import com.subsidy.vo.vod.StudyHistoryVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 视频播放历史记录表 Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2021-10-14
 */
@Repository
public interface VodPlayHistoryMapper extends BaseMapper<VodPlayHistoryDO> {

    /**
     * 查看某成员的学习历史
     */
   IPage<StudyHistoryVO> studyHistory(IPage iPage,Long memberId);

    /**
     * 从成员,日期的维度查看学生学习时长
     */
    List<GetMemberStudyInfoVO> getMemberStudyInfo(Long classId,List<Long> memberIds,String startDate,String endDate);

    /**
     * 缩量记录
     */
    List<VodPlayHistoryDO> getVodPlayHistory();

    void deleteById(Long id);

    /**
     * 查看某人当天看了多少时间
     */
    int memberDailyStudyLength(Long memberId);
}