From 2d48f50fdfbc0e971bbf1bb17c3d55841f7317d1 Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Mon, 21 Aug 2023 13:51:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B1=87=E4=BB=98=E5=9F=BA=E7=A1=80=E5=93=8D?= =?UTF-8?q?=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsowell/adapay/service/AdapayService.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java b/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java index 6beb149d4..59b4c567b 100644 --- a/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java +++ b/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java @@ -403,6 +403,24 @@ public class AdapayService { return corpMemberVO; } + + /** + * 删除结算账户对象 + * 企业用户更新银行卡信息时调用,先删除后新建 + */ + public void createDeleteSettleAccount(String adapayMemberId, String settleAccountId, String wechatAppId) throws BaseAdaPayException { + // 获取汇付支付配置 + AbstractAdapayConfig config = AdapayConfigFactory.getConfig(wechatAppId); + if (config == null) { + throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_CONFIG_IS_NULL_ERROR); + } + Map settleCountParams = Maps.newHashMap(); + settleCountParams.put("settle_account_id", settleAccountId); + settleCountParams.put("member_id", adapayMemberId); + settleCountParams.put("app_id", config.getAdapayAppId()); + Map settleCount = SettleAccount.delete(settleCountParams); + } + /** * 查询汇付结算账户信息 */