| | |
| | | |
| | | @Getter |
| | | public enum DataDictionaryEnum { |
| | | //FDH提现标识 1-允许 0-拒绝 |
| | | COIN_WITHDRAW("COIN_WITHDRAW","COIN_WITHDRAW"), |
| | | //FDH兑换标识 1-允许 0-拒绝 |
| | | COIN_CHANGE("COIN_CHANGE","COIN_CHANGE"), |
| | | //FDH互转标识 1-允许 0-拒绝 |
| | |
| | | DataDictionaryEnum.COIN_INSIDE_CHANGE.getType(), |
| | | DataDictionaryEnum.COIN_INSIDE_CHANGE.getCode(), |
| | | gfaBasicSetDto.getAroundInsideType()); |
| | | commonService.updateDataDic( |
| | | DataDictionaryEnum.COIN_WITHDRAW.getType(), |
| | | DataDictionaryEnum.COIN_WITHDRAW.getCode(), |
| | | gfaBasicSetDto.getCoinWithdraw()); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | |
| | | gfaBasicSetDto.setAroundInsideType(dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.COIN_INSIDE_CHANGE.getType(), |
| | | DataDictionaryEnum.COIN_INSIDE_CHANGE.getCode()).getValue()); |
| | | gfaBasicSetDto.setCoinWithdraw(dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.COIN_WITHDRAW.getType(), |
| | | DataDictionaryEnum.COIN_WITHDRAW.getCode()).getValue()); |
| | | |
| | | model.addAttribute("gfaBasicSet", gfaBasicSetDto); |
| | | return FebsUtil.view("modules/news/gfaBasicSet"); |
| | |
| | | |
| | | private String aroundInsideType; |
| | | |
| | | private String coinWithdraw; |
| | | |
| | | } |
| | |
| | | if (!mallMember.getTradePassword().equals(SecureUtil.md5(withdrawalBalanceDto.getTradePwd()))) { |
| | | throw new FebsException("支付密码错误"); |
| | | } |
| | | DataDictionaryCustom coinWithdrawDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.COIN_WITHDRAW.getType(), |
| | | DataDictionaryEnum.COIN_WITHDRAW.getCode() |
| | | ); |
| | | if(!"1".equals(coinWithdrawDic.getValue())){ |
| | | throw new FebsException("暂未开放"); |
| | | } |
| | | |
| | | |
| | | DataDictionaryCustom withdrawAmountDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.WITHDRAW_AMOUNT.getType(), |
| | |
| | | <div class="layui-form-mid layui-word-aux">0-不允许 1-允许</div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-lg6"> |
| | | <label class="layui-form-label febs-form-item-require">FDH提现:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="coinWithdraw" class="layui-input" > |
| | | <div class="layui-form-mid layui-word-aux">0-不允许 1-允许</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-card-footer"> |
| | | <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="gfa-Basic-set-submit" id="submit">保存</button> |
| | |
| | | "aroundType": gfaBasicSet.aroundType, |
| | | "aroundInsideType": gfaBasicSet.aroundInsideType, |
| | | "changeType": gfaBasicSet.changeType, |
| | | "coinWithdraw": gfaBasicSet.coinWithdraw, |
| | | "endTime": gfaBasicSet.endTime |
| | | }); |
| | | } |