|
|
@ -5,10 +5,10 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 表格分页数据对象
|
|
|
|
* 表格分页数据对象
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author ruoyi
|
|
|
|
* @author ruoyi
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class TableDataInfo implements Serializable
|
|
|
|
public class TableDataInfo<T> implements Serializable
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
@ -16,7 +16,7 @@ public class TableDataInfo implements Serializable
|
|
|
|
private long total;
|
|
|
|
private long total;
|
|
|
|
|
|
|
|
|
|
|
|
/** 列表数据 */
|
|
|
|
/** 列表数据 */
|
|
|
|
private List<?> rows;
|
|
|
|
private List<T> rows;
|
|
|
|
|
|
|
|
|
|
|
|
/** 消息状态码 */
|
|
|
|
/** 消息状态码 */
|
|
|
|
private int code;
|
|
|
|
private int code;
|
|
|
@ -33,11 +33,11 @@ public class TableDataInfo implements Serializable
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 分页
|
|
|
|
* 分页
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param list 列表数据
|
|
|
|
* @param list 列表数据
|
|
|
|
* @param total 总记录数
|
|
|
|
* @param total 总记录数
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public TableDataInfo(List<?> list, int total)
|
|
|
|
public TableDataInfo(List<T> list, int total)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.rows = list;
|
|
|
|
this.rows = list;
|
|
|
|
this.total = total;
|
|
|
|
this.total = total;
|
|
|
@ -53,12 +53,12 @@ public class TableDataInfo implements Serializable
|
|
|
|
this.total = total;
|
|
|
|
this.total = total;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<?> getRows()
|
|
|
|
public List<T> getRows()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return rows;
|
|
|
|
return rows;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setRows(List<?> rows)
|
|
|
|
public void setRows(List<T> rows)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.rows = rows;
|
|
|
|
this.rows = rows;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -82,4 +82,4 @@ public class TableDataInfo implements Serializable
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.msg = msg;
|
|
|
|
this.msg = msg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|