| | |
| | | return new FebsResponse().success().message(MessageSourceUtils.getString("Operation_001")); |
| | | } |
| | | @Override |
| | | public BigDecimal updateLSYJYLFC(List<String> refererIdList,BigDecimal totalProfit,long id) { |
| | | public BigDecimal updateLSYJ(List<String> refererIdList,BigDecimal totalProfit,long id) { |
| | | //计算盈利分成 |
| | | BigDecimal profitSharingTotal = BigDecimal.ZERO; |
| | | if(BigDecimal.ZERO.compareTo(totalProfit)>=0){ |
| | |
| | | profitSharingTotal = profitSharingTotal.add(multiply); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | return profitSharingTotal; |
| | | } |
| | | |
| | | @Override |
| | | public BigDecimal updateYLFC(List<String> refererIdList, BigDecimal totalProfit, long id) { |
| | | //计算流水佣金 |
| | | BigDecimal profitSharingTotal = BigDecimal.ZERO; |
| | | if(BigDecimal.ZERO.compareTo(totalProfit)>=0){ |
| | | return profitSharingTotal; |
| | | } |
| | | if(CollUtil.isNotEmpty(refererIdList)){ |
| | | String LEVEL_AIB = isIdentity(refererIdList, DataDictionaryEnum.LEVEL_AIB.getCode()); |
| | | if(!DataDictionaryEnum.LEVEL_AIB.getCode().equals(LEVEL_AIB)){ |