码迷,mamicode.com
首页 > Windows程序 > 详细

测试windows Live Writer

时间:2016-01-26 20:06:12      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:

   /**
     * 跳转到播放器分类管理页面 查看一级分类数据
     *
     * @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));
    }

测试windows Live Writer

标签:

原文地址:http://www.cnblogs.com/zhanglongyang/p/5161208.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!