package com.reading.platform.mapper;

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

@Mapper
public interface ParentMapper extends BaseMapper<Parent> {

    /**
     * 物理删除家长按用户名
     */
    @Delete("DELETE FROM t_parent WHERE username = #{username}")
    void deletePhysicalByUsername(@Param("username") String username);
}
