xiaoyong931011
2023-03-24 f38db4c91a3655a9024aa2f1ada81a153741b855
src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java
@@ -60,6 +60,14 @@
        if (dic != null) {
            cashOutSettingVo = JSONObject.parseObject(dic.getValue(), CashOutSettingVo.class);
        }
        BigDecimal minCashOut = cashOutSettingVo.getMinCashOut();
        if(withdrawalDto.getAmount().compareTo(minCashOut) < 0){
            throw new FebsException("提现金额最小为"+minCashOut);
        }
        if (withdrawalDto.getAmount().compareTo(BigDecimal.ZERO) <= 0) {
            throw new FebsException("请输入正确的提现金额");
        }
        if (withdrawalDto.getAmount().compareTo(BigDecimal.ZERO) <= 0) {
            throw new FebsException("请输入正确的提现金额");