更换手机号时 会员关系 解除
This commit is contained in:
parent
4a4c5623aa
commit
94f769e091
|
|
@ -113,6 +113,10 @@ public class PushToClientChannelHandlerAdapter extends NettyChannelHandlerAdapte
|
||||||
this.shopId=shopId;
|
this.shopId=shopId;
|
||||||
if (webSocketMap.containsKey(shopId)) {
|
if (webSocketMap.containsKey(shopId)) {
|
||||||
ConcurrentHashMap<String, ChannelHandlerContext> clientSocketMap = webSocketMap.get(shopId);
|
ConcurrentHashMap<String, ChannelHandlerContext> clientSocketMap = webSocketMap.get(shopId);
|
||||||
|
ChannelHandlerContext channelHandlerContext = clientSocketMap.get(clientId);
|
||||||
|
if (channelHandlerContext != null) {
|
||||||
|
channelHandlerContext.close();
|
||||||
|
}
|
||||||
clientSocketMap.put(clientId, ctx);
|
clientSocketMap.put(clientId, ctx);
|
||||||
} else {
|
} else {
|
||||||
ConcurrentHashMap<String, ChannelHandlerContext> clientSocketMap = new ConcurrentHashMap<>();
|
ConcurrentHashMap<String, ChannelHandlerContext> clientSocketMap = new ConcurrentHashMap<>();
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,8 @@ import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.math.RoundingMode;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.ExecutionException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author lyf
|
* @author lyf
|
||||||
|
|
|
||||||
|
|
@ -116,16 +116,10 @@ public class LoginService {
|
||||||
tbUserInfoMapper.updateByPrimaryKeySelective(userInfo);
|
tbUserInfoMapper.updateByPrimaryKeySelective(userInfo);
|
||||||
List<TbShopUser> tbShopUsers = tbShopUserMapper.selectAllByUserId(userInfo.getId().toString());
|
List<TbShopUser> tbShopUsers = tbShopUserMapper.selectAllByUserId(userInfo.getId().toString());
|
||||||
for (TbShopUser tbShopUser : tbShopUsers) {
|
for (TbShopUser tbShopUser : tbShopUsers) {
|
||||||
tbShopUser.setUserId("");
|
tbShopUser.setUserId(null);
|
||||||
tbShopUser.setUpdatedAt(System.currentTimeMillis());
|
tbShopUser.setUpdatedAt(System.currentTimeMillis());
|
||||||
tbShopUserMapper.upUserBYId(tbShopUser);
|
tbShopUserMapper.upUserBYId(tbShopUser);
|
||||||
}
|
}
|
||||||
List<TbShopUser> tbShopUsers1 = tbShopUserMapper.selectByPhone(telephone);
|
|
||||||
for (TbShopUser tbShopUser : tbShopUsers1) {
|
|
||||||
tbShopUser.setUpdatedAt(System.currentTimeMillis());
|
|
||||||
tbShopUser.setUserId(userInfo.getId().toString());
|
|
||||||
tbShopUserMapper.upUserBYId(tbShopUser);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue