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
package org.fanli.facade.user.service.money;
 
import java.util.List;
import java.util.Map;
 
import org.fanli.facade.user.dto.money.AlipayTransferResultInfo;
import org.fanli.facade.user.entity.money.extract.Extract;
import org.fanli.facade.user.exception.money.ExtractException;
 
import com.yeshi.fanli.base.entity.admin.AdminUser;
import com.yeshi.fanli.base.exception.NotExistObjectException;
import com.yeshi.fanli.base.exception.ObjectStateException;
 
public interface ExtractService {
 
    public List<Extract> getExtractInfoByUid(long uid);
 
    /**
     * 提现申请
     * 
     * @param extract
     * @return 返回如果为null,则提现申请提交成功。如果为1�?,已超过当日提现次数或提现金额!如果�?,提现金额大于我的红包!
     */
    public Integer addExtract(Extract extract);
 
    public List<Extract> getExtractList(int i);
 
    public int getCount();
 
    /**
     * 通过
     * 
     * @param id
     * @return
     */
    public Integer passExtract(long id, AdminUser admin);
 
    /**
     * 拒绝
     * 
     * @param id
     * @param reason
     * @throws ObjectStateException
     * @throws NotExistObjectException
     */
    public void rejectExtract(long id, String reason, long extractTime, AdminUser adminUser)
            throws ObjectStateException, NotExistObjectException;
 
    /**
     * 
     * 方法说明: 根据提现记录id获取用户uid
     * 
     * @author mawurui createTime 2018年3月14日 下午3:43:22
     * @param id
     * @return
     */
    public Extract getExtractById(long id);
 
    /**
     * 用户提现校验
     * 
     * @param uid
     * @return
     */
    public void checkExtract(String uid) throws ExtractException ;
 
    public Extract selectByPrimaryKey(Long id);
 
    /**
     * 查询当前客服待处理
     * 
     * @return
     */
    public Extract getMyTaskInfo(Long adminId);
 
    public List<Map<String, Object>> getFinishRecord(int pageIndex, int pageSize, String key, String startTime,
            String endTime);
 
    /*
     * 更新提现记录
     */
    public int updateByPrimaryKeySelective(Extract record);
 
    public Extract getNewTaskInfo();
 
    /**
     * 处理提现结果
     * 
     * @param info
     */
    public void processExtractResult(AlipayTransferResultInfo info);
    
    
    public void testExtractSuccess(Long id);
 
    /**
     * 统计今日提现
     * @param uid
     * @return
     */
    public double countTodayMoney(Long uid);
 
}