| | |
| | | userHeadRelate.setScore(userHeadDetails.getScore().add(totalReturnScore)); |
| | | userHeadRelateMapper.updateByPrimaryKey(userHeadRelate); |
| | | |
| | | AccountInfo update = new AccountInfo(); |
| | | update.setAccountId(accountInfo.getAccountId()); |
| | | update.setMoney(new BigDecimal(accountInfo.getMoney()).add(totalReturnCoin).setScale(2, BigDecimal.ROUND_DOWN).toString()); |
| | | accountInfo.setAccountId(accountInfo.getAccountId()); |
| | | accountInfo.setMoney(new BigDecimal(accountInfo.getMoney()).add(totalReturnCoin).setScale(2, BigDecimal.ROUND_DOWN).toString()); |
| | | BigDecimal collectScore = StrUtil.isNotBlank(accountInfo.getCollectScore()) ? new BigDecimal(accountInfo.getCollectScore()) : BigDecimal.ZERO; |
| | | update.setCollectScore(collectScore.add(totalReturnScore).setScale(2, BigDecimal.ROUND_DOWN).toString()); |
| | | accountMapper.updateByPrimaryKey(update); |
| | | accountInfo.setCollectScore(collectScore.add(totalReturnScore).setScale(2, BigDecimal.ROUND_DOWN).toString()); |
| | | accountMapper.updateByPrimaryKey(accountInfo); |
| | | |
| | | SysMessage sysMessage = new SysMessage(); |
| | | sysMessage.setCreateTime(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss")); |