Commit 9863e2a912884e104123d32b3e258042f7eec6e6

Authored by 王言钊
1 parent cc0ccdc2

新增直播申请短信通知功能3

src/main/java/com/cnlive/shenhe/job/LiveApplyJob.java
@@ -100,6 +100,7 @@ public class LiveApplyJob { @@ -100,6 +100,7 @@ public class LiveApplyJob {
100 String url = email_send_URL; 100 String url = email_send_URL;
101 List<ShyEmail> shyEmailList = emailService.getEmailSendList(CommonConst.EMAIL_LIVEAPPLY); 101 List<ShyEmail> shyEmailList = emailService.getEmailSendList(CommonConst.EMAIL_LIVEAPPLY);
102 logger.info("直播申请邮件通知开始,共" + shyLiveApplyList.size() + "个申请,每个申请通知" + shyEmailList.size() + "个邮箱"); 102 logger.info("直播申请邮件通知开始,共" + shyLiveApplyList.size() + "个申请,每个申请通知" + shyEmailList.size() + "个邮箱");
  103 + int i = 0;
103 for (ShyLiveapply liveApply : shyLiveApplyList) { 104 for (ShyLiveapply liveApply : shyLiveApplyList) {
104 logger.info("当前发送邮件的直播申请id为:" + liveApply.getId()); 105 logger.info("当前发送邮件的直播申请id为:" + liveApply.getId());
105 //初始化通知状态 106 //初始化通知状态
@@ -111,7 +112,6 @@ public class LiveApplyJob { @@ -111,7 +112,6 @@ public class LiveApplyJob {
111 if (CommonUtils.isNotNull(shySites)) { 112 if (CommonUtils.isNotNull(shySites)) {
112 liveApply.setSpid_desc(shySites.getName()); 113 liveApply.setSpid_desc(shySites.getName());
113 } 114 }
114 - int i = 0;  
115 //循环需要发送邮件的邮箱 115 //循环需要发送邮件的邮箱
116 for (ShyEmail shyEmail : shyEmailList) { 116 for (ShyEmail shyEmail : shyEmailList) {
117 String startTime = CommonUtils.formatDate(liveApply.getPre_start_time(), "yyyy-MM-dd HH:mm:ss"); 117 String startTime = CommonUtils.formatDate(liveApply.getPre_start_time(), "yyyy-MM-dd HH:mm:ss");