| | |
| | | |
| | | @Getter |
| | | public enum DataDictionaryEnum { |
| | | START_SYMBOL("START_SYMBOL","START_SYMBOL"), |
| | | USDT_BALANCE_TIME("USDT_BALANCE_TIME","USDT_BALANCE_TIME"), |
| | | WITHDRAW_PERCENT("WITHDRAW_PERCENT","WITHDRAW_PERCENT"), |
| | | RELEASE_PERCENT("RELEASE_PERCENT","RELEASE_PERCENT"), |
| | |
| | | throw new FebsException("功能升级中"); |
| | | } |
| | | |
| | | DataDictionaryCustom startSymbolDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.START_SYMBOL.getType(), |
| | | DataDictionaryEnum.START_SYMBOL.getCode() |
| | | ); |
| | | if("STOP".equals(startSymbolDic.getValue())){ |
| | | throw new FebsException("贡献暂未开启"); |
| | | } |
| | | |
| | | BigDecimal amount = transferDto.getAmount(); |
| | | if(BigDecimal.ZERO.compareTo(amount) >= 0){ |
| | | throw new FebsException("请输入正确的存储数量"); |