|
|
@@ -112,6 +112,10 @@ public class EnterpriseHandler extends BaseNotifyHandler {
|
|
|
entity.setAccountId(accountId);
|
|
|
entity.setStatus(status);
|
|
|
entity.setRemark(remark);
|
|
|
+ // 从 PENDING 记录取 tenantId(applyInvite 创建时已写入正确值)
|
|
|
+ if (pending != null && pending.getTenantId() != null) {
|
|
|
+ entity.setTenantId(pending.getTenantId());
|
|
|
+ }
|
|
|
if (pending != null) {
|
|
|
entity.setServiceProviderId(pending.getServiceProviderId());
|
|
|
entity.setScopeLabel(pending.getScopeLabel());
|