diff --git a/src/main/java/com/zcloud/scheduled/trafficRemind/TrafficRemindScheduled.java b/src/main/java/com/zcloud/scheduled/trafficRemind/TrafficRemindScheduled.java index d19fdb6..256e1cb 100644 --- a/src/main/java/com/zcloud/scheduled/trafficRemind/TrafficRemindScheduled.java +++ b/src/main/java/com/zcloud/scheduled/trafficRemind/TrafficRemindScheduled.java @@ -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("============定时发送今日交通到期提醒=========="); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 64e20c2..475d264 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -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 diff --git a/src/main/resources/mybatis/datasource/system/UsersMapper.xml b/src/main/resources/mybatis/datasource/system/UsersMapper.xml index 5388d48..3f240d2 100644 --- a/src/main/resources/mybatis/datasource/system/UsersMapper.xml +++ b/src/main/resources/mybatis/datasource/system/UsersMapper.xml @@ -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