修改定时器时间
parent
a05521088b
commit
6af3cb3a38
|
@ -40,8 +40,8 @@ public class TrafficRemindScheduled {
|
|||
private NoticeManagementService noticeManagementService;
|
||||
|
||||
|
||||
//@Scheduled(cron ="0 0 8 * * ?") // 每天8点
|
||||
@Scheduled(cron ="0/5 * * * * ?")
|
||||
@Scheduled(cron ="0 0 8 * * ?") // 每天8点
|
||||
// @Scheduled(cron ="0/5 * * * * ?")
|
||||
public void Scheduled(){
|
||||
try {
|
||||
System.out.println("============定时发送今日交通到期提醒==========");
|
||||
|
|
|
@ -4,19 +4,14 @@ server.port=9099
|
|||
#\u6B63\u5F0F
|
||||
#\u6570\u636E\u6E901
|
||||
datasource.no1.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no1.url=jdbc:mysql://192.168.0.64:3306/qa-traffic-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no1.url=jdbc:mysql://192.168.0.26:3306/qa-traffic-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no1.username=root
|
||||
datasource.no1.password=root
|
||||
datasource.no1.password=1234
|
||||
#\u6570\u636E\u6E902(\u9ED8\u8BA4\u6CA1\u7528\uFF0C\u4FE9\u5730\u5740\u5199\u4E00\u6837\u5373\u53EF)
|
||||
datasource.no2.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no2.url=jdbc:mysql://192.168.0.64:3306/qa-traffic-education-org?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no2.url=jdbc:mysql://192.168.0.26:3306/qa-traffic-education-org?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no2.username=root
|
||||
datasource.no2.password=root
|
||||
|
||||
#datasource.no1.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
#datasource.no1.url=jdbc:mysql://39.103.211.146:33068/zcloud_prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
#datasource.no1.username=root
|
||||
#datasource.no1.password=Mysqlzcloud88888
|
||||
datasource.no2.password=1234
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
p.NAME AS POST_NAME,
|
||||
d.NAME AS DEPARTMENT_NAME
|
||||
from
|
||||
sys_suer f
|
||||
sys_user f
|
||||
left join OA_DEPARTMENT d on d.DEPARTMENT_ID=f.DEPARTMENT_ID
|
||||
left join SYS_POST p on p.POST_ID=f.POST_ID
|
||||
where
|
||||
|
|
Loading…
Reference in New Issue