admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
package com.yeshi.fanli.service.inter.user.invite;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.user.ThreeSaleDetail;
import com.yeshi.fanli.exception.ParamsException;
 
public interface ThreeSaleDetailService {
 
    /**
     * 添加邀请详情
     * @Title: addThreeSaleDetail
     * @Description: 
     * @param detail
     * @throws ParamsException 
     * void 返回类型
     * @throws
     */
    public void addThreeSaleDetail(ThreeSaleDetail detail) throws ParamsException;
    
    
    /**
     * 通过邀请用户ID增加记录
     * @Title: addByWorkerUid
     * @Description: 
     * @param workerUid 
     * void 返回类型
     * @throws
     */
    public void addByWorkerUid(Long workerUid);
 
    /**
     * 按层级查询
     * @Title: listByBossUidAndLevel
     * @Description: 
     * @param bossUid
     * @param level
     * @param page
     * @param pageSize
     * @return 
     * List<ThreeSaleDetail> 返回类型
     * @throws
     */
    public List<ThreeSaleDetail> listByBossUidAndLevel(Long bossUid, int level, int page, int pageSize);
 
    public long countByBossUidAndLevel(Long bossUid, int level);
 
    /**
     * 按最小层级查询
     * @Title: listByBossUidAndMinLevel
     * @Description: 
     * @param bossUid
     * @param minLevel
     * @param page
     * @param pageSize
     * @return 
     * List<ThreeSaleDetail> 返回类型
     * @throws
     */
 
    public List<ThreeSaleDetail> listByBossUidAndMinLevel(Long bossUid, int minLevel, int page, int pageSize);
 
    public long countByBossUidAndMinLevel(Long bossUid, int minLevel);
    
    
    /**
     * 根据下级ID查询
     * @Title: listByWorkerUid
     * @Description: 
     * @param uid
     * @return 
     * List<ThreeSaleDetail> 返回类型
     * @throws
     */
    public List<ThreeSaleDetail> listByWorkerUid(Long uid);
 
    
    /**
     * 查询关系
     * @param bossUid
     * @param workerUid
     * @return
     */
    ThreeSaleDetail getByBossUidAndWorkerUid(Long bossUid, Long workerUid);
 
}