package com.ots.project.exam.mapper; import com.ots.project.exam.domain.TQuestion; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 题目列表Mapper接口 * * @author Shawn * @date 2019-11-20 */ public interface TQuestionMapper { /** * 查询题目列表 * * @param id 题目列表ID * @return 题目列表 */ TQuestion selectTQuestionById(Long id); List selectTQuestionByPermanentId(String permanentId); List selectTQuestionByIds(List ids); /** * 查询题目列表列表 * * @param tQuestion 题目列表 * @return 题目列表集合 */ List selectTQuestionList(TQuestion tQuestion); List selectTQuestionsForProductAddQuestion(TQuestion tQuestion); List selectTQuestionScore(Integer[] ids); /** * 新增题目列表 * * @param tQuestion 题目列表 * @return 结果 */ int insertTQuestion(TQuestion tQuestion); /** * 修改题目列表 * * @param tQuestion 题目列表 * @return 结果 */ int updateTQuestion(TQuestion tQuestion); int updateTQuestionByPermanentId(TQuestion tQuestion); /** * 删除题目列表 * * @param id 题目列表ID * @return 结果 */ int deleteTQuestionById(Long id); /** * 批量删除题目列表 * * @param ids 需要删除的数据ID * @return 结果 */ int deleteTQuestionByIds(String[] ids); int updateQuetionByDelete(String[] ids); List selectByIds(@Param("ids") List ids); List selectTQuestionByPermanentIds( List permanentIds); }