yujian
2020-06-08 7912a94e5de72b628bde39b16e6c7b21172910eb
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
package com.yeshi.fanli.service.inter.user.integral;
 
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
 
import com.yeshi.fanli.entity.integral.IntegralDetail;
import com.yeshi.fanli.vo.integral.IntegralDetailVO;
 
public interface IntegralDetailService {
 
    /**
     * 积分明细
     * @param uid
     * @param detailId
     * @param maxTime
     * @return
     */
    public List<IntegralDetailVO> listDetailForClient(Long uid, Long detailId, Date maxTime, Integer type);
 
    /**
     * 明细统计
     * @param uid
     * @param detailId
     * @param maxTime
     * @return
     */
    public long countDetailForClient(Long uid, Long detailId, Date maxTime, Integer type);
 
    /**
     * 
     * @param record
     */
    public void insertSelective(IntegralDetail record);
 
    
    /**
     * 唯一值查询
     * @param uniqueKey
     * @return
     */
    public IntegralDetail getDetailByUniqueKey(String uniqueKey);
 
    /**
     * 查询历史到账金币
     * @param uid
     * @return
     */
    public BigDecimal getCumulativeMoney(Long uid);
 
    /**
     * 统计当日新增
     * @param preDay
     * @return
     */
    public Long countNewAddByDate(String preDay);
 
    /**
     * 列表查询
     * @param start
     * @param count
     * @param key
     * @return
     */
    public List<IntegralDetail> listQuery(long start, int count, String key);
 
    
    public long countQuery(String key);
 
    /**
     * 统计用户消耗金币数量
     * @param uid
     * @return
     */
    public long sumUseGoldCoin(Long uid);
 
}