admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
package com.yeshi.fanli.service.inter.user;
 
import java.io.File;
import java.util.List;
 
import org.springframework.web.multipart.MultipartFile;
 
import com.yeshi.fanli.dto.money.InviteGetMoney;
import com.yeshi.fanli.entity.bus.user.UserRankings;
import com.yeshi.fanli.exception.user.UserRankingsException;
 
public interface UserRankingsService {
 
    /**
     * 插入对象
     * 
     * @param record
     * @return
     * @throws UserRankingsException
     */
    public int insertSelective(UserRankings record) throws UserRankingsException;
 
    /**
     * 更新当前对象所有数据
     * 
     * @param record
     * @return
     * @throws UserRankingsException
     */
    public int updateByPrimaryKey(UserRankings record) throws UserRankingsException;
 
    /**
     * 选择性更新内容——不为空则更新该字段
     * 
     * @param record
     * @return
     * @throws UserRankingsException
     */
    public int updateByPrimaryKeySelective(UserRankings record) throws UserRankingsException;
 
    /**
     * 根据id查找当前对象
     * 
     * @param id
     * @return
     * @throws UserRankingsException
     */
    public UserRankings selectByPrimaryKey(Long id) throws UserRankingsException;
 
    /**
     * 根据id删除
     * 
     * @param ids
     */
    public int deleteBatchById(Long id) throws UserRankingsException;
 
    /**
     * 根据id批量删除
     * @param arrayID
     * @return
     * @throws UserRankingsException
     */
    public int deleteBatchByPrimaryKey(List<Long> arrayID) throws UserRankingsException;
 
 
    /**
     * 上传图片
     * 
     * @param file
     * @param admin
     * @return
     * @throws UserRankingsException
     */
    public void uploadPicture(MultipartFile file, UserRankings UserRankings) throws Exception;
 
 
    /**
     * 保存信息并上传图片文件
     * @param record
     * @return
     * @throws UserRankingsException
     */
    public void insertAndUploadFile(UserRankings record, MultipartFile file) throws Exception;
 
    /**
     *  根据昵称查询
     * @param nickName
     * @return
     * @throws UserRankingsException
     */
    public List<UserRankings> selectByNickName(String nickName) throws UserRankingsException;
    
    /**
     *  根据显示ID查询
     * @param nickName
     * @return
     * @throws UserRankingsException
     */
    public List<UserRankings> selectByShowId(String showId) throws UserRankingsException;
 
 
    
    /**
     * 查询所有列表
     * @param pageIndex
     * @param pageSize
     * @param key
     * @param sort
     * @return
     * @throws UserRankingsException
     */
    public List<UserRankings> query(long start, int count, String key, Integer tradeState, Integer shareState, Integer sort) throws UserRankingsException;
 
    public long queryCount(String key, Integer tradeState, Integer shareState) throws UserRankingsException;
 
    /**
     * 删除图片
     * @param userRankings
     * @throws Exception
     */
    public void removePicture(UserRankings userRankings) throws Exception;
 
    /**
     * 批量设置奖金
     * @param idList
     * @param type 1自购奖金  2 分享奖金
     * @param reward
     * @param startReward
     * @param endReward
     * @throws Exception
     */
    public void setRewardtBatch(List<Long> idList, Integer type, Double reward, Double startReward, Double endReward) throws Exception;
 
    /**
     * 批量修改状态
     * @param idList
     * @param type
     * @param state
     * @throws Exception
     */
    public void setStateBatch(List<Long> idList, Integer type, Integer state) throws Exception;
 
    public void uploadFile(File file) throws Exception;
 
    public void updateShowID(File file) throws Exception;
 
    public void batchUpNickName(File file) throws Exception;
 
    /**
     * 根据id集合查询对应数据
     * @param ids
     * @return
     * @throws UserRankingsException
     */
    public List<UserRankings> listQueryByIds(List<Long> ids) throws UserRankingsException;
 
    
    /**
     * 批量选择更新
     * @param list
     * @return
     * @throws UserRankingsException
     */
    public int updateBatchSelective(List<UserRankings> list) throws UserRankingsException;
 
    /**
     * 前端排行榜
     * @param start
     * @param count
     * @return
     */
    public List<InviteGetMoney> getRank(long start, int count);
 
    /**
     * 
     * @throws UserRankingsException
     */
    public void updateClearTradeState() throws UserRankingsException;
 
 
}