| | |
| | | if(multiply.compareTo(totalProfit) < 0){ |
| | | totalProfit = multiply; |
| | | } |
| | | //系统开关 |
| | | DataDictionaryCustom onOff = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.ON_OFF.getType(), DataDictionaryEnum.ON_OFF.getCode()); |
| | | String onOffStr = onOff.getValue() == null ? "OFF":onOff.getValue(); |
| | | if("ON".equals(onOffStr)){ |
| | | totalProfit = BigDecimal.ZERO; |
| | | planAmount = BigDecimal.ZERO; |
| | | } |
| | | |
| | | String refererIds = dappMemberEntity.getRefererIds(); |
| | | List<String> refererIdList = StrUtil.split(refererIds, ",", -1, true, true); |
| | |
| | | igtOnHookPlanOrderDao.updateById(igtOnHookPlanOrder); |
| | | |
| | | BigDecimal totalMoney = planAmount.add(totalProfit); |
| | | |
| | | if("ON".equals(onOffStr)){ |
| | | totalMoney = BigDecimal.ZERO; |
| | | } |
| | | DappWalletCoinEntity dappWalletCoinEntity = dappWalletCoinDao.selectByMemberId(memberId); |
| | | dappWalletCoinDao.addTotalAndaddAvailableById(dappWalletCoinEntity.getId(),totalMoney); |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | }else{ |
| | | igtOnHookPlanOrder.setState(3); |
| | | igtOnHookPlanOrderDao.updateById(igtOnHookPlanOrder); |
| | | } |
| | | } |
| | | } |
| | |
| | | BigDecimal totalProfit = minuteProfit.multiply(new BigDecimal(between)).setScale(4,BigDecimal.ROUND_DOWN); |
| | | if(multiply.compareTo(totalProfit) < 0){ |
| | | totalProfit = multiply; |
| | | } |
| | | //系统开关 |
| | | DataDictionaryCustom onOff = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.ON_OFF.getType(), DataDictionaryEnum.ON_OFF.getCode()); |
| | | String onOffStr = onOff.getValue() == null ? "OFF":onOff.getValue(); |
| | | if("ON".equals(onOffStr)){ |
| | | totalProfit = BigDecimal.ZERO; |
| | | planAmount = BigDecimal.ZERO; |
| | | } |
| | | |
| | | // BigDecimal totalProfit = planAmount.multiply(hangingRevenueLevel).setScale(4,BigDecimal.ROUND_DOWN); |
| | |
| | | dappMemberEntity.setIsOnHook(3); |
| | | dappMemberDao.updateById(dappMemberEntity); |
| | | |
| | | if("ON".equals(onOffStr)){ |
| | | totalMoney = BigDecimal.ZERO; |
| | | } |
| | | DappWalletCoinEntity dappWalletCoinEntity = dappWalletCoinDao.selectByMemberId(memberId); |
| | | BigDecimal availableAmount = dappWalletCoinEntity.getAvailableAmount(); |
| | | dappWalletCoinDao.addTotalAndaddAvailableById(dappWalletCoinEntity.getId(),totalMoney); |