完成工程管理模块前端页面与SQL脚本开发
This commit is contained in:
@@ -43,6 +43,23 @@ public class TableDataInfo implements Serializable
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 构建分页数据
|
||||
*
|
||||
* @param list 列表数据
|
||||
* @param total 总记录数
|
||||
* @return 分页数据对象
|
||||
*/
|
||||
public static TableDataInfo build(List<?> list, long total)
|
||||
{
|
||||
TableDataInfo rspData = new TableDataInfo();
|
||||
rspData.setCode(200);
|
||||
rspData.setMsg("查询成功");
|
||||
rspData.setRows(list);
|
||||
rspData.setTotal(total);
|
||||
return rspData;
|
||||
}
|
||||
|
||||
public long getTotal()
|
||||
{
|
||||
return total;
|
||||
|
||||
Reference in New Issue
Block a user