From 6af3cb3a384f155c2d08e8eb0e75e173dba10df8 Mon Sep 17 00:00:00 2001 From: wangpeng Date: Wed, 10 Apr 2024 08:56:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9A=E6=97=B6=E5=99=A8?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trafficRemind/TrafficRemindScheduled.java | 4 ++-- src/main/resources/application.properties | 13 ++++--------- .../mybatis/datasource/system/UsersMapper.xml | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) 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