Promotion.java
5.73 KB
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
package com.diligrp.mobsite.man.domain;
import java.io.Serializable;
import com.diligrp.website.util.domain.BaseDomain;
import java.util.*;
import java.sql.Timestamp;
/**
* <B>Description</B> <br />
* <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
* 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
* <B>Company</B> 地利集团
* @createTime 2014-9-24 16:53:43
* @author template
*/
public class Promotion extends BaseDomain {
public static final Integer DEVICE_TYPE_ANDROID = 1;
public static final Integer DEVICE_TYPE_IOS = 2;
public static final Integer DEVICE_TYPE_ALL = 3;
public static final Integer SEND_TYPE_NOW = 1;
public static final Integer SEND_TYPE_SCHEDULE = 2;
public static final Integer SEND_FLAG_SUCCESS = 1;
public static final Integer SEND_FLAG_FAILURE = 2;
/**
* 市场id
*/
private Long marketId;
/**
* 市场名称
*/
private String marketName;
/**
* 标题
*/
private String title;
/**
* 消息内容
*/
private String content;
/**
* Android:1,Ios:2,所有设备:3
*/
private Integer deviceType;
/**
* 所有人:1,个人:2
*/
private Integer receiveCrowd;
/**
* 立即发送:1,指定时间发送:2
*/
private Integer sendType;
/**
* 发送时间
*/
private Timestamp sendTime;
/**
* 直接打开应用:1,打开分类搜索列表:2,打开商品详情页:3,打开店铺页:4
*/
private Integer openType;
/**
* 自定义打开页面url或者列表id
*/
private String openUrl;
/**
* 发送成功:1,失败:2
*/
private Integer sendFlag;
/**
* 创建人id
*/
private Long creatorId;
/**
* 发送ID
*/
private String sendId;
/**
* 界面属性
*/
private List<Long> marketIds;
private List<Integer> deviceTypes;
private String sendTimeString;
public String getSendId() {
return sendId;
}
public void setSendId(String sendId) {
this.sendId = sendId;
}
public String getSendTimeString() {
return sendTimeString;
}
public void setSendTimeString(String sendTimeString) {
this.sendTimeString = sendTimeString;
}
public List<Integer> getDeviceTypes() {
return deviceTypes;
}
public void setDeviceTypes(List<Integer> deviceTypes) {
this.deviceTypes = deviceTypes;
}
public List<Long> getMarketIds() {
return marketIds;
}
public void setMarketIds(List<Long> marketIds) {
this.marketIds = marketIds;
}
public String getMarketName() {
return marketName;
}
public void setMarketName(String marketName) {
this.marketName = marketName;
}
public void setMarketId (Long marketId){
this.marketId = marketId;
}
public Long getMarketId(){
return this.marketId;
}
public void setTitle (String title){
this.title = title;
}
public String getTitle(){
return this.title;
}
public void setContent (String content){
this.content = content;
}
public String getContent(){
return this.content;
}
public void setDeviceType (Integer deviceType){
this.deviceType = deviceType;
}
public Integer getDeviceType(){
return this.deviceType;
}
public void setReceiveCrowd (Integer receiveCrowd){
this.receiveCrowd = receiveCrowd;
}
public Integer getReceiveCrowd(){
return this.receiveCrowd;
}
public void setSendType (Integer sendType){
this.sendType = sendType;
}
public Integer getSendType(){
return this.sendType;
}
public void setSendTime (Timestamp sendTime){
this.sendTime = sendTime;
}
public Timestamp getSendTime(){
return this.sendTime;
}
public void setOpenType (Integer openType){
this.openType = openType;
}
public Integer getOpenType(){
return this.openType;
}
public void setOpenUrl (String openUrl){
this.openUrl = openUrl;
}
public String getOpenUrl(){
return this.openUrl;
}
public void setSendFlag (Integer sendFlag){
this.sendFlag = sendFlag;
}
public Integer getSendFlag(){
return this.sendFlag;
}
public void setCreatorId (Long creatorId){
this.creatorId = creatorId;
}
public Long getCreatorId(){
return this.creatorId;
}
public String toString(){
StringBuffer sb = new StringBuffer();
sb.append("Promotion [");
sb.append("id = ");
sb.append(id);
sb.append(", marketId = ");
sb.append(marketId);
sb.append(", title = ");
sb.append(title);
sb.append(", content = ");
sb.append(content);
sb.append(", deviceType = ");
sb.append(deviceType);
sb.append(", receiveCrowd = ");
sb.append(receiveCrowd);
sb.append(", sendType = ");
sb.append(sendType);
sb.append(", sendTime = ");
sb.append(sendTime);
sb.append(", openType = ");
sb.append(openType);
sb.append(", openUrl = ");
sb.append(openUrl);
sb.append(", sendFlag = ");
sb.append(sendFlag);
sb.append(", creatorId = ");
sb.append(creatorId);
sb.append(", sendId = ");
sb.append(sendId);
sb.append(", yn = ");
sb.append(yn);
sb.append(", created = ");
sb.append(created);
sb.append(", modified = ");
sb.append(modified);
sb.append("]");
return sb.toString();
}
}