Helius
2021-06-30 491ad3f8d75f4254e0bb3dbc8544169e7e76f7a5
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);
        }
    }