提交 | 用户 | 时间
|
e57a89
|
1 |
package com.jcdm.common.core.page; |
懒 |
2 |
|
|
3 |
import java.io.Serializable; |
|
4 |
import java.util.List; |
|
5 |
|
|
6 |
/** |
|
7 |
* 表格分页数据对象 |
|
8 |
* |
|
9 |
* @author jc |
|
10 |
*/ |
|
11 |
public class TableDataInfo implements Serializable |
|
12 |
{ |
|
13 |
private static final long serialVersionUID = 1L; |
|
14 |
|
|
15 |
/** 总记录数 */ |
|
16 |
private long total; |
|
17 |
|
|
18 |
/** 列表数据 */ |
|
19 |
private List<?> rows; |
|
20 |
|
|
21 |
/** 消息状态码 */ |
|
22 |
private int code; |
|
23 |
|
|
24 |
/** 消息内容 */ |
|
25 |
private String msg; |
|
26 |
|
|
27 |
/** |
|
28 |
* 表格数据对象 |
|
29 |
*/ |
|
30 |
public TableDataInfo() |
|
31 |
{ |
|
32 |
} |
|
33 |
|
|
34 |
/** |
|
35 |
* 分页 |
|
36 |
* |
|
37 |
* @param list 列表数据 |
|
38 |
* @param total 总记录数 |
|
39 |
*/ |
|
40 |
public TableDataInfo(List<?> list, int total) |
|
41 |
{ |
|
42 |
this.rows = list; |
|
43 |
this.total = total; |
|
44 |
} |
|
45 |
|
|
46 |
public long getTotal() |
|
47 |
{ |
|
48 |
return total; |
|
49 |
} |
|
50 |
|
|
51 |
public void setTotal(long total) |
|
52 |
{ |
|
53 |
this.total = total; |
|
54 |
} |
|
55 |
|
|
56 |
public List<?> getRows() |
|
57 |
{ |
|
58 |
return rows; |
|
59 |
} |
|
60 |
|
|
61 |
public void setRows(List<?> rows) |
|
62 |
{ |
|
63 |
this.rows = rows; |
|
64 |
} |
|
65 |
|
|
66 |
public int getCode() |
|
67 |
{ |
|
68 |
return code; |
|
69 |
} |
|
70 |
|
|
71 |
public void setCode(int code) |
|
72 |
{ |
|
73 |
this.code = code; |
|
74 |
} |
|
75 |
|
|
76 |
public String getMsg() |
|
77 |
{ |
|
78 |
return msg; |
|
79 |
} |
|
80 |
|
|
81 |
public void setMsg(String msg) |
|
82 |
{ |
|
83 |
this.msg = msg; |
|
84 |
} |
|
85 |
} |