@@ -25,7 +25,7 @@ public class InsureEmailSchedule {
//每小时执行1次
- @Scheduled(fixedDelay =120* 1000)
+ @Scheduled(cron = "0 0/2 8-20 * * *")
public void task() throws IOException {
agreementLogic.sendEmailSche();
agreementLogic.sendEmailScheEM();