xiaoyong931011
2021-07-21 1d03a9e224dc0ce11d47bede74da9db2189d663c
gc-user/src/main/java/com/xzx/gc/user/service/JhyInfoService.java
@@ -103,6 +103,15 @@
                    AccountInfo accountInfo = accountMapper.selectOneByUserId(userId);
                    String collectScore = StrUtil.isEmpty(accountInfo.getCollectScore()) ? "0" : accountInfo.getCollectScore();
                    jhyInfoListVo.setScore(new BigDecimal(collectScore).setScale( 2, BigDecimal.ROUND_DOWN ));
                    Example example = new Example(UserLoginInfo.class);
                    Example.Criteria criteria = example.createCriteria();
                    criteria.andEqualTo("userId", userId);
                    example.setOrderByClause("login_time desc");
                    List<UserLoginInfo> userLoginInfos = userLoginInfoMapper.selectByExample(example);
                    if (CollUtil.isNotEmpty(userLoginInfos)) {
                        jhyInfoListVo.setLastLogintime(CollUtil.getFirst(userLoginInfos).getLoginTime());
                    }
                }
            }
        }