admin
2019-10-25 733281fcb5f1ab01e1196b542b7e07b49b3e44c4
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
package com.yeshi.fanli.service.inter.order;
 
import java.math.BigDecimal;
 
import com.yeshi.fanli.entity.bus.user.HongBaoV2;
import com.yeshi.fanli.entity.bus.user.Order;
import com.yeshi.fanli.entity.order.OrderHongBaoMap;
 
/**
 * 订单红包对应表用于活动)
 * 
 * @author Administrator
 *
 */
public interface OrderHongBaoMapService {
 
    /**
     * 添加红包订单映射
     * 
     * @param hongBao
     * @param order
     */
    public void addOrderHongBaoMap(HongBaoV2 hongBao, Order order);
 
    /**
     * 查找奖励金额
     * 
     * @param orderNo
     * @param uid
     * @return
     */
    public BigDecimal getCouponHongbaoByOrderNo(String orderNo, Long uid);
 
    /**
     * 根据订单ID与sourceType查询
     * 
     * @param orderId
     * @param sourceType
     * @return
     */
    public OrderHongBaoMap selectByOrderIdAndSourceType(String orderId, int sourceType);
 
}