|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 当前用户已经与其他微信做过绑定,先解绑 |
|
|
// 当前用户已经与其他微信做过绑定,先解绑 |
|
|
UserAuthorize userAuthorizeTmp = userAuthorizeMapper.selectOne(Wrappers.<UserAuthorize>lambdaQuery() |
|
|
UserAuthorize userAuthorizeTmp = userAuthorizeMapper.selectOne(Wrappers.<UserAuthorize>lambdaQuery() |
|
|
.eq(UserAuthorize::getUserId, userId) |
|
|
|
|
|
|
|
|
.ne(UserAuthorize::getUserId, userId) |
|
|
|
|
|
.eq(UserAuthorize::getOpenId, openid) |
|
|
.eq(UserAuthorize::getMark, MarkEnum.VALID.getCode())); |
|
|
.eq(UserAuthorize::getMark, MarkEnum.VALID.getCode())); |
|
|
if (ObjectUtil.isNotEmpty(userAuthorizeTmp)) { |
|
|
if (ObjectUtil.isNotEmpty(userAuthorizeTmp)) { |
|
|
log.info("该用户已做绑定,先进行解绑, userId={},openid={}", userId, openid); |
|
|
log.info("该用户已做绑定,先进行解绑, userId={},openid={}", userId, openid); |