heheng
9 天以前 9a646862455de8f2c4c77d5fca3d44e23c4c360e
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.gkhy.exam.system.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.gkhy.exam.common.api.CommonPage;
import com.gkhy.exam.system.domain.ExStudent;
import com.gkhy.exam.system.domain.vo.TrainRecordVO;
 
import java.util.List;
import java.util.Map;
 
/**
 * <p>
 * 学员表 服务类
 * </p>
 *
 * @author kzy
 * @since 2024-06-06 13:53:17
 */
public interface ExStudentService extends IService<ExStudent> {
    /**
     * 根据条件分页查询学员列表
     * @param student
     * @return
     */
    CommonPage selectStudentList(ExStudent student);
 
    /**
     * 根据
     * @param phone
     * @return
     */
    ExStudent selectStudentByPhone(String phone);
 
 
    /**
     * 根据id查询学员信息
     *
     * @param studentId 学员ID
     * @return 公司信息
     */
    public ExStudent selectStudentById(Long studentId);
 
 
    /**
     * 新增学员
     *
     * @param student 学员信息
     * @return 结果
     */
    public int insertStudent(ExStudent student);
 
 
    /**
     * 修改学员
     *
     * @param student 学员信息
     * @return 结果
     */
    public int updateStudent(ExStudent student);
 
    /**
     * 删除学员信息
     *
     * @param studentId 学员ID
     * @return 结果
     */
    public int deleteStudentById(Long studentId);
 
 
    /**
     * 校验学员手机号是否唯一
     *
     * @param student 学员信息
     * @return boolean
     */
    public boolean checkPhoneUnique(ExStudent student);
 
    /**
     * 校验学员身份证是否唯一
     *
     * @param student 学员信息
     * @return boolean
     */
    public boolean checkIdNoUnique(ExStudent student);
 
    /**
     * 校验身份证号是否存在,供前端校验使用
     * @param idNo
     * @return
     */
    public Map checkIdNoUnique(String idNo);
 
    /**
     * 重置密码
     * @param student
     */
    boolean resetUserPwd(ExStudent student);
 
    /**
     * 变更学员所属公司
     * @param bodyMap
     */
    void changeStudentCompany(Map<String, Long> bodyMap);
 
    /**
     * 获取学员培训记录
     * @param studentId
     * @return
     */
    List<TrainRecordVO> trainRecord(Long studentId);
 
    List<ExStudent> selectStudentCheckAll(ExStudent student);
}