| | |
| | | int perKNum = Integer.parseInt(ObjectUtil.isEmpty(perKNumDic) ? "200" : perKNumDic.getValue()); |
| | | |
| | | List<DappMemberEntity> dappMemberEntities = dappMemberDao.selectList(null); |
| | | int sum1 = dappMemberEntities.stream().mapToInt(DappMemberEntity::getBuyNode).sum(); |
| | | if(perKNum < sum1 + 1){ |
| | | throw new FebsException("节点已售完"); |
| | | if(CollUtil.isNotEmpty(dappMemberEntities)){ |
| | | int sum1 = dappMemberEntities.stream().mapToInt(DappMemberEntity::getBuyNode).sum(); |
| | | if(perKNum < sum1 + 1){ |
| | | throw new FebsException("节点已售完"); |
| | | } |
| | | } |
| | | |
| | | if (ObjectUtil.isEmpty(transferDto.getId())) { |