/** 晒单列表记录 */ @RequestMapping("/orderInputList.json") @ResponseBody public Page<Map<String, Object>> orderInputList( String userName, String groupName, HttpServletRequest request) { logger.info("晒单录入列表记录: {}, {}", userName, groupName); Page<Map<String, Object>> page = PageUtil.getPage(request); // 统计总记录数 page.setTotal( userDynamicInfoService.count( userName, UserDynamicInfoTypeEnum.S.getCode(), null, null, null, null, UserDynamicInfoIsInputEnum.N.getCode())); // 分页记录 List<Map<String, Object>> list = userDynamicInfoService.find( userName, UserDynamicInfoTypeEnum.S.getCode(), null, null, null, null, UserDynamicInfoIsInputEnum.N.getCode(), page.getFirst(), page.getPageSize()); page.setRows(list); return page; }
/** 晒单信息管理列表记录 */ @RequestMapping("/orderList.json") @ResponseBody public Page<Map<String, Object>> orderList( String userName, String groupName, String auditStatus, HttpServletRequest request) { logger.info("晒单信息管理列表记录: userName,groupName", userName, groupName); Page<Map<String, Object>> page = PageUtil.getPage(request); // 统计总记录数 page.setTotal( userDynamicInfoService.orderCount( userName, groupName, UserDynamicInfoTypeEnum.S.getCode(), auditStatus, null)); // 分页记录 List<Map<String, Object>> list = userDynamicInfoService.find( userName, groupName, UserDynamicInfoTypeEnum.S.getCode(), auditStatus, null, page.getFirst(), page.getPageSize()); page.setRows(list); return page; }