ExerciseDictMapper.java
1.11 KB
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);
}