|
@@ -124,6 +124,15 @@ public class OpenTenantController {
|
|
|
throw new BizException(5003, "请等待审核完成");
|
|
|
}
|
|
|
} else {
|
|
|
+ Long tenantId = tenantStaff.getTenantId();
|
|
|
+ TenantInfo tenantInfo = tenantInfoService.getById(tenantId);
|
|
|
+ if(tenantInfo == null){
|
|
|
+ throw new BizException("机构不存在");
|
|
|
+ }
|
|
|
+ if (Boolean.FALSE.equals(tenantInfo.getEnableFlag())) {
|
|
|
+ // 机构冻结
|
|
|
+ throw new BizException(5004, openId);
|
|
|
+ }
|
|
|
// 判断当前账号是否锁定
|
|
|
if (UserLockFlag.LOCKED.equals(tenantStaff.getStatus())) {
|
|
|
throw new BizException(5005, "当前账号已锁定");
|
|
@@ -133,16 +142,6 @@ public class OpenTenantController {
|
|
|
throw new BizException("请登录您所绑定的机构");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- Long tenantId = tenantStaff.getTenantId();
|
|
|
- TenantInfo tenantInfo = tenantInfoService.getById(tenantId);
|
|
|
- if(tenantInfo == null){
|
|
|
- throw new BizException("机构不存在");
|
|
|
- }
|
|
|
- if (Boolean.FALSE.equals(tenantInfo.getEnableFlag())) {
|
|
|
- // 机构冻结
|
|
|
- throw new BizException(5004, openId);
|
|
|
- }
|
|
|
tenantStaff.setWxOpenid(openId);
|
|
|
tenantStaffService.updateById(tenantStaff);
|
|
|
return HttpResponseResult.succeed();
|