package com.zhentao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.entity.VipPackage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * VIP套餐Mapper接口
 */
@Mapper
public interface VipPackageMapper extends BaseMapper<VipPackage> {
    
    /**
     * 查询所有上架的VIP套餐
     */
    @Select("SELECT * FROM vip_package WHERE status = 1 ORDER BY sort_order ASC")
    List<VipPackage> selectAllActive();
}


