Helius
2021-06-30 96e858bd02271c8aba75abf5e3503e7cad7241a8
gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java
@@ -119,9 +119,9 @@
        List<AccountInfo> accountInfos = accountMapper.selectByExample(exampleAccount);
        if(CollUtil.isNotEmpty(accountInfos)){
            AccountInfo accountInfo = accountInfos.get(0);
            Integer collectScore = Integer.parseInt(accountInfo.getCollectScore());
            collectScore = collectScore + model.getScore();
            accountInfo.setCollectScore(collectScore.toString());
//            Integer collectScore = Integer.parseInt(accountInfo.getCollectScore());
//            collectScore = collectScore + model.getScore();
            accountInfo.setCollectScore(model.getScore().toString());
            accountMapper.updateByPrimaryKey(accountInfo);
        }
    }