|
@@ -215,6 +215,8 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoMapper, TenantI
|
|
|
throw new BizException("手机号已经注册机构账号");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
SysUser sysUser = getOrCreateAccount(tenantInfo, oldInfo);
|
|
|
tenantInfo.setEnableFlag(true);
|
|
|
if (StringUtils.isEmpty(tenantInfo.getLogo())) {
|
|
@@ -252,6 +254,10 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoMapper, TenantI
|
|
|
}
|
|
|
//获取当前账户的用户类型
|
|
|
String userType = sysUser.getUserType();
|
|
|
+
|
|
|
+ if (userType.contains(SysUserType.SYSTEM.getCode())){
|
|
|
+ throw new BizException("该手机号已注册机构");
|
|
|
+ }
|
|
|
//设置默认机构类型
|
|
|
String tenantUserType = SysUserType.ORGANIZATION.getCode();
|
|
|
if (StringUtils.isEmpty(userType)) {
|