Commit 1dc73212 authored by jianqian's avatar jianqian

BASE

parent 7e82206c
......@@ -85,7 +85,19 @@ public class BaseController
rspData.setTotal(new PageInfo(list).getTotal());
return rspData;
}
/**
* 响应请求分页数据(解决totle)
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
protected TableDataInfo getDataTable(PageInfo<?> page)
{
TableDataInfo rspData = new TableDataInfo();
rspData.setCode(HttpStatus.SUCCESS);
rspData.setMsg("查询成功");
rspData.setRows(page.getList());
rspData.setTotal(page.getTotal());
return rspData;
}
/**
* 响应返回结果
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment