|
|
@@ -102,8 +102,15 @@ public class AccountHandler extends BaseNotifyHandler {
|
|
|
acc.setEnterpriseId(enterpriseId);
|
|
|
acc.setAgreementNo(agreementNo);
|
|
|
acc.setSignStatus("SIGNED");
|
|
|
- acc.setStatus("PENDING"); // 待进件
|
|
|
- acc.setOnboardStatus("PENDING"); // 待进件审核
|
|
|
+ acc.setStatus("PENDING");
|
|
|
+ acc.setOnboardStatus("PENDING");
|
|
|
+ acc.setScene("B2B_TRANS");
|
|
|
+ acc.setAccountType("ALL");
|
|
|
+ // 从 EnterpriseEntity 反查 tenant_id(通知回调无租户上下文)
|
|
|
+ EnterpriseEntity ent = enterpriseMapper.selectByEnterpriseIdIgnoreTenant(enterpriseId);
|
|
|
+ if (ent != null && ent.getTenantId() != null) {
|
|
|
+ acc.setTenantId(ent.getTenantId());
|
|
|
+ }
|
|
|
accountMapper.insert(acc);
|
|
|
log.info("签约通知创建账户记录: enterpriseId={}, agreementNo={}",
|
|
|
enterpriseId, agreementNo);
|