|
@@ -212,7 +212,7 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoMapper, TenantI
|
|
|
if (StringUtils.isNotEmpty(phone)){
|
|
|
List<TenantInfo> list = tenantInfoService.lambdaQuery().eq(TenantInfo::getPhone, phone).list();
|
|
|
if (CollectionUtils.isNotEmpty(list)){
|
|
|
- oldInfo = list.get(0);
|
|
|
+ throw new BizException("手机号已经注册机构账号");
|
|
|
}
|
|
|
}
|
|
|
SysUser sysUser = getOrCreateAccount(tenantInfo, oldInfo);
|