| | |
| | | } |
| | | //(2)每24小时只能提现一次 |
| | | // 提现次数 |
| | | DataDictionaryCustom withdrawOutTimesDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.OUT_ACCOUNT_PROFIT.getType(), DataDictionaryEnum.OUT_ACCOUNT_PROFIT.getCode()); |
| | | DataDictionaryCustom withdrawOutTimesDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.WITHDRAW_OUT_TIMES.getType() |
| | | , DataDictionaryEnum.WITHDRAW_OUT_TIMES.getCode()); |
| | | String withdrawOutTimesStr = withdrawOutTimesDic.getValue() == null ? "1" : withdrawOutTimesDic.getValue(); |
| | | int withdrawOutTimes = Integer.parseInt(withdrawOutTimesStr); |
| | | Integer withdrawTimesReal = memberCoinWithdrawDao.selectByMemberIdAndCreateTime(memberId,DateUtil.format(DateUtil.date(),"yyyy-MM-dd")); |
| | | if(withdrawOutTimes < withdrawTimesReal){ |
| | | if(withdrawOutTimes <= withdrawTimesReal){ |
| | | return new FebsResponse().fail().message(MessageSourceUtils.getString("member_err_0014")); |
| | | } |
| | | |
| | |
| | | DataDictionaryCustom serviceFeeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.SERVICE_FEE.getType(), DataDictionaryEnum.SERVICE_FEE.getCode()); |
| | | BigDecimal serviceFee = new BigDecimal(serviceFeeDic.getValue()); |
| | | |
| | | //转出账户生成一条内部转账记录 |
| | | //转出账户生成一条记录 |
| | | MemberCoinWithdrawEntity memberCoinWithdrawEntity = new MemberCoinWithdrawEntity(); |
| | | memberCoinWithdrawEntity.setAddress(address); |
| | | memberCoinWithdrawEntity.setAmount(balance.negate()); |