xiangpei
2025-05-14 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403
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
package com.mindskip.xzs.repository;
 
import com.mindskip.xzs.domain.SelfPractice;
import com.mindskip.xzs.domain.vo.SelfPracticeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * @author:xp
 * @date:2024/5/9 16:14
 */
@Mapper
public interface SelfPracticeMapper {
 
    /**
     * 添加个人练习
     *
     * @param entity
     */
    void add(SelfPractice entity);
 
    /**
     * 分页
     *
     * @param query
     * @return
     */
    List<SelfPracticeVO> page(@Param("query") SelfPracticeVO query);
 
    /**
     * 删除
     *
     * @param ids
     */
    void remove(List<Integer> ids);
 
    /**
     * id查详情
     *
     * @param id
     * @return
     */
    SelfPractice selectById(Integer id);
 
    /**
     * 设置题目id
     *
     * @param id
     * @param questionIds
     */
    void setQuestionIds(@Param("id") Integer id, @Param("questionIds") String questionIds);
}