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());