src/main/java/com/nanometer/smartlab/email/EmailSendSchedule.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/nanometer/smartlab/email/EmailSendSchedule.java
@@ -69,7 +69,7 @@ // @Scheduled(cron = "0/5 * * * * ?") //每隔5秒执行一次 @Scheduled(cron = "0 0/3 * * * ?") //每天8点执行一次 @Scheduled(cron = "0 0 8 * * ?")//每天8点执行一次 public void EmailSendStock(){ //收件人为人员角色为库管员的邮箱 List<String> revicerList = userService.getLibrarianEmail(); @@ -124,7 +124,7 @@ content.append("</body></html>"); try { // EmailSend.sendArrivalEmail(revicerList,content.toString()); EmailSend.sendArrivalEmail(revicerList,content.toString()); // 发送成功,更新邮件发送状态为:已发送 } catch (BusinessException e) { // 发送失败,更新邮件发送状态为:发送失败