feat(withdraw): 优化经销商提现审核流程

- 修改注释说明,默认进入待审核状态,部分租户小额提现可自动审核
- 调整租户ID比较逻辑,使用Integer.valueOf进行包装比较
- 优化小额提现自动审核条件,金额小于100自动通过,否则进入待审核
- 添加不同金额段的审核人员配置说明
This commit is contained in:
2026-02-25 15:08:57 +08:00
parent ca02e9e5a3
commit f25e2c3707

View File

@@ -97,23 +97,22 @@ public class ShopDealerWithdrawController extends BaseController {
return fail("提现方式不能为空"); return fail("提现方式不能为空");
} }
// 资金安全:用户申请后统一进入“待审核(10)”,审核通过再由用户主动领取 // 资金安全:默认进入“待审核(10)”,部分租户/小额提现可自动审核通过再由用户主动领取
shopDealerWithdraw.setApplyStatus(10); shopDealerWithdraw.setApplyStatus(10);
shopDealerWithdraw.setAuditTime(null); shopDealerWithdraw.setAuditTime(null);
if(shopDealerWithdraw.getTenantId().equals(10584)){ if (Integer.valueOf(10584).equals(shopDealerWithdraw.getTenantId())) {
// 1.如果体现金额小于等于100可以自动审核通过 // 如果体现金额小于 100则自动审核通过;否则进入待审核
if (shopDealerWithdraw.getMoney().compareTo(java.math.BigDecimal.valueOf(100)) <= 0) { if (shopDealerWithdraw.getMoney().compareTo(java.math.BigDecimal.valueOf(100)) < 0) {
shopDealerWithdraw.setApplyStatus(20); shopDealerWithdraw.setApplyStatus(20);
shopDealerWithdraw.setAuditTime(LocalDateTime.now()); shopDealerWithdraw.setAuditTime(LocalDateTime.now());
} } else {
// 2.如果提现金额大于100小于1000则需要人工审核 shopDealerWithdraw.setApplyStatus(10);
shopDealerWithdraw.setApplyStatus(10); shopDealerWithdraw.setAuditTime(null);
shopDealerWithdraw.setAuditTime(null); // 3.如果金额大于100小于1000则需要userId=35083审核
// 3.如果金额大于1000,小于10000,则除了财务审核还需要农总审核 // 4.如果金额1000~10000之间则需要userId=35083和userId=35230一起审核
// 5.10000以上则需要userId=35083和userId=35230和userId=35231一起审核
// 4.如果金额大于10000则需要财务、农总、明、钟四个人审核 }
} }
final ShopDealerUser dealerUser = shopDealerUserService.getByUserIdRel(loginUser.getUserId()); final ShopDealerUser dealerUser = shopDealerUserService.getByUserIdRel(loginUser.getUserId());