店铺会员新增86查询判断

This commit is contained in:
liyj 2026-01-15 10:38:53 +08:00
parent fa2b179c58
commit eb7ca3cdaa

View File

@ -52,7 +52,11 @@ public class ShopStoreMemberServiceImpl implements ShopStoreMemberService {
List<ShopStoreMember> shopStoreMembers= shopStoreMemberMapper.selectList(params); List<ShopStoreMember> shopStoreMembers= shopStoreMemberMapper.selectList(params);
if(shopStoreMembers.isEmpty()){ if(shopStoreMembers.isEmpty()){
QueryWrapper<AccountUserBindConnect> queryWrapper = new QueryWrapper<>(); QueryWrapper<AccountUserBindConnect> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("bind_id", "+86"+updateAccountUserInfo.getUser_mobile()); String bind_id= updateAccountUserInfo.getUser_mobile();
if(!bind_id.contains("+86")){
bind_id="+86"+ updateAccountUserInfo.getUser_mobile();
}
queryWrapper.eq("bind_id", bind_id);
queryWrapper.eq("bind_type", BindCode.MOBILE) queryWrapper.eq("bind_type", BindCode.MOBILE)
.eq("user_type", 0) .eq("user_type", 0)
.eq("user_id", user_id) .eq("user_id", user_id)