| | |
| | | memberWalletCoinlist.add(coin);
|
| | | // coin.setWalletCode(CoinTypeEnum.GUSD.toString());
|
| | | // memberWalletCoinlist.add(coin);
|
| | | coin.setWalletCode(CoinTypeEnum.GOLDRICE.toString());
|
| | | coin.setWalletCode(CoinTypeEnum.GRICE.toString());
|
| | | memberWalletCoinlist.add(coin);
|
| | |
|
| | | MemberWalletCoinVo memberWalletCoinVo = new MemberWalletCoinVo();
|
| | |
| | | // zhiYaRecord.setEffectDate(newDate);
|
| | | // zhiYaRecordDao.updateById(zhiYaRecord);
|
| | | // }
|
| | | //更新团队算力表
|
| | | //只计算直属团队的算力信息
|
| | |
|
| | |
|
| | | return Result.ok(MessageSourceUtils.getString("member_service_0024"));
|
| | | }
|
| | |
| | | @Override
|
| | | @Transactional
|
| | | public void grantZhiyaAmount() {
|
| | | //获取每日总奖励
|
| | | //获取每日总产出
|
| | | BigDecimal gusdReward = new BigDecimal(redisUtils.getString("GUSDREWARD"));
|
| | | //获取每日质押总数
|
| | | Long totalGusd = zhiYaRecordDao.selectTotalGusdByStatueAndTime(1,new Date());
|
| | |
| | | zhiyaRewardEntity.setMemberId(zhiYaRecordEntity.getMemberId());
|
| | | zhiyaRewardEntity.setRewardAmout(divide.multiply(zhiYaRecordEntity.getZhiyaCnt()));
|
| | | zhiyaRewardDao.insert(zhiyaRewardEntity);
|
| | |
|
| | | //给团队上级发送奖励goldrice
|
| | | //给账户的冻结
|
| | |
|
| | | }
|
| | | }
|
| | | }
|