地质所 沉降监测网建设项目
zmk
2024-05-15 9e3afc6d0fa514f986d3fea40fa23124e6fb5070
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
package com.javaweb.app.common.page;
 
import java.io.Serializable;
import java.util.List;
 
/**
 * 表格分页数据对象
 */
public class ResultData implements Serializable
{
    //
    private static final long serialVersionUID = -2652773809295318093L;
 
    /** 消息状态码 */
    private int               code;
 
    private String            msg;
 
    /** 总记录数 */
    private Long              total;
 
    /** 列表数据 */
    private List<?>           rows;
 
    private Object            data;
 
    /**
     * 
     * @author zmr
     */
    public ResultData()
    {
        super();
    }
 
    /**
     * @param code
     * @param msg
     * @author zmr
     */
    public ResultData(int code, String msg)
    {
        super();
        this.code = code;
        this.msg = msg;
    }
 
    /**
     * @param code
     * @param msg
     * @param data
     * @author zmr
     */
    public ResultData(int code, String msg, Object data)
    {
        super();
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
 
    /**
     * @param code
     * @param msg
     * @param total
     * @param rows
     * @author zmr
     */
    public ResultData(int code, String msg, Long total, List<?> rows)
    {
        super();
        this.code = code;
        this.msg = msg;
        this.total = total;
        this.rows = rows;
    }
 
    public int getCode()
    {
        return code;
    }
 
    public void setCode(int code)
    {
        this.code = code;
    }
 
    public String getMsg()
    {
        return msg;
    }
 
    public void setMsg(String msg)
    {
        this.msg = msg;
    }
 
    public Long getTotal()
    {
        return total;
    }
 
    public void setTotal(Long total)
    {
        this.total = total;
    }
 
    public List<?> getRows()
    {
        return rows;
    }
 
    public void setRows(List<?> rows)
    {
        this.rows = rows;
    }
 
    public Object getData()
    {
        return data;
    }
 
    public void setData(Object data)
    {
        this.data = data;
    }
 
    public static ResultData success()
    {
        return new ResultData(0, "success");
    }
 
    public static ResultData success(Object data)
    {
        return new ResultData(0, "success", data);
    }
}