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.pddserver.entity.PackageNoticeEntity;
import org.ta.pddserver.entity.PackageQueryEntity;

import java.util.List;

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