From dcc23e37a74502d027b7e1efeca57378c94273b1 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期二, 15 九月 2026 14:14:11 +0800
Subject: [PATCH] feat(merchant): 增加存量商户微信开通进度核验
---
talent-card-server/src/main/java/com/talentcard/server/business/merchant/MerchantSettlementService.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/talent-card-server/src/main/java/com/talentcard/server/business/merchant/MerchantSettlementService.java b/talent-card-server/src/main/java/com/talentcard/server/business/merchant/MerchantSettlementService.java
index 757e3a0..e393b63 100644
--- a/talent-card-server/src/main/java/com/talentcard/server/business/merchant/MerchantSettlementService.java
+++ b/talent-card-server/src/main/java/com/talentcard/server/business/merchant/MerchantSettlementService.java
@@ -53,6 +53,15 @@
private final HuifuPaymentProperties huifuPaymentProperties;
private final HuifuPictureUploadGateway pictureUploadGateway;
private final MerchantPaymentReadinessService paymentReadinessService;
+ @org.springframework.beans.factory.annotation.Autowired
+ private MerchantOnboardingProgressService onboardingProgressService;
+
+ public Map<String, Object> refreshOnboarding(MerchantPrincipal principal, boolean retry) {
+ store(principal);
+ List<Map<String,Object>> records=rows("select * from merchant_onboarding_application where merchant_id=? and store_id=? and initial_bank_card_id is not null order by id desc limit 1",principal.merchantId(),principal.storeId());
+ if(records.isEmpty()) throw new BusinessException(ErrorCode.NOT_FOUND,"Onboarding application not found");
+ return onboardingProgressService.refresh(((Number)records.get(0).get("id")).longValue(),retry);
+ }
public MerchantSettlementService(JdbcTemplate jdbc, SensitiveDataCrypto sensitiveDataCrypto, HuifuIndividualOnboardingGateway individualOnboardingGateway, HuifuEnterpriseOnboardingGateway enterpriseOnboardingGateway, HuifuMerchantWechatConfigGateway merchantWechatConfigGateway, HuifuMerchantBusinessOpenGateway merchantBusinessOpenGateway, HuifuUserBusinessOpenGateway userBusinessOpenGateway, HuifuPaymentProperties huifuPaymentProperties, HuifuPictureUploadGateway pictureUploadGateway, MerchantPaymentReadinessService paymentReadinessService) {
this.jdbc = jdbc;
--
Gitblit v1.7.1