xiaoyong931011
2021-11-19 38efbb4a62ccdd98e4122fc879dd230795ef8ce3
gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java
@@ -189,9 +189,13 @@
        viewJhyInfoVo.setAddress(jhyInfo.getAddress());
        String userId = jhyInfo.getUserId();
        AccountInfo accountInfo = accountMapper.selectOneByUserId(userId);
        String collectScore = accountInfo.getCollectScore();
        BigDecimal bigDecimal = new BigDecimal(StrUtil.isEmpty(collectScore) ? "0" : collectScore).setScale( 2, BigDecimal.ROUND_DOWN );
        viewJhyInfoVo.setScore(bigDecimal);
        if(ObjectUtil.isNotEmpty(accountInfo)){
            String collectScore = accountInfo.getCollectScore();
            BigDecimal bigDecimal = new BigDecimal(StrUtil.isEmpty(collectScore) ? "0" : collectScore).setScale( 2, BigDecimal.ROUND_DOWN );
            viewJhyInfoVo.setScore(bigDecimal);
        }
        viewJhyInfoVo.setCreateTime(jhyInfo.getCreatedTime().toString());
        UserInfo userInfo = userMapper.selectByPrimaryKey(userId);