| | |
| | | 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; |
| | |
| | | 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; |
| | | } |