package com.gkhy.exam.system.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.gkhy.exam.system.domain.ExStudent;
|
import org.apache.ibatis.annotations.Mapper;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 学员表 Mapper 接口
|
* </p>
|
*
|
* @author kzy
|
* @since 2024-06-06 13:53:17
|
*/
|
@Mapper
|
public interface ExStudentMapper extends BaseMapper<ExStudent> {
|
/**
|
* 根据条件分页查询学员信息
|
* @param student
|
* @return
|
*/
|
List<ExStudent> selectStudentList(ExStudent student);
|
|
/**
|
* 根据id查询学员信息
|
* @param studentId
|
* @return
|
*/
|
ExStudent selectStudentById(Long studentId);
|
|
/**
|
* 校验手机号是否唯一
|
* @param phone
|
* @return
|
*/
|
ExStudent checkPhoneUnique(String phone);
|
|
/**
|
* 校验身份证是否唯一
|
* @param idNo
|
* @return
|
*/
|
ExStudent checkIdNoUnique(String idNo);
|
|
/**
|
* 根据手机号查询学员
|
* @param phone
|
* @return
|
*/
|
ExStudent selectStudentByPhone(String phone);
|
|
/**
|
* 根据id删除学员
|
* @param studentId
|
* @return
|
*/
|
int deleteByStudentId(Long studentId);
|
}
|