Beispiel #1
0
 /**
  * 米客中心-TA的好友
  *
  * @return
  */
 public String friend() {
   statsMap();
   this.userList =
       userService.getFriendListByUserIdAndVisitUserId(
           this.userId, this.getSessionUserId(), null, null);
   this.tab = "friend";
   return "friend";
 }
Beispiel #2
0
 /** 查询用户的统计信息 */
 private void statsMap() {
   this.visitUser = userService.getUserById(this.userId);
   if (visitUser != null) {
     // 图片数
     visitUser.put(
         "enjoyImageNum",
         userService.getEnjoyNumByUserId(
             userId,
             new Integer[] {
               PojoConstant.USERENJOY.TYPE_IMAGE, PojoConstant.USERENJOY.TYPE_EVENT
             }));
     // 杂志数
     visitUser.put(
         "enjoyIssueNum",
         userService.getEnjoyNumByUserId(
             userId, new Integer[] {PojoConstant.USERENJOY.TYPE_ISSUE}));
     // 好友数
     visitUser.put("friendNum", userService.getFriendNumByUserId(userId));
   }
 }