xiaoyong931011
2021-06-30 e708a57acad17877869fd3b418f7f9ea529841da
20210630 积分拨付
1 files modified
2 ■■■ changed files
gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java 2 ●●● patch | view | raw | blame | history
gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java
@@ -119,7 +119,7 @@
        List<AccountInfo> accountInfos = accountMapper.selectByExample(exampleAccount);
        if(CollUtil.isNotEmpty(accountInfos)){
            AccountInfo accountInfo = accountInfos.get(0);
            Integer collectScore = Integer.parseInt(accountInfo.getCollectScore());
            Integer collectScore = Integer.parseInt(StrUtil.isEmpty(accountInfo.getCollectScore())?"0":accountInfo.getCollectScore());
//            collectScore = collectScore + model.getScore();
            accountInfo.setCollectScore(model.getScore().toString());
            accountMapper.updateByPrimaryKey(accountInfo);