| | |
| | | String nickname = followTraderInfoEntity.getNickname();
|
| | | String declaration = followTraderInfoEntity.getDeclaration();
|
| | | Integer isAll = followTraderInfoEntity.getIsAll();
|
| | | Integer followNum = followTraderInfoEntity.getFollowNum();
|
| | | //获取当前跟单人数
|
| | | Map<String, Object> columnMap = new HashMap<>();
|
| | | columnMap.put("trade_id", traderId);
|
| | | columnMap.put("is_follow", FollowFollowerProfitEntity.IS_FOLLOW_Y);
|
| | | List<FollowFollowerProfitEntity> selectByMap = followFollowerProfitDao.selectByMap(columnMap);
|
| | | if(CollUtil.isNotEmpty(selectByMap)) {
|
| | | followTraderProfitInfoVo.setFollowNumNow(selectByMap.size());
|
| | | }else {
|
| | | followTraderProfitInfoVo.setFollowNumNow(0);
|
| | | }
|
| | | followTraderProfitInfoVo.setFollowNum(followNum);
|
| | | followTraderProfitInfoVo.setAvatar(avatar);
|
| | | followTraderProfitInfoVo.setNickname(nickname);
|
| | | followTraderProfitInfoVo.setDeclaration(declaration);
|