|
@@ -110,10 +110,10 @@ public class OpenStudentController extends BaseController {
|
|
if (one.getTenantId().equals(-1L)) {
|
|
if (one.getTenantId().equals(-1L)) {
|
|
throw new BizException("该手机号已经注册为平台学生");
|
|
throw new BizException("该手机号已经注册为平台学生");
|
|
}
|
|
}
|
|
-// if (one.getTenantId().equals(tenantId)) {
|
|
|
|
-// //已经注册当前机构,请勿重复注册
|
|
|
|
-// throw new BizException(5004, tenantInfo.getName());
|
|
|
|
-// }
|
|
|
|
|
|
+ if (one.getTenantId().equals(tenantId)) {
|
|
|
|
+ //已经注册当前机构,请勿重复注册
|
|
|
|
+ throw new BizException("已经注册当前机构,请勿重复注册");
|
|
|
|
+ }
|
|
// 转到其他机构
|
|
// 转到其他机构
|
|
if ((!Objects.equals(student.getTenantId(), one.getTenantId()))) {
|
|
if ((!Objects.equals(student.getTenantId(), one.getTenantId()))) {
|
|
if(student.getUpdateTenant() == null || Boolean.FALSE.equals(student.getUpdateTenant())){
|
|
if(student.getUpdateTenant() == null || Boolean.FALSE.equals(student.getUpdateTenant())){
|