提交 | 用户 | age
|
6de4e8
|
1 |
package com.hz.sms.dto; |
童 |
2 |
|
|
3 |
|
|
4 |
import java.text.SimpleDateFormat; |
|
5 |
import java.util.Date; |
|
6 |
|
|
7 |
|
|
8 |
public class SmsGeneralSendDto { |
|
9 |
|
|
10 |
/*标识*/ |
|
11 |
private String id; |
|
12 |
/*短信内容*/ |
|
13 |
private String msg; |
|
14 |
/*手机号码*/ |
|
15 |
private String phone; |
|
16 |
/*定时发送短信时间*/ |
|
17 |
private String sendtime; |
|
18 |
/*如需状态报告则传true*/ |
|
19 |
private String report = "false"; |
|
20 |
/*下发短信号码扩展码*/ |
|
21 |
private String extend; |
|
22 |
/*该条短信在您业务系统内的ID*/ |
|
23 |
private String uid; |
|
24 |
|
|
25 |
|
|
26 |
public SmsGeneralSendDto() { |
|
27 |
} |
|
28 |
|
|
29 |
public SmsGeneralSendDto(String id, String msg, String phone, String sendtime, String report, String extend, String uid) { |
|
30 |
this.id = id; |
|
31 |
this.msg = msg; |
|
32 |
this.phone = phone; |
|
33 |
this.sendtime = sendtime; |
|
34 |
this.report = report; |
|
35 |
this.extend = extend; |
|
36 |
this.uid = uid; |
|
37 |
} |
|
38 |
|
|
39 |
public String getId() { |
|
40 |
return id; |
|
41 |
} |
|
42 |
|
|
43 |
public void setId(String id) { |
|
44 |
this.id = id; |
|
45 |
} |
|
46 |
|
|
47 |
public String getMsg() { |
|
48 |
return msg; |
|
49 |
} |
|
50 |
|
|
51 |
public void setMsg(String msg) { |
|
52 |
this.msg = msg; |
|
53 |
} |
|
54 |
|
|
55 |
public String getPhone() { |
|
56 |
return phone; |
|
57 |
} |
|
58 |
|
|
59 |
public void setPhone(String phone) { |
|
60 |
this.phone = phone; |
|
61 |
} |
|
62 |
|
|
63 |
public String getSendtime() { |
|
64 |
return sendtime; |
|
65 |
} |
|
66 |
public Date getDateSendTime(){ |
|
67 |
try { |
|
68 |
Date dateSendTime = new SimpleDateFormat("yyyyMMddHHmm").parse(sendtime); |
|
69 |
return dateSendTime; |
|
70 |
}catch (Exception e){ |
|
71 |
return null; |
|
72 |
} |
|
73 |
} |
|
74 |
|
|
75 |
public void setSendtime(String sendtime) { |
|
76 |
this.sendtime = sendtime; |
|
77 |
} |
|
78 |
|
|
79 |
public String getReport() { |
|
80 |
return report; |
|
81 |
} |
|
82 |
|
|
83 |
public void setReport(String report) { |
|
84 |
this.report = report; |
|
85 |
} |
|
86 |
|
|
87 |
public String getExtend() { |
|
88 |
return extend; |
|
89 |
} |
|
90 |
|
|
91 |
public void setExtend(String extend) { |
|
92 |
this.extend = extend; |
|
93 |
} |
|
94 |
|
|
95 |
public String getUid() { |
|
96 |
return uid; |
|
97 |
} |
|
98 |
|
|
99 |
public void setUid(String uid) { |
|
100 |
this.uid = uid; |
|
101 |
} |
|
102 |
|
|
103 |
} |