admin
2019-02-21 7e57a20c0ccde504c2f2b2b9fd4a9fd7c89d5e92
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
package org.fanli.service.user.dao.money;
 
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
 
import org.apache.ibatis.annotations.Param;
import org.fanli.facade.user.entity.money.extract.Extract;
 
public interface ExtractMapper {
    int deleteByPrimaryKey(Long configId);
 
    int insert(Extract record);
 
    int insertSelective(Extract record);
 
    Extract selectByPrimaryKey(Long configId);
 
    Extract selectByPrimaryKeyForUpdate(Long configId);
 
    int updateByPrimaryKeySelective(Extract record);
 
    int updateByPrimaryKey(Extract record);
 
    List<Integer> checkExtract(String uid);
 
    Map<String, Object> getTodayCount();
 
    /**
     * 统计今日提现成功金额
     */
    BigDecimal getTodayTotalSuccessMoney();
 
    /**
     * 统计成功的次数、总金额
     * 
     * @return
     */
    Map<String, Object> countTotalSuccess();
 
    /**
     * 查询当前客服待处理
     * 
     * @param start
     * @param count
     * @param title
     * @param state
     * @return
     */
    Extract getMyTaskInfo(@Param("adminId") Long adminId);
 
    /**
     * 查询当前客服新处理任务
     * 
     * @param start
     * @param count
     * @param title
     * @param state
     * @return
     */
    Extract getNewTaskInfo();
 
    /**
     * 查询当前客服待处理
     * 
     * @param start
     * @param count
     * @param title
     * @param state
     * @return
     */
    Map<String, Object> countRecordsByUid(@Param("uid") Long uid);
 
    double countSuccessMoneysByUid(@Param("uid") Long uid);
 
    long countSuccessByUid(@Param("uid") Long uid);
 
    List<Map<String, Object>> getFinishRecord(@Param("start") long start, @Param("count") int count,
            @Param("key") String key, @Param("startTime") String startTime, @Param("endTime") String endTime);
 
    /**
     * 统计今日提现申请次数
     * 
     * @return
     */
    int countTodayApply();
 
    /**
     * 统计今日已处理提现数量
     * 
     * @return
     */
    int countTodayComplete();
 
    double countTodayMoney(@Param("uid") Long uid);
 
    /**
     * 根据用户ID和state查询
     * @param uid
     * @param stateList
     * @return
     */
    List<Extract> listByUidAndState(@Param("uid") Long uid, @Param("stateList") List<Integer> stateList);
    
    /**
     * 获取所有的提现列表
     * @param start
     * @param count
     * @return
     */
    List<Extract> listAll(@Param("start") long start,@Param("count") int count);
    
    /**
     * 提现的数量
     * @return
     */
    long countAll();
 
}