提交 | 用户 | age
|
6de4e8
|
1 |
package com.hz.sms.dto; |
童 |
2 |
|
|
3 |
|
6dde8c
|
4 |
import com.hx.util.StringUtils; |
童 |
5 |
import lombok.Data; |
|
6 |
|
6de4e8
|
7 |
import java.text.SimpleDateFormat; |
童 |
8 |
import java.util.Date; |
|
9 |
|
6dde8c
|
10 |
@Data |
6de4e8
|
11 |
public class SmsGeneralSendDto { |
童 |
12 |
|
2ad87f
|
13 |
/**标识 (记录sms_general_item表数据的id)*/ |
6de4e8
|
14 |
private String id; |
2ad87f
|
15 |
/**账号*/ |
6dde8c
|
16 |
private String account; |
2ad87f
|
17 |
/**密码*/ |
6dde8c
|
18 |
private String password; |
2ad87f
|
19 |
/**签名*/ |
6dde8c
|
20 |
private String sign; |
2ad87f
|
21 |
/**定时短信时间,格式为yyyyMMddHHmm,值小于或等于当前时间则立即发送,默认立即发送*/ |
6dde8c
|
22 |
private String timestamp; |
2ad87f
|
23 |
/**短信内容*/ |
6de4e8
|
24 |
private String msg; |
2ad87f
|
25 |
/**手机号码*/ |
6de4e8
|
26 |
private String phone; |
2ad87f
|
27 |
/**定时发送短信时间*/ |
15ab19
|
28 |
private String sendTime; |
2ad87f
|
29 |
/**如需状态报告则传true*/ |
6dde8c
|
30 |
private String report; |
2ad87f
|
31 |
/**下发短信号码扩展码*/ |
6de4e8
|
32 |
private String extend; |
2ad87f
|
33 |
/**该条短信在您业务系统内的ID*/ |
6de4e8
|
34 |
private String uid; |
2ad87f
|
35 |
/**短信类型*/ |
6dde8c
|
36 |
private Integer smsType; |
2ad87f
|
37 |
/** 发送模式 (0: 立即发送; 1:异步发送)*/ |
15ab19
|
38 |
private Integer sendModel; |
6de4e8
|
39 |
|
童 |
40 |
|
|
41 |
public Date getDateSendTime(){ |
|
42 |
try { |
15ab19
|
43 |
Date dateSendTime = new SimpleDateFormat("yyyyMMddHHmm").parse(sendTime); |
6de4e8
|
44 |
return dateSendTime; |
童 |
45 |
}catch (Exception e){ |
|
46 |
return null; |
|
47 |
} |
|
48 |
} |
|
49 |
|
|
50 |
public String getReport() { |
6dde8c
|
51 |
if (!StringUtils.isEmpty(report) && !"true".equals(report)){ |
童 |
52 |
return null; |
|
53 |
} |
6de4e8
|
54 |
return report; |
童 |
55 |
} |
|
56 |
} |