admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserInfoService.java
@@ -1,11 +1,11 @@
package com.yeshi.fanli.service.inter.user;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.yeshi.fanli.entity.bus.user.InviteUser;
import org.springframework.web.multipart.MultipartFile;
import com.yeshi.fanli.entity.bus.user.UserInfo;
import com.yeshi.fanli.exception.user.UserInfoException;
import com.yeshi.fanli.vo.user.UserInfoVO;
@@ -53,39 +53,10 @@
   public long getUserCount();
   public List<UserInfo> getUserList(int index, String key);
   public int getUserCount(String key);
   public Map<String, Integer> getnewUserByDate(int days, Date date);
   public Map<String, Integer> getnewUserByMonth(int months, Date date);
   public Map<String, Integer> getUserTotalByDate(int days, Date date);
   public Map<String, Integer> getUserTotalByMonth(int months, Date date);
   public List<UserInfo> getUserListByUid(long uid);
   public double getFreezeAssets(double min);
   public double getCanAssets(double min);
   public long getRandomShamUser();
   public boolean inviteWXUserInfo(String code, UserInfo inviter);
   public void unBindUserInfo(UserInfo find, int type);
   public void addMoney(UserInfo userInfo, BigDecimal money);
   public List<UserInfo> findFriends(long id, int type);
   public List<InviteUser> getFriendsList(long id, int type, int page, int pageSize);
   public long getFriendsListCount(long id, int type);
   public int findFriendsCount(long id, int type);
   public boolean createUser(UserInfo form, String appid);
@@ -95,10 +66,9 @@
   public BigDecimal getNewPeopleHB(Long id);
   public BigDecimal getMyHB(Long id);
   /**
    * 查询用户信息  -- 用户管理列表
    * 查询用户信息 -- 用户管理列表
    *
    * @param start
    * @param count
    * @param key
@@ -109,17 +79,18 @@
    * @param orderMode
    * @return
    */
   public List<UserInfoVO> query(long start, int count, Integer userState, String key, Integer keyType, String userRank,
         Integer days, String startTime, String endTime,Integer orderField, Integer orderMode);
   public List<UserInfoVO> query(long start, int count, Integer userState, String key, Integer keyType,
         String userRank, Integer days, String startTime, String endTime, Integer orderField, Integer orderMode,
         Integer userType, String level, Integer activeCode);
   public long queryCount(Integer userState, String key, Integer keyType, String userRank, Integer days, String startTime,
         String endTime);
   public long queryCount(Integer userState, String key, Integer keyType, String userRank, Integer days,
         String startTime, String endTime, Integer userType, String level, Integer activeCode);
   public double querySumMoney(String key, Integer userType, Integer days, String startTime, String endTime);
   /**
    * 选择性更新
    *
    * @param record
    * @return
    */
@@ -127,6 +98,7 @@
   /**
    * 其强制删除绑定信息
    *
    * @param user
    * @param type
    */
@@ -134,14 +106,15 @@
   /**
    * 根据id查询用户信息
    *
    * @param id
    * @return
    */
   public UserInfo selectByPKey(Long id);
   /**
    * 超过 daysNum  天未登陆的用户
    * 超过 daysNum 天未登陆的用户
    *
    * @param daysNum
    * @param list
    * @return
@@ -149,15 +122,16 @@
   public List<Long> longTimeNoLogin(int daysNum, List<Long> list);
   /**
    * 根据电话号码、邀请码获取邀请用户
    * @param phone
    * 根据邀请码获取邀请用户
    *
    * @param inviteCode
    * @return
    */
   public UserInfo getInfoByPhoneOrInviteCode(String phone, String inviteCode);
   public UserInfo getUserInfoByInviteCode(String inviteCode);
   /**
    * 根据电话号码 获取有效用户
    *
    * @param phone
    * @return
    */
@@ -165,6 +139,7 @@
   /**
    * 获取用户信息
    *
    * @param uid
    * @return
    * @throws UserInfoException
@@ -173,9 +148,84 @@
   /**
    * 根据微信获取有效用户
    *
    * @param unionId
    * @return
    */
   public UserInfo getEffectiveUserInfoByWXUnionId(String unionId);
   /**
    * 获取用户余额
    *
    * @param uid
    * @return
    */
   public BigDecimal getBalance(Long uid);
   /**
    * 更换头像
    *
    * @param file
    * @param uid
    * @throws UserInfoException
    * @throws IOException
    */
   public void uploadPortrait(MultipartFile file, Long uid) throws UserInfoException, IOException;
   /**
    * 保存头像
    *
    * @param nickName
    * @param uid
    * @throws UserInfoException
    */
   public void saveUserInfo(String nickName, Long uid) throws UserInfoException;
   /**
    * 获取可提现用户列表
    *
    * @param page
    * @param count
    */
   public List<UserInfo> getAutoExtractUser(int page, int count, BigDecimal minSurplus, String beganDate,
         String endDate);
   /**
    * 根据类型获取
    *
    * @param type
    * @param page
    * @param count
    * @return
    */
   public List<UserInfo> listByType(int type, int page, int count);
   /**
    * 根据类型计数
    *
    * @param type
    * @return
    */
   public long countByType(int type);
   /**
    * 双12预售开启时,开启对休眠老用户的唤醒工作,在2019.1.1到2019.6.18期间产生过订单,并且2019.6.18号后未再活跃,
    * 并且账户余额大于1元,并且绑定了微信的用户有2468人
    *
    * @param start
    * @param count
    * @return
    */
   public List<UserInfo> getAutoExtractUserTo1212(int start, int count);
   /**
    * 根据用户ID检索
    *
    * @param uid
    * @return
    */
   public UserInfo selectAvailableByPrimaryKey(Long uid);
}