admin
2019-01-05 374fa38b5e4c17c079e027e9987e966f30a5cd36
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package com.yeshi.fanli.service.inter.hongbao;
 
import java.math.BigDecimal;
import java.util.List;
 
import com.yeshi.fanli.dto.HongBaoDTO;
import com.yeshi.fanli.entity.bus.user.HongBao;
import com.yeshi.fanli.entity.bus.user.HongBaoV2;
import com.yeshi.fanli.entity.order.CommonOrder;
import com.yeshi.fanli.exception.HongBaoException;
 
public interface HongBaoV2Service {
 
    public int insert(HongBaoV2 record);
 
    public int insertSelective(HongBaoV2 record);
 
    public int updateByPrimaryKey(HongBaoV2 record);
 
    public int updateByPrimaryKeySelective(HongBaoV2 record);
 
    public int deleteByPrimaryKey(Long id);
 
    public HongBaoV2 selectByPrimaryKey(Long id);
 
    /**
     * 添加红包
     * 
     * @param commonOrder
     *            订单对象
     * @param type
     *            类型
     * @throws HongBaoException
     */
    public void addHongBao(CommonOrder commonOrder, int type) throws HongBaoException;
 
    /**
     * 将老版本的红包对象转为新版本的对象
     * 
     * @param hb
     */
    public void convert(HongBao hb);
 
    /**
     * 奖金列表(1.4.9之前的版本)
     * 
     * @param uid
     * @param page
     * @param pageSize
     * @return
     */
    public List<HongBaoDTO> listJiangJinByUid(Long uid, int page, int pageSize);
 
    /**
     * 奖金数量(1.4.9之前的版本)
     * 
     * @param uid
     * @return
     */
    public long countJiangJinByUid(Long uid);
 
    /**
     * 总共的提成金额
     * 
     * @param uid
     * @return
     */
 
    BigDecimal getTotalTiChengMoney(Long uid);
 
    /**
     * 获取总的提成笔数
     * 
     * @param uid
     * @return
     */
    int getTotalTiChengCount(Long uid);
 
    /**
     * 获取还未到账的提成金额
     * 
     * @param uid
     * @return
     */
    BigDecimal getUnGetTiChengMoney(Long uid);
    
    
    /**
     * 获取总共返利金额
     * 
     * @param uid
     * @return
     */
    BigDecimal getTotalFanLiMoney(Long uid);
 
    /**
     * 获取还未到账的金额
     * 
     * @param uid
     * @return
     */
    BigDecimal getUnRecievedFanLiMoney(Long uid);
 
}