| | |
| | | } |
| | | String withdraw_limit = sysparaService.find("withdraw_limit_" + symbol).getSvalue(); |
| | | if (amount.doubleValue() < Double.valueOf(withdraw_limit)) { |
| | | throw new YamiShopBindException("提现不得小于限额"); |
| | | throw new YamiShopBindException("Withdrawal amount must not be less than the limit."); |
| | | } |
| | | String withdraw_limit_max = sysparaService.find("withdraw_limit_max").getSvalue(); |
| | | if (amount.doubleValue() > Double.valueOf(withdraw_limit_max)) { |
| | | throw new YamiShopBindException("提现不得大于限额"); |
| | | throw new YamiShopBindException("Withdrawal amount cannot exceed the limit."); |
| | | } |
| | | /** |
| | | * 当日提现次数是否超过 |
| | |
| | | List<Withdraw> withdraw_days = findAllByDate(withdraw.getUserId().toString()); |
| | | if (withdraw_limit_num > 0 && withdraw_days != null) { |
| | | if (withdraw_days.size() >= withdraw_limit_num) { |
| | | throw new YamiShopBindException("当日可提现次数不足"); |
| | | throw new YamiShopBindException("The number of times funds can be withdrawn on the same day is insufficient."); |
| | | } |
| | | } |
| | | /** |
| | |
| | | // |
| | | String dateString = sdf.format(date); |
| | | if (dateString.compareTo(withdraw_time[0]) < 0 || dateString.compareTo(withdraw_time[1]) > 0) { |
| | | throw new YamiShopBindException("不在可提现时间内"); |
| | | throw new YamiShopBindException("Not within the available withdrawal periodNot within the available withdrawal period"); |
| | | } |
| | | } |
| | | WithdrawFeeVo withdrawFeeVo = getFee(withdraw.getMethod(), withdraw.getAmount().doubleValue()); |