|
@@ -143,6 +143,7 @@ public class ZxConferenceServiceImpl implements IZxConferenceService {
|
|
@Override
|
|
@Override
|
|
public int updateReply(ZxConferenceUser zxConferenceUser) {
|
|
public int updateReply(ZxConferenceUser zxConferenceUser) {
|
|
zxConferenceUser.setUserId(SecurityUtils.getUserId());
|
|
zxConferenceUser.setUserId(SecurityUtils.getUserId());
|
|
|
|
+ zxConferenceUser.setReplyTime(DateUtils.getNowDate());
|
|
return zxConferenceMapper.updateReply(zxConferenceUser);
|
|
return zxConferenceMapper.updateReply(zxConferenceUser);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -212,6 +213,7 @@ public class ZxConferenceServiceImpl implements IZxConferenceService {
|
|
String SignName = "潜山市政协办公室";
|
|
String SignName = "潜山市政协办公室";
|
|
List<String> signNameList = new ArrayList<>();
|
|
List<String> signNameList = new ArrayList<>();
|
|
List<String> templateList = new ArrayList<>();
|
|
List<String> templateList = new ArrayList<>();
|
|
|
|
+ List<String> phoneJsonList = new ArrayList<>();
|
|
StringBuffer signNameJson;
|
|
StringBuffer signNameJson;
|
|
StringBuffer phoneNumberJson;
|
|
StringBuffer phoneNumberJson;
|
|
StringBuffer templateParamJson;
|
|
StringBuffer templateParamJson;
|
|
@@ -250,17 +252,17 @@ public class ZxConferenceServiceImpl implements IZxConferenceService {
|
|
phoneNumberJson.append("]");
|
|
phoneNumberJson.append("]");
|
|
signNameJson.append("]");
|
|
signNameJson.append("]");
|
|
templateParamJson.append("]");
|
|
templateParamJson.append("]");
|
|
- phoneList.add(phoneNumberJson.toString());
|
|
|
|
|
|
+ phoneJsonList.add(phoneNumberJson.toString());
|
|
signNameList.add(signNameJson.toString());
|
|
signNameList.add(signNameJson.toString());
|
|
templateList.add(templateParamJson.toString());
|
|
templateList.add(templateParamJson.toString());
|
|
}
|
|
}
|
|
//组装请求对象
|
|
//组装请求对象
|
|
- if (times == phoneList.size()) {
|
|
|
|
|
|
+ if (times == phoneJsonList.size()) {
|
|
for (int i = 0; i < times; i++) {
|
|
for (int i = 0; i < times; i++) {
|
|
long startTimeSql = System.currentTimeMillis();
|
|
long startTimeSql = System.currentTimeMillis();
|
|
SendBatchSmsRequest sendBatchSmsRequest = new SendBatchSmsRequest();
|
|
SendBatchSmsRequest sendBatchSmsRequest = new SendBatchSmsRequest();
|
|
//组装电话号码
|
|
//组装电话号码
|
|
- sendBatchSmsRequest.setPhoneNumberJson(phoneList.get(i));
|
|
|
|
|
|
+ sendBatchSmsRequest.setPhoneNumberJson(phoneJsonList.get(i));
|
|
//签名名称
|
|
//签名名称
|
|
sendBatchSmsRequest.setSignNameJson(signNameList.get(i));
|
|
sendBatchSmsRequest.setSignNameJson(signNameList.get(i));
|
|
//替换参数
|
|
//替换参数
|
|
@@ -277,7 +279,7 @@ public class ZxConferenceServiceImpl implements IZxConferenceService {
|
|
String code = sendBatchSmsResponse.getBody().getCode();
|
|
String code = sendBatchSmsResponse.getBody().getCode();
|
|
if (sendBatchSmsResponse.getBody().getCode() != null && "OK".equals(code)) {
|
|
if (sendBatchSmsResponse.getBody().getCode() != null && "OK".equals(code)) {
|
|
//批量请求发送短信成功
|
|
//批量请求发送短信成功
|
|
- System.out.println("批量会议短信发送成功:" + phoneList.get(i).split(",").length + "条");
|
|
|
|
|
|
+ System.out.println("批量会议短信发送成功:" + phoneJsonList.get(i).split(",").length + "条");
|
|
backResult = backResult + "第" + i + "次批量成功 ";
|
|
backResult = backResult + "第" + i + "次批量成功 ";
|
|
} else {
|
|
} else {
|
|
System.out.println("批量会议短信发送失败!");
|
|
System.out.println("批量会议短信发送失败!");
|