| | |
| | |
|
| | | @Resource
|
| | | private ForbiddenUserIdentifyCodeService forbiddenUserIdentifyCodeService;
|
| | | |
| | |
|
| | | @Resource
|
| | | private UserAccountBindingHistoryService userAccountBindingHistoryService;
|
| | |
|
| | |
| | | taoBaoInfo.setRelationId(relationId);
|
| | | taoBaoInfo.setRelationValid(valid);
|
| | | taoBaoInfo.setRelationUpdateTime(new Date());
|
| | | |
| | |
|
| | | userExtraTaoBaoInfoMapper.clearUid(uid);
|
| | |
|
| | | List<UserExtraTaoBaoInfo> list = userExtraTaoBaoInfoMapper.listByTaoBaoUid(taoBaoUid);
|
| | |
| | | taoBaoInfo.setUpdateTime(new Date());
|
| | | userExtraTaoBaoInfoMapper.updateByPrimaryKeySelective(taoBaoInfo);
|
| | |
|
| | | // // 清空多余已绑定数据
|
| | | // if (list.size() > 1) {
|
| | | // for (int i = 1; i < list.size(); i++) {
|
| | | // clearTaoBaoInfo(list.get(i));
|
| | | // }
|
| | | // }
|
| | | // // 清空多余已绑定数据
|
| | | // if (list.size() > 1) {
|
| | | // for (int i = 1; i < list.size(); i++) {
|
| | | // clearTaoBaoInfo(list.get(i));
|
| | | // }
|
| | | // }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | taoBaoInfo.setSpecialValid(valid);
|
| | | taoBaoInfo.setSpecialId(specialId);
|
| | | taoBaoInfo.setSpecialUpdateTime(new Date());
|
| | | |
| | |
|
| | | userExtraTaoBaoInfoMapper.clearUid(uid);
|
| | |
|
| | | List<UserExtraTaoBaoInfo> list = userExtraTaoBaoInfoMapper.listByTaoBaoUid(taoBaoUid);
|
| | |
| | |
|
| | | // 判断之前用户是否绑定过
|
| | | UserExtraTaoBaoInfo info = userExtraTaoBaoInfoMapper.selectByUid(uid);
|
| | | |
| | | //清除之前的用户ID
|
| | |
|
| | | // 清除之前的用户ID
|
| | | userExtraTaoBaoInfoMapper.clearUid(uid);
|
| | |
|
| | | if (list == null || list.size() == 0) {
|
| | |
| | | history.setUid(uid);
|
| | |
|
| | | // 之前已经绑定电话号码
|
| | | if (info!=null)
|
| | | if (info != null)
|
| | | history.setFirst(false);
|
| | | else
|
| | | history.setFirst(true);
|
| | |
| | | return userExtraTaoBaoInfoMapper.selectBySpecialIdWithUidNotNull(specialId);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getRelationIdByUid(Long uid) {
|
| | | UserExtraTaoBaoInfo extraInfo = getByUid(uid);
|
| | | String relationId = null;
|
| | | if (extraInfo != null && extraInfo.getRelationId() != null && extraInfo.getRelationValid() != null
|
| | | && extraInfo.getRelationValid() == true)
|
| | | relationId = extraInfo.getRelationId();
|
| | | return relationId;
|
| | | }
|
| | |
|
| | | }
|