Exemplo n.º 1
0
 /**
  * 参加活动的详细名单
  *
  * @return
  */
 @RequestMapping(value = "mobile/activity/queryjoinusers")
 public @ResponseBody String queryJoinUsers(String id) {
   Activity activity = activityServiceImpl.queryById(id);
   if (null == activity) {
     return ResponseState.INVALID_ID;
   }
   return ResponseData.getResData(activity.getJoinUsers());
 }
Exemplo n.º 2
0
 /**
  * 活动详细页
  *
  * @return
  */
 @RequestMapping(value = "mobile/activity/viewactivity")
 public @ResponseBody String viewActivity(String id) {
   Activity activity = activityServiceImpl.queryById(id);
   List<AtvCmt> comments = atvCmtServiceImpl.qAtvCmtByActivityId(id);
   JSONObject jsonObject = new JSONObject();
   jsonObject.put("activity", activity);
   jsonObject.put("comments", comments);
   return ResponseData.getResData(jsonObject);
 }