package com.ruoyi.promotion.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.ruoyi.promotion.controller.forepart.vo.ForepartPromotionWishBulletVO;
|
import com.ruoyi.promotion.controller.forepart.vo.ForepartPromotionWishRecommendVO;
|
import com.ruoyi.promotion.controller.forepart.vo.ForepartPromotionWishVO;
|
import com.ruoyi.promotion.domain.PromotionWish;
|
import java.util.List;
|
import org.apache.ibatis.annotations.Param;
|
|
/**
|
* <p>
|
* 心愿求购 Mapper 接口
|
* </p>
|
*
|
* @author mitao
|
* @since 2024-10-29
|
*/
|
public interface PromotionWishMapper extends BaseMapper<PromotionWish> {
|
/**
|
* 个人中心-获取推荐商品可购买数
|
* @return
|
*/
|
Integer getRecommendNum(Long memberId);
|
/**
|
* 获取首页弹幕数据
|
* @return
|
*/
|
List<ForepartPromotionWishBulletVO> getBulletList();
|
|
/**
|
* 获取推荐商品列表
|
* @param memberId
|
* @return
|
*/
|
List<ForepartPromotionWishRecommendVO> getRecommendList(Long memberId);
|
|
/**
|
* 获取未推荐的心愿求购数量
|
* @param memberId
|
* @return
|
*/
|
List<PromotionWish> selectNotRecommend(Long memberId);
|
|
/**
|
* 心愿求购历史列表
|
* @param page
|
* @param memberId
|
* @return
|
*/
|
Page<ForepartPromotionWishVO> getWishHistory(Page<ForepartPromotionWishVO> page,
|
@Param("memberId") Long memberId);
|
|
/**
|
* 求购历史-达成心愿数
|
* @return
|
*/
|
Long getCompletedWishCount();
|
}
|