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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
package track.model;
import javax.persistence.*;
import java.util.Date;
import java.util.List;
import java.util.Map;
@Entity
public class Account {
private Long id;
private String email;
private String password;
private String company;
private String name;
private String phone;
private String qq;
private boolean isSuperUser;
private boolean isActive=true;
private Long parent = (long) 0;
private Date pubDate = new Date();
private String isSpecialAccount;
private int status;
private Integer type; //帐户类型: SA(1)
private Long roleid;
private List<String> authPermissions;
private List<Map<String, String>> ChannelPermissions;
private List<Map<String, String>> campaignPermissions;
private String pastDate;
private String remark;
@Transient
public List<String> getAuthPermissions() {
return authPermissions;
}
public void setAuthPermissions(List<String> authPermissions) {
this.authPermissions = authPermissions;
}
@Transient
public List<Map<String, String>> getCampaignPermissions() {
return campaignPermissions;
}
public void setCampaignPermissions(List<Map<String, String>> campaignPermissions) {
this.campaignPermissions = campaignPermissions;
}
@Transient
public List<Map<String, String>> getChannelPermissions() {
return ChannelPermissions;
}
public void setChannelPermissions(
List<Map<String, String>> channelPermissions) {
ChannelPermissions = channelPermissions;
}
public Account() {
super();
}
public Account(String email, String password, String company, String name,
String phone, String qq, boolean isSuperUser, boolean isActive) {
super();
this.email = email;
this.password = password;
this.company = company;
this.name = name;
this.phone = phone;
this.qq = qq;
this.isSuperUser = isSuperUser;
this.isActive = isActive;
}
public String getCompany() {
return company;
}
public String getEmail() {
return email;
}
@Id
@GeneratedValue
public Long getId() {
return id;
}
public boolean getIsSuperUser() {
return isSuperUser;
}
public String getName() {
return name;
}
public String getPassword() {
return password;
}
public String getPhone() {
return phone;
}
public Date getPubDate() {
return pubDate;
}
public String getQq() {
return qq;
}
public boolean isActive() {
return isActive;
}
public void setActive(boolean isActive) {
this.isActive = isActive;
}
public void setCompany(String company) {
this.company = company;
}
public void setEmail(String email) {
this.email = email;
}
public void setId(Long id) {
this.id = id;
}
public void setIsSuperUser(boolean isSuperUser) {
this.isSuperUser = isSuperUser;
}
public void setName(String name) {
this.name = name;
}
public void setPassword(String password) {
this.password = password;
}
public void setPhone(String phone) {
this.phone = phone;
}
public void setPubDate(Date pubDate) {
this.pubDate = pubDate;
}
public void setQq(String qq) {
this.qq = qq;
}
public void setSuperUser(boolean isSuperUser) {
this.isSuperUser = isSuperUser;
}
public Long getParent() {
return parent;
}
public void setParent(Long parent) {
this.parent = parent;
}
public String getIsSpecialAccount() {
return isSpecialAccount;
}
public void setIsSpecialAccount(String isSpecialAccount) {
this.isSpecialAccount = isSpecialAccount;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public Long getRoleid() {
return roleid;
}
public void setRoleid(Long roleid) {
this.roleid = roleid;
}
public String getPastDate() {
return pastDate;
}
public void setPastDate(String pastDate) {
this.pastDate = pastDate;
}
@Column(length=28)
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
@Override
public String toString() {
return "Account{" +
"authPermissions=" + authPermissions +
", campaignPermissions=" + campaignPermissions +
", ChannelPermissions=" + ChannelPermissions +
", company='" + company + '\'' +
", email='" + email + '\'' +
", id=" + id +
", isActive=" + isActive +
", isSpecialAccount='" + isSpecialAccount + '\'' +
", isSuperUser=" + isSuperUser +
", name='" + name + '\'' +
", parent=" + parent +
", password='" + password + '\'' +
", pastDate='" + pastDate + '\'' +
", phone='" + phone + '\'' +
", pubDate=" + pubDate +
", qq='" + qq + '\'' +
", remark='" + remark + '\'' +
", roleid=" + roleid +
", status=" + status +
", type=" + type +
'}';
}
}