From 3824cbcaec6e6c67418d5280a53e9c2fedeef6f9 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 11 七月 2019 16:34:13 +0800 Subject: [PATCH] 订单bug,分享爆款自购修改 --- fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserInfoService.java | 90 +++++++++++++++++++++++++++++++++++++++------ 1 files changed, 78 insertions(+), 12 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserInfoService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserInfoService.java index 9893872..cd449ce 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserInfoService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserInfoService.java @@ -1,14 +1,17 @@ package com.yeshi.fanli.service.inter.user; +import java.io.IOException; import java.math.BigDecimal; -import java.net.ConnectException; import java.util.Date; import java.util.List; import java.util.Map; -import com.yeshi.fanli.entity.admin.UserInfoAdmin; +import org.springframework.web.multipart.MultipartFile; + import com.yeshi.fanli.entity.bus.user.InviteUser; import com.yeshi.fanli.entity.bus.user.UserInfo; +import com.yeshi.fanli.exception.user.UserInfoException; +import com.yeshi.fanli.vo.user.UserInfoVO; public interface UserInfoService { /** @@ -95,10 +98,9 @@ public BigDecimal getNewPeopleHB(Long id); - public BigDecimal getMyHB(Long id); - /** - * 鏌ヨ鐢ㄦ埛淇℃伅 -- 鐢ㄦ埛绠$悊鍒楄〃 + * 鏌ヨ鐢ㄦ埛淇℃伅 -- 鐢ㄦ埛绠$悊鍒楄〃 + * * @param start * @param count * @param key @@ -109,17 +111,17 @@ * @param orderMode * @return */ - public List<UserInfoAdmin> query(long start, int count, String key, Integer userType, - 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); - public long queryCount(String key, Integer userType, Integer days, String startTime, - String endTime); + public long queryCount(Integer userState, String key, Integer keyType, String userRank, Integer days, + String startTime, String endTime); public double querySumMoney(String key, Integer userType, Integer days, String startTime, String endTime); - /** * 閫夋嫨鎬ф洿鏂� + * * @param record * @return */ @@ -127,6 +129,7 @@ /** * 鍏跺己鍒跺垹闄ょ粦瀹氫俊鎭� + * * @param user * @param type */ @@ -134,18 +137,81 @@ /** * 鏍规嵁id鏌ヨ鐢ㄦ埛淇℃伅 + * * @param id * @return */ public UserInfo selectByPKey(Long id); - /** - * 瓒呰繃 daysNum 澶╂湭鐧婚檰鐨勭敤鎴� + * 瓒呰繃 daysNum 澶╂湭鐧婚檰鐨勭敤鎴� + * * @param daysNum * @param list * @return */ public List<Long> longTimeNoLogin(int daysNum, List<Long> list); + /** + * 鏍规嵁鐢佃瘽鍙风爜銆侀個璇风爜鑾峰彇閭�璇风敤鎴� + * + * @param phone + * @param inviteCode + * @return + */ + public UserInfo getInfoByPhoneOrInviteCode(String phone, String inviteCode); + + /** + * 鏍规嵁鐢佃瘽鍙风爜 鑾峰彇鏈夋晥鐢ㄦ埛 + * + * @param phone + * @return + */ + public UserInfo getEffectiveUserInfoByPhone(String phone); + + /** + * 鑾峰彇鐢ㄦ埛淇℃伅 + * + * @param uid + * @return + * @throws UserInfoException + */ + public UserInfo getUserInfo(Long uid) throws UserInfoException; + + /** + * 鏍规嵁寰俊鑾峰彇鏈夋晥鐢ㄦ埛 + * + * @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; + + } -- Gitblit v1.8.0