| | |
| | | if (amount.compareTo(new BigDecimal(moneyMin)) < 0 || amount.compareTo(new BigDecimal(moneyMax)) > 0)
|
| | | throw new RedPackExchangeException(1, "提现金额至少" + moneyMin + "元至多" + moneyMax + "元");
|
| | |
|
| | | Date nowDate = new Date();
|
| | |
|
| | | long countToday = redPackExchangeMapper.countTodayByUid(uid);
|
| | | String extractDayMax = redPackConfigService.getValueByKey("extract_day_max");
|
| | | if (!StringUtil.isNullOrEmpty(extractDayMax) && countToday >= Long.parseLong(extractDayMax)) |
| | | throw new RedPackExchangeException(1, "今日红包提现次数超限");
|
| | | |
| | | |
| | | Date nowDate = new Date();
|
| | | // 提现申请
|
| | | RedPackExchange exchange = new RedPackExchange();
|
| | | exchange.setUid(uid);
|