| | |
| | | //3.下级用户 |
| | | List<InviteUser> list = this.baseMapper.getInviteUserListByInviteId(id); |
| | | vo.setInviteUserList(list); |
| | | |
| | | List<AccountDetail> list1 = accountDetailMapper.selectList(new LambdaQueryWrapper<AccountDetail>().eq(AccountDetail::getCategory, 2).eq(AccountDetail::getStatus, 1).eq(AccountDetail::getUserId, id)); |
| | | BigDecimal reduce2 = list1.stream().map(AccountDetail::getMoney).reduce(BigDecimal.ZERO, BigDecimal::add); |
| | | vo.setRecorded(reduce2); |
| | | return vo; |
| | | } |
| | | |
| | |
| | | accountDetail.setUserId(dto.getId()); |
| | | accountDetail.setType(dto.getType()); |
| | | accountDetail.setMoney(dto.getMoney()); |
| | | accountDetail.setCategory(6); |
| | | accountDetail.setRemark(dto.getRemark()); |
| | | accountDetailMapper.insert(accountDetail); |
| | | //修改用户余额 |