CX 8 months ago
parent
commit
fd6a8ff7e5

+ 2 - 6
src/main/java/com/dashitech/migration/StartApplication.java

@@ -3,7 +3,6 @@ package com.dashitech.migration;
3
 import com.dashitech.utils.SpringContextHolder;
3
 import com.dashitech.utils.SpringContextHolder;
4
 import org.apache.commons.logging.Log;
4
 import org.apache.commons.logging.Log;
5
 import org.apache.commons.logging.LogFactory;
5
 import org.apache.commons.logging.LogFactory;
6
-import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.beans.factory.annotation.Value;
6
 import org.springframework.beans.factory.annotation.Value;
8
 import org.springframework.stereotype.Service;
7
 import org.springframework.stereotype.Service;
9
 
8
 
@@ -16,17 +15,14 @@ public class StartApplication {
16
 
15
 
17
     public static Log log = LogFactory.getLog(StartApplication.class);
16
     public static Log log = LogFactory.getLog(StartApplication.class);
18
 
17
 
19
-    @Autowired
20
-    SqlTask hospitalTask;
21
-
22
     @Value("${application.name}")
18
     @Value("${application.name}")
23
     private String appName;
19
     private String appName;
24
 
20
 
25
     public void start() {
21
     public void start() {
26
         log.info("########### 开始迁移任务!###########");
22
         log.info("########### 开始迁移任务!###########");
27
         SqlTask task = null;
23
         SqlTask task = null;
28
-//        task = SpringContextHolder.getBean("dictionaryTask");
29
-//        task.start();
24
+        task = SpringContextHolder.getBean("dictionaryTask");
25
+        task.start();
30
 //        task = SpringContextHolder.getBean("tokenTask");
26
 //        task = SpringContextHolder.getBean("tokenTask");
31
 //        task.start();
27
 //        task.start();
32
 //        task = SpringContextHolder.getBean("attachmentTask");
28
 //        task = SpringContextHolder.getBean("attachmentTask");

File diff suppressed because it is too large
+ 13 - 47
src/main/resources/migration.sql