ExerciseTreeMappingMapper.java 853 Bytes
package com.meishu.mapper;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.meishu.model.ExerciseDictDO;
import com.meishu.model.ExerciseTreeMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 题目知识树映射表 Mapper 接口
 * </p>
 *
 * @author Tuyp
 * @since 2021-04-27
 */
@Repository
public interface ExerciseTreeMappingMapper extends BaseMapper<ExerciseTreeMappingDO> {

    /**
     * 查看挂在知识点上的视频数
     */
    Integer getTreeExerciseCount(Long userId, Long treeId, String shareStatus, String subject,String checkStatus);


    /**
     * 获取某学校某知识点的关联习题
     * @return  审核通过的视频
     */
    List<ExerciseDictDO> getRelatedExercise(Integer treeId);
}