xiangpei
2024-05-09 7fead3526920951ed8f68d0f9aaf23fe632158ae
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
package com.mindskip.xzs.repository;
 
import com.mindskip.xzs.domain.QuestionSubject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
@Mapper
public interface QuestionSubjectMapper extends BaseMapper<QuestionSubject>{
 
    /**
     * 批量删除
     * @param ids
     * @return
     */
    Integer removes(@Param("ids") Integer[] ids);
 
    /**
     *
     * @return
     */
    List<QuestionSubject> getQuestion(Integer id);
 
    Integer saves(List<QuestionSubject> list);
 
    Integer removeQuestionId(Integer questionId);
 
    Integer removeSubjectId(Integer subjectId);
 
    List<QuestionSubject> getSubject(Integer id);
 
    /** 统计课目的题目数 */
    Integer countQuestionNum(@Param("subjects") List<Integer> subjects);
}