From 8fc8804e5b755baf32c996668084e41adfa68619 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 30 Jun 2021 17:32:06 +0800 Subject: [PATCH] 20210630 积分拨付 --- gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java b/gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java index 34fe401..ebd4953 100644 --- a/gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java +++ b/gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java @@ -3,6 +3,7 @@ import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.convert.Convert; +import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.xzx.gc.common.exception.RestException; @@ -142,8 +143,7 @@ List<AccountInfo> accountInfos = accountMapper.selectByExample(exampleAccount); if(CollUtil.isNotEmpty(accountInfos)){ AccountInfo accountInfo = accountInfos.get(0); - Integer collectScore = Integer.parseInt(accountInfo.getCollectScore()); - getScoreNumVo.setScore(new BigDecimal(collectScore)); + getScoreNumVo.setScore(new BigDecimal(StrUtil.isEmpty(accountInfo.getCollectScore())?"0":accountInfo.getCollectScore())); } return getScoreNumVo; } -- Gitblit v1.9.1