Blame view

ExerciseDictMapper.java 1.11 KB
涂亚平 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
package com.meishu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.meishu.dto.exercise.GetExerciseRequestDTO;
import com.meishu.model.ExerciseDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meishu.model.SubjectTreeDO;
import com.meishu.vo.exercise.GetExerciseDetailResponseVO;
import com.meishu.vo.exercise.GetTreeExercisesVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 习题库 Mapper 接口
 * </p>
 *
 * @author Tuyp
 * @since 2021-04-27
 */
@Repository
public interface ExerciseDictMapper extends BaseMapper<ExerciseDictDO> {

    IPage<GetTreeExercisesVO> getTreeExercises(IPage iPage,Long userId,String subjectEn, Long treeId, String exerciseType, Integer difficulty, String title,String shareStatus,String checkStatus,List<String> strings);

    List<SubjectTreeDO> getTrees(Long id);

    /**
     * 通过知识点和学校查看关联习题+用户收藏状态
     * @param getExerciseRequestVO
     * @return
     */
    List<GetExerciseDetailResponseVO> getRelativeExercises(GetExerciseRequestDTO getExerciseRequestVO);
}