Commit 1064a47d03bf4a259586f408e640ca626443774c

Authored by 徐泉
1 parent 461abb08
Exists in master

修改提交

cloud/quartz/src/main/java/com/sincere/quartz/datasource/DataSourceConfig.java
... ... @@ -18,25 +18,25 @@ import java.util.Map;
18 18 public class DataSourceConfig {
19 19  
20 20 @Bean(name = "master")
21   - @ConfigurationProperties(prefix = "datasource.master")
  21 + @ConfigurationProperties(prefix = "spring.datasource.master")
22 22 public DataSource dataSource1() {
23 23 return DataSourceBuilder.create().build();
24 24 }
25 25  
26 26 @Bean(name = "slave")
27   - @ConfigurationProperties(prefix = "datasource.slave")
  27 + @ConfigurationProperties(prefix = "spring.datasource.slave")
28 28 public DataSource dataSource2() {
29 29 return DataSourceBuilder.create().build();
30 30 }
31 31  
32 32 @Bean(name = "yxy")
33   - @ConfigurationProperties(prefix = "datasource.yxy")
  33 + @ConfigurationProperties(prefix = "spring.datasource.yxy")
34 34 public DataSource dataSource3() {
35 35 return DataSourceBuilder.create().build();
36 36 }
37 37  
38 38 @Bean(name = "update")
39   - @ConfigurationProperties(prefix = "datasource.update")
  39 + @ConfigurationProperties(prefix = "spring.datasource.update")
40 40 public DataSource dataSource4() {
41 41 return DataSourceBuilder.create().build();
42 42 }
... ...
cloud/quartz/src/main/java/com/sincere/quartz/job/SyncJob.java
... ... @@ -22,8 +22,8 @@ public class SyncJob {
22 22 @Autowired
23 23 YXYReadService yxyReadService ;
24 24  
25   - @Scheduled(cron = "30 1 22 * * ? ")
26   -// @Scheduled(fixedDelay = 120 * 60 * 1000)
  25 +// @Scheduled(cron = "30 1 22 * * ? ")
  26 + @Scheduled(fixedDelay = 220 * 60 * 1000)
27 27 public void Sync(){
28 28 //翼校通的同步 之后还有钉钉的同步等等
29 29 yxyReadService.sync();
... ...
cloud/quartz/src/main/java/com/sincere/quartz/third/yixueyun/YXYReadService.java
... ... @@ -54,7 +54,7 @@ public class YXYReadService {
54 54 private static String getALlDept_method = "getDeptInfo";
55 55  
56 56 @Autowired
57   - YxyService yxyService ;
  57 + YxyService yxyService;
58 58  
59 59 private Logger logger = LoggerFactory.getLogger(YXYReadService.class);
60 60  
... ...