yujian
2019-10-29 0612e7e4104f41c3f8b683073e08cdbb65dad44a
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
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);
        
}