|
|
|
@ -72,16 +72,16 @@ public class MyController extends BaseController{
|
|
|
|
|
UserInfo user = userInfoService.findById(userLoginDto.getUserId());
|
|
|
|
|
BeanUtils.copyProperties(user, userRespDTO);
|
|
|
|
|
//EnumMap<CollectTypeEnum,Long> map=userCollectService.getUserCollectTypeMap(user.getId());
|
|
|
|
|
Long fansCount=userCollectService.getFansCount(user.getId());
|
|
|
|
|
Long followCount=userCollectService.getCount(user.getId(),CollectTypeEnum.FOLLOW.getType());
|
|
|
|
|
Long thumbUpCount=userCollectService.getCount(user.getId(),CollectTypeEnum.THUMB_UP.getType());
|
|
|
|
|
Long songCount=userCollectService.getCount(user.getId(),CollectTypeEnum.SONG.getType());
|
|
|
|
|
Long journalCount=userCollectService.getCount(user.getId(),CollectTypeEnum.JOURNAL.getType());
|
|
|
|
|
int fansCount=userCollectService.getFansCount(user.getId());
|
|
|
|
|
int followCount=userCollectService.getCount(user.getId(),CollectTypeEnum.FOLLOW.getType());
|
|
|
|
|
int thumbUpCount=userCollectService.getCount(user.getId(),CollectTypeEnum.THUMB_UP.getType());
|
|
|
|
|
int songCount=userCollectService.getCount(user.getId(),CollectTypeEnum.SONG.getType());
|
|
|
|
|
int journalCount=userCollectService.getCount(user.getId(),CollectTypeEnum.JOURNAL.getType());
|
|
|
|
|
|
|
|
|
|
userRespDTO.setFollowCount(followCount);
|
|
|
|
|
userRespDTO.setFansCount(fansCount);
|
|
|
|
|
userRespDTO.setThumbUpCount(thumbUpCount);
|
|
|
|
|
userRespDTO.setCommentReplyCount(0L);
|
|
|
|
|
userRespDTO.setCommentReplyCount(0);
|
|
|
|
|
userRespDTO.setSongCount(songCount);
|
|
|
|
|
userRespDTO.setJournalCount(journalCount);
|
|
|
|
|
|
|
|
|
|