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.entity.admin.InviteGetMoney; import com.yeshi.fanli.entity.bus.user.UserRankings; import com.yeshi.fanli.exception.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 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 selectByNickName(String nickName) throws UserRankingsException; /** * 根据显示ID查询 * @param nickName * @return * @throws UserRankingsException */ public List selectByShowId(String showId) throws UserRankingsException; /** * 查询所有列表 * @param pageIndex * @param pageSize * @param key * @param sort * @return * @throws UserRankingsException */ public List 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 idList, Integer type, Double reward, Double startReward, Double endReward) throws Exception; /** * 批量修改状态 * @param idList * @param type * @param state * @throws Exception */ public void setStateBatch(List 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 listQueryByIds(List ids) throws UserRankingsException; /** * 批量选择更新 * @param list * @return * @throws UserRankingsException */ public int updateBatchSelective(List list) throws UserRankingsException; /** * 前端排行榜 * @param start * @param count * @return */ public List getRank(long start, int count); /** * * @throws UserRankingsException */ public void updateClearTradeState() throws UserRankingsException; }