admin
2019-11-13 772c048171cb9b3fdc7e05b711d28458ef3e7543
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
package com.yeshi.fanli.dao.mybatis.redpack;
 
import java.math.BigDecimal;
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.redpack.RedPackExchange;
 
public interface RedPackExchangeMapper extends BaseMapper<RedPackExchange> {
 
    /**
     * 查询提现信息
     * @param start
     * @param count
     * @param key
     * @param state
     * @return
     */
    List<RedPackExchange> query(@Param("start")Integer start, @Param("count") Integer count, 
            @Param("key") String key, @Param("state") Integer state);
    
    Long count(@Param("key") String key, @Param("state") Integer state);
    
    
    /**
     * 统计各个状态
     * @param uid
     * @return
     */
    Long countByUidAndState(@Param("uid") long uid, @Param("state") Integer state);
    
    
    /**
     * 统计状态金额
     * @param uid
     * @return
     */
    BigDecimal countMoneyByUidAndState(@Param("uid") Long uid, @Param("state") Integer state);
    
    /**
     * 统计当日提现次数
     * @param uid
     * @return
     */
    long countTodayByUid(@Param("uid") Long uid);
        
}