package org.ta.pddserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.ta.pdd.entity.DerelictionEntity;

import java.util.List;

@Mapper
public interface DerelictionMapper extends BaseMapper<DerelictionEntity> {
    // 根据用户名查找用户
    @Select("SELECT * FROM `dereliction` WHERE `username` = #{username};")
    List<DerelictionEntity> selectByUsername(String username);
}
