标签:
/** * 跳转到播放器分类管理页面 查看一级分类数据 * * @return */ @RequestMapping(value = "/playerList") @ResponseBody public void toPlayerType( @RequestParam(value = "page", defaultValue = "1") int page, @RequestParam(value = "rows", defaultValue = "10") int rows, HttpServletResponse response) { PageBean pageBean = new PageBean(page, rows); List<PlayerType> ptList = playerTypeService.getList(0, null, pageBean); for (PlayerType pt : ptList) { if (String.valueOf(pt.getTime()).length() > 11) { pt.setCreateTime(DateUtil.format(pt.getTime())); } else { pt.setCreateTime(DateUtil.format(pt.getTime() * 1000l)); } } writeInfo(response, JSON.toJSONString(new DataGridBean(NumberUtil.getInt(pageBean.getRowCount() + "", 0), ptList), SerializerFeature.DisableCircularReferenceDetect)); }
标签:
原文地址:http://www.cnblogs.com/zhanglongyang/p/5161208.html