|
@@ -175,7 +175,7 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoMapper, TenantI
|
|
|
//若存在信息
|
|
|
if (!sysUsers.isEmpty()) {
|
|
|
sysUser = sysUsers.get(0);
|
|
|
- TenantStaff tenantStaff = tenantStaffMapper.selectById(sysUser.getId());
|
|
|
+ TenantStaff tenantStaff = tenantStaffMapper.selectByUserId(sysUser.getId());
|
|
|
if (tenantStaff != null && oldTenantInfo != null &&
|
|
|
!tenantStaff.getUserId().equals(oldTenantInfo.getUserId())) {
|
|
|
throw new BizException("手机号已经注册机构账号");
|