예제 #1
2
 /**
  * 我报名的活动列表
  *
  * @param pageResult
  * @param phone 当前用户的手机号
  * @param queryWords 查询关键字
  * @return
  */
 @RequestMapping(value = "mobile/activity/querymyjoinactivity")
 public @ResponseBody String queryMyJoinActivity(
     PageResult<Activity> pageResult, String phone, String queryWords) {
   if (!userServiceImpl.isValid(phone)) {
     return ResponseState.INVALID_PHONE;
   }
   List<Activity> list =
       activityServiceImpl.queryMyJoinActivity(pageResult, phone, queryWords).getResultList();
   return ActivityView.convert2Json(list);
 }
예제 #2
0
 /**
  * 活动分页列表
  *
  * @param pageResult
  * @param queryWords 查询关键字
  * @return
  */
 @RequestMapping(value = "mobile/activity/queryactivity")
 public @ResponseBody String queryActivity(PageResult<Activity> pageResult, String queryWords) {
   List<Activity> list = activityServiceImpl.queryActivity(pageResult, queryWords).getResultList();
   return ActivityView.convert2Json(list);
 }