xiaoyong931011
2021-06-30 65f0f3bf2fbadc5940d5cb339dd3c72a9d51afe6
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);
        }
    }