linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package com.ots.project.exam.service;
 
import com.ots.project.exam.domain.TQuestion;
import com.ots.project.exam.viewmodel.QuestionEditRequestVM;
 
import java.util.List;
import java.util.Map;
 
/**
 * 题目列表Service接口
 *
 * @author Shawn
 * @date 2019-11-20
 */
public interface ITQuestionService {
    /**
     * 查询题目列表
     *
     * @param id 题目列表ID
     * @return 题目列表
     */
    TQuestion selectTQuestionById(Long id);
 
    List<TQuestion> selectTQuestionByIds(List<Long> ids);
 
    List<TQuestion> selectTQuestionByPermanentIds(List<String> ids);
 
    /**
     * 查询题目列表列表
     *
     * @param tQuestion 题目列表
     * @return 题目列表集合
     */
    List<TQuestion> selectTQuestionList(TQuestion tQuestion);
 
    List<TQuestion> selectTQuestionsForProductAddQuestion(TQuestion tQuestion);
 
    /**
     * 新增题目列表
     *
     * @param tQuestion 题目列表
     * @return 结果
     */
    int insertTQuestion(TQuestion tQuestion);
 
    /**
     * 修改题目列表
     *
     * @param tQuestion 题目列表
     * @return 结果
     */
    int updateTQuestion(TQuestion tQuestion);
 
    /**
     * 批量删除题目列表
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteTQuestionByIds(String ids);
 
    int deleteQuestionContent(TQuestion tQuestion);
 
    /**
     * 删除题目列表信息
     *
     * @param id 题目列表ID
     * @return 结果
     */
    int deleteTQuestionById(Long id);
 
    /**
     * 返回给答题vue端的数据
     *
     * @param
     * @return
     */
    QuestionEditRequestVM getQuestionEditRequestVM(TQuestion question);
 
    /**
     * 插入导入的题目
     *
     * @param excelList
     * @return
     */
    String insertImportQuestion(List<Map<Integer, String>> excelList);
}