package shop.alien.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import shop.alien.entity.store.LifePromotionPackage;
import shop.alien.entity.store.vo.LifePromotionPackageVo;

import java.util.List;

/**
 * 推广套餐 Mapper 接口
 *
 * @author fcw
 * @since 2025-03-01
 */
@Mapper
public interface PromotionPackageMapper extends BaseMapper<LifePromotionPackage> {

    @Select("select a.* from life_promotion_package a " +
            "where a.expert_id = #{expertId} " +
            "ORDER BY a.created_time desc")
    List<LifePromotionPackageVo> getByExpertId(Long expertId);

}

