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);
|
}
|