package com.cf.imes.module.infra.dal.mysql.demo;

import java.util.*;

import PageResult;
import PageParam;
import LambdaQueryWrapperX;
import BaseMapperX;
import com.cf.imes.module.infra.dal.dataobject.demo.InfraStudentTeacherDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 学生班主任 Mapper
 *
 * @author 晨丰科技
 */
@Mapper
public interface InfraStudentTeacherMapper extends BaseMapperX<InfraStudentTeacherDO> {

    default InfraStudentTeacherDO selectByStudentId(Long studentId) {
        return selectOne(InfraStudentTeacherDO::getStudentId, studentId);
    }

    default int deleteByStudentId(Long studentId) {
        return delete(InfraStudentTeacherDO::getStudentId, studentId);
    }

}
