package com.xhkjedu.sstudy.mapper.subjectbook;

import com.xhkjedu.base.TkMapper;
import com.xhkjedu.sstudy.model.subjectbook.TSubjectQuestiontype;
import com.xhkjedu.sstudy.vo.subjectbook.SubjectQuestiontypeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SubjectQuestiontype
 * Description 科目题型
 * Author WN
 * Date 2020/6/2 10:52
 **/
@Repository
public interface SubjectQuestiontypeMapper extends TkMapper<TSubjectQuestiontype> {

    List<TSubjectQuestiontype> listQuestiontypes(@Param("type") TSubjectQuestiontype type);

    List<Map> listQuestiontypesForSel(@Param("type") TSubjectQuestiontype type);

    //获取有听力题的题型
    List<Map> listQtypesHasHear(@Param("type") TSubjectQuestiontype type);

    //查找使用题型的模块
    String findUseModule(String qtypeid);
}
