| | |
| | | @Resource
|
| | | private PushRecordService pushRecordService;
|
| | |
|
| | | @RequestMapping(value = "getPushRecordList", method = RequestMethod.POST)
|
| | | public void getAll(String title,int type,int page,PrintWriter out){
|
| | | List<PushRecord> list = pushRecordService.getPushRecordList(title,type,page);
|
| | | int count = pushRecordService.getCount(title,type,page);
|
| | | PageEntity pe = new PageEntity(page, Constant.PAGE_SIZE, count);
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("pe", pe);
|
| | | data.put("list", list);
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * 推荐记录 -(新后台)
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | int count = pushRecordService.getCount(key, type, pageIndex);
|
| | | PageEntity pe = new PageEntity(pageIndex, Constant.PAGE_SIZE, count);
|
| | | int pageSize = Constant.PAGE_SIZE;
|
| | |
|
| | | int count = pushRecordService.getCount(key, type, pageIndex);
|
| | | |
| | | int totalPage = (int) (count % pageSize == 0 ? count / pageSize : count / pageSize + 1);
|
| | | PageEntity pe = new PageEntity(pageIndex, pageSize, count, totalPage);
|
| | |
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("pe", pe);
|
| | | data.put("result_list", list);
|