| | |
| | | public BigDecimal updateLSYJYLFC(List<String> refererIdList,BigDecimal totalProfit) { |
| | | //计算盈利分成 |
| | | BigDecimal profitSharingTotal = BigDecimal.ZERO; |
| | | if(BigDecimal.ZERO.compareTo(totalProfit)>=0){ |
| | | return profitSharingTotal; |
| | | } |
| | | if(CollUtil.isNotEmpty(refererIdList)){ |
| | | String LEVEL_IB = isIdentity(refererIdList, DataDictionaryEnum.LEVEL_IB.getCode()); |
| | | if(!DataDictionaryEnum.LEVEL_IB.getCode().equals(LEVEL_IB)){ |
| | |
| | | |
| | | @Override |
| | | public BigDecimal updatePTFC(Long memberId, BigDecimal totalProfit) { |
| | | if(BigDecimal.ZERO.compareTo(totalProfit)>=0){ |
| | | return BigDecimal.ZERO; |
| | | } |
| | | BigDecimal multiply = totalProfit.multiply(new BigDecimal(0.05)); |
| | | DappAccountMoneyChangeEntity dappAccountMoneyChangeEntity = new DappAccountMoneyChangeEntity( |
| | | DappAccountMoneyChangeEntity dappAccountMoneyChangeEntity = new DappAccountMoneyChangeEntity(65L, |
| | | multiply.negate(), "系统", 9); |
| | | dappAccountMoneyChangeDao.insert(dappAccountMoneyChangeEntity); |
| | | return multiply; |