admin
2020-05-14 235921d820f29b04b1e82f6a6f0d4a1957a900ef
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
package com.yeshi.fanli.service.inter.money;
 
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
 
import com.yeshi.fanli.entity.money.TeamEincomeRecord;
import com.yeshi.fanli.exception.ParamsException;
import com.yeshi.fanli.exception.money.TeamEincomeRecordException;
 
/**
 * 团队收益记录服务
 * @author Administrator
 *
 */
public interface TeamEincomeRecordService {
 
    /**
     * 添加用户手团队收益记录
     * @Title: addTeamEincomeRecord
     * @Description: 
     * @param record
     * @throws ParamsException 
     * void 返回类型
     * @throws
     */
    public void addTeamEincomeRecord(TeamEincomeRecord record) throws TeamEincomeRecordException, ParamsException;
 
    public List<TeamEincomeRecord> listCanRecieveRecord(Date preRecieveTime, Long uid, List<Integer> typeList);
 
    /**
     * 获取可以结算的用户ID
     * @Title: listCanRecieveUid
     * @Description: 
     * @param preRecieveTime
     * @param typeList
     * @return 
     * List<Long> 返回类型
     * @throws
     */
    public List<Long> listCanRecieveUid(Date preRecieveTime, List<Integer> typeList,int page,int pageSize);
    
    public long countCanRecieveUid(Date preRecieveTime, List<Integer> typeList);
    
 
    public TeamEincomeRecord selectByPrimaryKeyForUpdate(Long id);
 
    public void setRecieved(Long id);
 
    /**
     * 获取预估分红
     * @Title: getEstimateDividents
     * @Description: 
     * @param preGetTime
     * @return 
     * BigDecimal 返回类型
     * @throws
     */
    public BigDecimal getEstimateDividents(Date preGetTime, Long uid);
 
    /**
     * 统计已到账金额
     * @param uid
     * @param type
     * @return
     */
    public BigDecimal sumRecieveByType(Long uid, int type);
 
}