| | |
| | | import com.yeshi.fanli.entity.bus.user.InviteUser;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | | import com.yeshi.fanli.entity.bus.user.WeiXinUser;
|
| | | import com.yeshi.fanli.entity.system.System;
|
| | | import com.yeshi.fanli.entity.system.BusinessSystem;
|
| | | import com.yeshi.fanli.exception.ThreeSaleException;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | | import com.yeshi.fanli.service.inter.count.HongBaoV2CountService;
|
| | | import com.yeshi.fanli.service.inter.hongbao.ThreeSaleSerivce;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoService;
|
| | | import com.yeshi.fanli.service.inter.user.UserRankService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.util.ThreadUtil;
|
| | |
| | |
|
| | | @Resource
|
| | | private HongBaoV2CountService hongBaoV2CountService;
|
| | | |
| | | @Resource
|
| | | private UserRankService userRankService;
|
| | | |
| | |
|
| | | public UserInfo getUserByLoginTypeAndOpenId(int loginType, String openid, String appid) {
|
| | | List<UserInfo> list = null;
|
| | |
| | | find.setLoginType(Constant.WEIXIN);
|
| | | find.setRank(0);
|
| | | find.setWxOpenId(weiXinUser.getOpenid());
|
| | | System system = new System(Constant.FANLI);
|
| | | BusinessSystem system = new BusinessSystem(Constant.FANLI);
|
| | | system.setPlatform(1);
|
| | | find.setSystem(system);
|
| | | }
|
| | |
| | | if (userList == null || userList.size() == 0) {
|
| | | return null;
|
| | | }
|
| | |
|
| | | |
| | | for (UserInfoVO userInfoVO : userList) {
|
| | | // 数据加工处理
|
| | | convertUserInfoVOData(userInfoVO);
|
| | |
| | | }
|
| | |
|
| | | public void convertUserInfoVOData(UserInfoVO userInfoVO) {
|
| | | String f_alipayAccount = userInfoVO.getF_alipayAccount();
|
| | | |
| | | String rankName = userInfoVO.getRankName();
|
| | | if (rankName == null || rankName.trim().length() == 0) {
|
| | | userInfoVO.setRankName("青铜");
|
| | | userInfoVO.setRankPicture("http://img.flqapp.com/resource/rank/rank_picture_new_1.png");
|
| | | }
|
| | | |
| | | String f_alipayAccount = userInfoVO.getAlipayAccountInvalid();
|
| | | if (f_alipayAccount != null && f_alipayAccount.trim().length() > 0) {
|
| | | userInfoVO.setAlipayAccountState(1);
|
| | | }
|
| | |
|
| | | String f_phone = userInfoVO.getF_phone();
|
| | | String f_phone = userInfoVO.getPhoneInvalid();
|
| | | if (f_phone != null && f_phone.trim().length() > 0) {
|
| | | userInfoVO.setPhoneState(1);
|
| | | }
|
| | |
|
| | | String f_taobaoUid = userInfoVO.getF_taobaoUid();
|
| | | String f_taobaoUid = userInfoVO.getTaobaoUidInvalid();
|
| | | if (f_taobaoUid != null && f_taobaoUid.trim().length() > 0) {
|
| | | userInfoVO.setTaobaoUidState(1);
|
| | | }
|
| | |
|
| | | String f_wxUnionId = userInfoVO.getF_wxUnionId();
|
| | | String f_wxUnionId = userInfoVO.getWxUnionIdInvalid();
|
| | | if (f_wxUnionId != null && f_wxUnionId.trim().length() > 0) {
|
| | | userInfoVO.setWxUnionIdState(1);
|
| | | }
|
| | |
| | | userInfoVO.setLastLoginTime(null);
|
| | | }
|
| | |
|
| | | /* 显示用户微信 淘宝 老版本存在
|
| | | * String wxUnionId = userInfoVO.getWxUnionId(); if (wxUnionId == null ||
|
| | | * wxUnionId.trim().length() == 0) { userInfoVO.setWxName(null); }
|
| | | * |
| | | * String taoBaoUid = userInfoVO.getTaoBaoUid(); if (taoBaoUid == null ||
|
| | | * taoBaoUid.trim().length() == 0) { userInfoVO.setTbName(null); }
|
| | | */
|
| | | |
| | |
|
| | | Long uid = userInfoVO.getId();
|
| | | |
| | |
|
| | | /* 绑定收款账号信息 */
|
| | | List<BindingAccount> account = bindingAccountMapper.selectByUid(uid);
|
| | |
| | |
|
| | | // 最近一次下单时间
|
| | | Date lastOrderTime = hongBaoV2CountService.getLastHongBaoTime(uid);
|
| | | if (lastOrderTime != null) {
|
| | | if (lastOrderTime != null && lastOrderTime.getTime() != 0) {
|
| | | userInfoVO.setLastOrderTime(lastOrderTime.getTime());
|
| | | }
|
| | |
|