|
|
@@ -9,6 +9,7 @@ import com.payment.platform.module.payment.account.mapper.TransferMapper;
|
|
|
import com.payment.platform.module.payment.enterprise.entity.EnterpriseEntity;
|
|
|
import com.payment.platform.module.payment.enterprise.mapper.EnterpriseMapper;
|
|
|
import com.payment.platform.module.payment.points.service.PointsService;
|
|
|
+import com.payment.platform.module.payment.openapi.service.OpenapiService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
@@ -33,6 +34,7 @@ public class AccountHandler extends BaseNotifyHandler {
|
|
|
private final AccountMapper accountMapper;
|
|
|
private final EnterpriseMapper enterpriseMapper;
|
|
|
private final PointsService pointsService;
|
|
|
+ private final OpenapiService openapiService;
|
|
|
|
|
|
@Override
|
|
|
protected String[] acceptedMethods() {
|
|
|
@@ -170,6 +172,11 @@ public class AccountHandler extends BaseNotifyHandler {
|
|
|
transfer.setNextRetryAt(null);
|
|
|
transfer.setRetryCount(4);
|
|
|
transferMapper.updateById(transfer);
|
|
|
+ // 对外回调通知
|
|
|
+ try {
|
|
|
+ openapiService.notifyTransferResult(
|
|
|
+ orderId != null ? orderId : outBizNo, outBizNo, transfer.getTenantId());
|
|
|
+ } catch (Exception ignored) {}
|
|
|
log.info("转账状态更新: out_biz_no={}, status={}", outBizNo, status);
|
|
|
}
|
|
|
|