package com.reading.platform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.reading.platform.entity.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StudentMapper extends BaseMapper<Student> {

    /**
     * 物理删除学生按学号
     */
    @Delete("DELETE FROM t_student WHERE student_no = #{studentNo}")
    void deletePhysicalByStudentNo(@Param("studentNo") String studentNo);
}
