童刚
2022-08-09 0707dc0f7ea1d37712df1614627538684474b623
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
package com.hz.sms.dto;
 
 
import java.text.SimpleDateFormat;
import java.util.Date;
 
 
public class SmsGeneralSendDto {
 
    /*标识*/
    private String id;
    /*短信内容*/
    private String msg;
    /*手机号码*/
    private String phone;
    /*定时发送短信时间*/
    private String sendtime;
    /*如需状态报告则传true*/
    private String report = "false";
    /*下发短信号码扩展码*/
    private String extend;
    /*该条短信在您业务系统内的ID*/
    private String uid;
 
 
    public SmsGeneralSendDto() {
    }
 
    public SmsGeneralSendDto(String id, String msg, String phone, String sendtime, String report, String extend, String uid) {
        this.id = id;
        this.msg = msg;
        this.phone = phone;
        this.sendtime = sendtime;
        this.report = report;
        this.extend = extend;
        this.uid = uid;
    }
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String getMsg() {
        return msg;
    }
 
    public void setMsg(String msg) {
        this.msg = msg;
    }
 
    public String getPhone() {
        return phone;
    }
 
    public void setPhone(String phone) {
        this.phone = phone;
    }
 
    public String getSendtime() {
        return sendtime;
    }
    public Date getDateSendTime(){
        try {
            Date dateSendTime = new SimpleDateFormat("yyyyMMddHHmm").parse(sendtime);
            return dateSendTime;
        }catch (Exception e){
            return null;
        }
    }
 
    public void setSendtime(String sendtime) {
        this.sendtime = sendtime;
    }
 
    public String getReport() {
        return report;
    }
 
    public void setReport(String report) {
        this.report = report;
    }
 
    public String getExtend() {
        return extend;
    }
 
    public void setExtend(String extend) {
        this.extend = extend;
    }
 
    public String getUid() {
        return uid;
    }
 
    public void setUid(String uid) {
        this.uid = uid;
    }
 
}