1.消息推送fix
This commit is contained in:
parent
7f8a658143
commit
538fc8f91b
|
|
@ -65,6 +65,17 @@ public class LoginService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addShopId(String openId, String shopId, Integer type, String nickName, String avatar) {
|
public void addShopId(String openId, String shopId, Integer type, String nickName, String avatar) {
|
||||||
|
TbUserShopMsg shopMsg = tbUserShopMsgMapper.selectByShopIdAndOpenId(Integer.valueOf(shopId), openId);
|
||||||
|
if (Objects.isNull(shopMsg)) {
|
||||||
|
shopMsg = new TbUserShopMsg();
|
||||||
|
shopMsg.setShopId(Integer.valueOf(shopId));
|
||||||
|
shopMsg.setOpenId(openId);
|
||||||
|
shopMsg.setCreateTime(new Date());
|
||||||
|
shopMsg.setStatus("1");
|
||||||
|
tbUserShopMsgMapper.insert(shopMsg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 为商家绑定openid
|
// 为商家绑定openid
|
||||||
TbShopOpenId tbShopOpenId = shopOpenIdMapper.countByOpenId(openId, Integer.valueOf(shopId), type);
|
TbShopOpenId tbShopOpenId = shopOpenIdMapper.countByOpenId(openId, Integer.valueOf(shopId), type);
|
||||||
if (tbShopOpenId == null) {
|
if (tbShopOpenId == null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue