| | |
| | | Integer count = userHeadDetailsMapper.selectDetailsCount(userId); |
| | | // UserInfo userInfo = userMapper.selectByPrimaryKey(userId); |
| | | AccountInfo accountInfo = accountMapper.selectAccountInfoByUserId(userHeadRelate.getHeadUserId()); |
| | | |
| | | if (AccountInfo.IS_PROHIBIT_Y.equals(accountInfo.getIsProhibit())) { |
| | | return; |
| | | } |
| | | |
| | | List<String> remark = new ArrayList<>(); |
| | | BigDecimal totalReturnScore = BigDecimal.ZERO; |
| | | BigDecimal totalReturnCoin = BigDecimal.ZERO; |
| | |
| | | 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; |
| | | accountInfo.setCollectScore(collectScore.add(totalReturnScore).setScale(2, BigDecimal.ROUND_DOWN).toString()); |
| | | accountInfo.setCollectScore(collectScore.add(totalReturnScore).setScale(0, BigDecimal.ROUND_DOWN).toString()); |
| | | accountMapper.updateByPrimaryKey(accountInfo); |
| | | |
| | | SysMessage sysMessage = new SysMessage(); |