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; } }