mitao
2024-11-04 11fa4b3bcdda902de8d9818038a1bd35beaa5ec4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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();
}