|
|
@@ -46,6 +46,14 @@ public class MallCooUserInfoServiceImpl implements MallCooUserInfoService { |
|
|
return mallCooUserInfoMapper.selectById(id,finalTenantId); |
|
|
return mallCooUserInfoMapper.selectById(id,finalTenantId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public MallCooUserInfo getByPhone(String phone, String finalTenantId) { |
|
|
|
|
|
MallCooUserInfo userInfo = new MallCooUserInfo(); |
|
|
|
|
|
userInfo.setFinalTenantId(finalTenantId); |
|
|
|
|
|
userInfo.setPhone(phone); |
|
|
|
|
|
return mallCooUserInfoMapper.selectOne(new QueryWrapper<>(userInfo)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Async |
|
|
@Async |
|
|
@Override |
|
|
@Override |
|
|
public void pullByMobile(TenantEntity tenantEntity, WxCUserBasicInfo basicInfo) { |
|
|
public void pullByMobile(TenantEntity tenantEntity, WxCUserBasicInfo basicInfo) { |
|
|
@@ -58,7 +66,7 @@ public class MallCooUserInfoServiceImpl implements MallCooUserInfoService { |
|
|
if(StringUtils.isBlank(basicInfo.getPhone())){ |
|
|
if(StringUtils.isBlank(basicInfo.getPhone())){ |
|
|
basicInfo = wxCUserBasicInfoMapper.selectById(basicInfo.getId(),basicInfo.getFinalTenantId()); |
|
|
basicInfo = wxCUserBasicInfoMapper.selectById(basicInfo.getId(),basicInfo.getFinalTenantId()); |
|
|
} |
|
|
} |
|
|
MallCooUserInfo mallCooUserInfo = this.getById(basicInfo.getId(), basicInfo.getFinalTenantId()); |
|
|
|
|
|
|
|
|
MallCooUserInfo mallCooUserInfo = this.getByPhone(basicInfo.getPhone(), basicInfo.getFinalTenantId()); |
|
|
if(mallCooUserInfo == null){ |
|
|
if(mallCooUserInfo == null){ |
|
|
String openUserID = MallcooHelper.openByMobile(config, basicInfo.getPhone(), null); |
|
|
String openUserID = MallcooHelper.openByMobile(config, basicInfo.getPhone(), null); |
|
|
if(StringUtils.isNotBlank(openUserID)){ |
|
|
if(StringUtils.isNotBlank(openUserID)){ |
|
|
|