jyy
2021-05-10 f12b519702e4c4c246238f79f95215f8cd26dea7
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package com.matrix.system.shopXcx.api.service;
 
import com.matrix.core.pojo.AjaxResult;
import com.matrix.core.pojo.PaginationVO;
import com.matrix.system.shopXcx.api.pojo.OrderItemDto;
import com.matrix.system.shopXcx.api.vo.CouponReceiveInfoVO;
import com.matrix.system.shopXcx.bean.ShopCoupon;
 
import java.util.List;
 
/**
 * @author jyy
 */
public interface WxShopCouponService {
 
 
    /**
     * 根据购物车选中的产品
     * @return
     */
    public List<CouponReceiveInfoVO> getCartVoCouponList(Long companyId,List<OrderItemDto> OrderItemDtos);
 
 
    /**
     * 获取可用的优惠券
     * 
     * @param pageVo
     * @return
     */
    AjaxResult getUsableCoupon(PaginationVO pageVo);
 
 
    /**
     * 领取优惠券
     * 
     * @param couponId 优惠券ID
     * @return
     */
    AjaxResult receiveCoupon(Integer couponId);
 
    /**
     * 根据状态获取我的优惠券
     * 
     *
     * @param companyId
     * @param status
     * @param pageVo
     * @return
     */
    AjaxResult getMyCouponInfoByStatus(Long companyId, Integer status, PaginationVO pageVo);
 
    /**
     * 根据产品ID获取优惠券列表
     * 
     * @param productId
     * @return
     */
    List<ShopCoupon> getCouponListByProductId(Integer productId);
 
 
    /**
     * 根据标签获取优惠券列表
     *
     * @param tag
     * @param companyId
     * @return
     */
    AjaxResult getCouponListByTag(String tag, Long companyId);
 
    /**
     * 根据产品id查询该产品符合的优惠活动
     * 
     * @param productId
     * @return
     */
    List<ShopCoupon> getHdListByProductId(Integer productId);
 
}