From f25e2c3707a684a536d9354588e7ca2e5e6e0cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 25 Feb 2026 15:08:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(withdraw):=20=E4=BC=98=E5=8C=96=E7=BB=8F?= =?UTF-8?q?=E9=94=80=E5=95=86=E6=8F=90=E7=8E=B0=E5=AE=A1=E6=A0=B8=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改注释说明,默认进入待审核状态,部分租户小额提现可自动审核 - 调整租户ID比较逻辑,使用Integer.valueOf进行包装比较 - 优化小额提现自动审核条件,金额小于100自动通过,否则进入待审核 - 添加不同金额段的审核人员配置说明 --- .../ShopDealerWithdrawController.java | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerWithdrawController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopDealerWithdrawController.java index fcbd7c8..b13ef3a 100644 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerWithdrawController.java +++ b/src/main/java/com/gxwebsoft/shop/controller/ShopDealerWithdrawController.java @@ -97,23 +97,22 @@ public class ShopDealerWithdrawController extends BaseController { return fail("提现方式不能为空"); } - // 资金安全:用户申请后统一进入“待审核(10)”,审核通过后再由用户主动领取 + // 资金安全:默认进入“待审核(10)”,部分租户/小额提现可自动审核通过,再由用户主动领取 shopDealerWithdraw.setApplyStatus(10); shopDealerWithdraw.setAuditTime(null); - if(shopDealerWithdraw.getTenantId().equals(10584)){ - // 1.如果体现金额小于等于100,则可以自动审核通过 - if (shopDealerWithdraw.getMoney().compareTo(java.math.BigDecimal.valueOf(100)) <= 0) { - shopDealerWithdraw.setApplyStatus(20); - shopDealerWithdraw.setAuditTime(LocalDateTime.now()); - } - // 2.如果提现金额大于100,小于1000,则需要人工审核 - shopDealerWithdraw.setApplyStatus(10); - shopDealerWithdraw.setAuditTime(null); - // 3.如果金额大于1000,小于10000,则除了财务审核还需要农总审核 - - // 4.如果金额大于10000,则需要财务、农总、明、钟四个人审核 - + if (Integer.valueOf(10584).equals(shopDealerWithdraw.getTenantId())) { + // 如果体现金额小于 100,则自动审核通过;否则进入待审核 + if (shopDealerWithdraw.getMoney().compareTo(java.math.BigDecimal.valueOf(100)) < 0) { + shopDealerWithdraw.setApplyStatus(20); + shopDealerWithdraw.setAuditTime(LocalDateTime.now()); + } else { + shopDealerWithdraw.setApplyStatus(10); + shopDealerWithdraw.setAuditTime(null); + // 3.如果金额大于100,小于1000,则需要userId=35083审核 + // 4.如果金额1000~10000之间,则需要userId=35083和userId=35230一起审核 + // 5.10000以上,则需要userId=35083和userId=35230和userId=35231一起审核 + } } final ShopDealerUser dealerUser = shopDealerUserService.getByUserIdRel(loginUser.getUserId());