@RequestMapping("/page") public @ResponseBody ResponseContainer page( HttpServletRequest request, QueryModel dm, String activityId) { try { Pageable pageable = PageRequestTools.pageRequesMake(dm); Page<ActivityUser> activitys = activityUserServie.findByActivityId(activityId, pageable); ReponseDataTools.getClientReponseData(getReponseData(), activitys); return addPageResponse( Config.STATUS_200, Config.MSG_200, getReponseData(), Config.RESP_MODE_10, ""); } catch (XueWenServiceException e) { return addPageResponse( Config.STATUS_505, Config.MSG_505, getReponseData(), Config.RESP_MODE_10, ""); } }
/** * @Title: find @Description: 查找配置信息 * * @param request * @param cloudConfig * @return ResponseContainer * @throws */ @RequestMapping(value = "/findByCkey") public @ResponseBody ResponseContainer findByCkey(HttpServletRequest request, QueryModel dm) { try { String ckey = request.getParameter("ckey"); Pageable pageable = PageRequestTools.pageRequesMake(dm); Page<ColudConfig> cloudConfig = coludConfigService.findByCkey(ckey, pageable); ReponseDataTools.getClientReponseData(getReponseData(), cloudConfig); return addPageResponse( Config.STATUS_200, Config.MSG_200, getReponseData(), Config.RESP_MODE_10, ""); } catch (XueWenServiceException e) { logger.error("==========业务错误,添加新的配置信息失败============" + e); return addResponse(e.getCode(), e.getMessage(), false, Config.RESP_MODE_10, ""); } catch (Exception e) { e.printStackTrace(); logger.error("==========未知错误,添加新的配置信息失败============" + e); return addResponse(Config.STATUS_505, Config.MSG_505, false, Config.RESP_MODE_10, ""); } }