linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
src/main/java/com/ots/project/exam/mapper/TQuestionMapper.java
@@ -1,27 +1,78 @@
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<TQuestion> selectTQuestionByPermanentId(String permanentId);
    List<TQuestion> selectTQuestionByIds(List<Long> ids);
    /**
     * 查询题目列表列表
     *
     * @param tQuestion 题目列表
     * @return 题目列表集合
     */
    List<TQuestion> selectTQuestionList(TQuestion tQuestion);
    List<TQuestion> selectTQuestionsForProductAddQuestion(TQuestion tQuestion);
    List<TQuestion> 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<TQuestion> selectByIds(@Param("ids") List<Integer> ids);
    List<TQuestion> selectTQuestionByPermanentIds( List<String> permanentIds);
}