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