package com.reading.platform.mapper;

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

@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {

    /**
     * 物理删除教师按用户名
     */
    @Delete("DELETE FROM t_teacher WHERE username = #{username}")
    int deletePhysicalByUsername(@Param("username") String username);
}
