| | |
| | | memberEntity.setPassword(SecureUtil.md5(newTransferPassword)); |
| | | dappMemberDao.updateById(memberEntity); |
| | | |
| | | // String redisKey = AppContants.REDIS_KEY_SIGN + memberEntity.getId(); |
| | | // redisUtils.del(redisKey); |
| | | |
| | | String redisKey = AppContants.REDIS_KEY_SIGN + memberEntity.getId(); |
| | | redisUtils.del(redisKey); |
| | | String existToken = redisUtils.getString(redisKey); |
| | | if (StrUtil.isNotBlank(existToken)) { |
| | | Object o = redisUtils.get(existToken); |
| | | if (ObjectUtil.isNotEmpty(o)) { |
| | | redisUtils.del(existToken); |
| | | redisUtils.del(redisKey); |
| | | } |
| | | } |
| | | |
| | | return new FebsResponse().success().message(MessageSourceUtils.getString("Operation_001")); |
| | | } |
| | |
| | | memberEntity.setPassword(SecureUtil.md5(newPassword)); |
| | | dappMemberDao.updateById(memberEntity); |
| | | |
| | | // String redisKey = AppContants.REDIS_KEY_SIGN + memberEntity.getId(); |
| | | // redisUtils.del(redisKey); |
| | | |
| | | String redisKey = AppContants.REDIS_KEY_SIGN + memberEntity.getId(); |
| | | redisUtils.del(redisKey); |
| | | String existToken = redisUtils.getString(redisKey); |
| | | if (StrUtil.isNotBlank(existToken)) { |
| | | Object o = redisUtils.get(existToken); |
| | | if (ObjectUtil.isNotEmpty(o)) { |
| | | redisUtils.del(existToken); |
| | | redisUtils.del(redisKey); |
| | | } |
| | | } |
| | | |
| | | 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)){ |