admin
2020-05-12 522315ae42936583042fc08aabda7e3c9e7a7b5d
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
package com.yeshi.fanli.dao.mybatis;
 
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.entity.bus.user.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);
 
    /**
     * 获取补偿金额
     * 
     * @param uid
     * @return
     */
    BigDecimal computeCompensateByUid(Long uid);
 
    /**
     * 统计今日申请提现的金额(根据用户ID)
     * 
     * @param uid
     * @return
     */
    /**
     * 统计当日提现
     * @param uid
     * @param day
     * @return
     */
    BigDecimal sumToadyApplyByUid(@Param("uid") Long uid, @Param("day") String day);
    
    /**
     * 根据用户ID与状态统计资金
     * @param uid
     * @param stateList
     * @return
     */
    BigDecimal sumMoneyByUidAndState(@Param("uid") Long uid,@Param("stateList")List<Integer> stateList);
    
    
    /**
     * 查询提现成功记录
     * @param start
     * @param count
     * @param uid
     * @return
     */
    List<Extract> getExtractSucceedRecord(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid);
 
    
    Long countExtractSucceedRecord(@Param("uid") Long uid);
 
}