zjh
2023-10-12 8cde7ee1143bae70eb68d2b75f572d5b4dbadf98
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
88
89
90
package com.ltkj.hosp.mapper;
 
import java.util.List;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltkj.hosp.domain.TjSurveyQuestion;
import com.ltkj.hosp.domain.TjSurveyOptions;
import org.apache.ibatis.annotations.Mapper;
 
/**
 * 问卷问题Mapper接口
 *
 * @author ltkj_赵佳豪&李格
 * @date 2023-04-07
 */
@Mapper
public interface TjSurveyQuestionMapper extends BaseMapper<TjSurveyQuestion> {
    /**
     * 查询问卷问题
     *
     * @param qid 问卷问题主键
     * @return 问卷问题
     */
    public TjSurveyQuestion selectTjSurveyQuestionByQid(Long qid);
 
    /**
     * 查询问卷问题列表
     *
     * @param tjSurveyQuestion 问卷问题
     * @return 问卷问题集合
     */
    public List<TjSurveyQuestion> selectTjSurveyQuestionList(TjSurveyQuestion tjSurveyQuestion);
 
    /**
     * 新增问卷问题
     *
     * @param tjSurveyQuestion 问卷问题
     * @return 结果
     */
    public int insertTjSurveyQuestion(TjSurveyQuestion tjSurveyQuestion);
 
    /**
     * 修改问卷问题
     *
     * @param tjSurveyQuestion 问卷问题
     * @return 结果
     */
    public int updateTjSurveyQuestion(TjSurveyQuestion tjSurveyQuestion);
 
    /**
     * 删除问卷问题
     *
     * @param qid 问卷问题主键
     * @return 结果
     */
    public int deleteTjSurveyQuestionByQid(Long qid);
 
    /**
     * 批量删除问卷问题
     *
     * @param qids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTjSurveyQuestionByQids(Long[] qids);
 
        /**
         * 批量删除问卷选项
         *
         * @param qids 需要删除的数据主键集合
         * @return 结果
         */
        public int deleteTjSurveyOptionsByQids(Long[] qids);
 
        /**
         * 批量新增问卷选项
         *
         * @param tjSurveyOptionsList 问卷选项列表
         * @return 结果
         */
        public int batchTjSurveyOptions(List<TjSurveyOptions> tjSurveyOptionsList);
 
 
        /**
         * 通过问卷问题主键删除问卷选项信息
         *
         * @param qid 问卷问题ID
         * @return 结果
         */
        public int deleteTjSurveyOptionsByQid(Long qid);
}