Browse Source

王子文 专项培养

wangggziwen 3 years ago
parent
commit
cf9761082a

+ 0 - 2
master/src/main/java/com/ruoyi/project/training/spec/controller/TStFeedbackController.java

@@ -545,7 +545,6 @@ public class TStFeedbackController extends BaseController
             message.setUserId(mentor.getUserId());
             message.setMsgTitle("您有一条系统消息");
             message.setMsgContent("您有一条季度汇报消息待查看");
-            // TODO: 部署前开启
             // 邮件通知导师
             MeetingInvitationMailThread meetingInvitationMailThread = new MeetingInvitationMailThread(
                     mailService, email, successorName, successorNameEN, mentorName, mentorNameEN,
@@ -584,7 +583,6 @@ public class TStFeedbackController extends BaseController
                 message.setUserId(successor.getUserId());
                 message.setMsgTitle("您有一条系统消息");
                 message.setMsgContent("您有一条月度反馈消息待查看");
-                // TODO: 部署前开启
                 // 邮件通知学员
                 MonthlyFeedbackMailThread monthlyFeedbackMailThread = new MonthlyFeedbackMailThread(
                         mailService, email, successorName, successorNameEN, mentorName, mentorNameEN,

+ 2 - 2
master/src/main/java/com/ruoyi/project/training/spec/controller/scheduler/TStFeedbackScheduler.java

@@ -13,6 +13,7 @@ import com.ruoyi.project.training.spec.domain.TStFeedback;
 import com.ruoyi.project.training.spec.service.ITStFeedbackService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
 import java.util.Date;
@@ -46,8 +47,7 @@ public class TStFeedbackScheduler {
      * 会议时间一周后给学员发送邮件
      * 定时任务触发条件:每日8:00
      */
-    // TODO: 部署前开启
-//    @Scheduled(cron = "0 0 8 * * ?")
+    @Scheduled(cron = "0 0 8 * * ?")
     private void mailSuccessorAfterMeeting() throws PinyinException {
         // 获取所有反馈记录
         List<TStFeedback> tStFeedbackList = tStFeedbackService.selectTStFeedbackList(null);