|
@@ -21,70 +21,83 @@ public class StartApplication {
|
21
|
21
|
public void start() {
|
22
|
22
|
log.info("########### 开始迁移任务!###########");
|
23
|
23
|
SqlTask task = null;
|
24
|
|
-// task = SpringContextHolder.getBean("dictionaryTask");
|
25
|
|
-// task.start();
|
26
|
|
-// task = SpringContextHolder.getBean("tokenTask");
|
27
|
|
-// task.start();
|
28
|
|
-// task = SpringContextHolder.getBean("attachmentTask");
|
29
|
|
-// task.start();
|
30
|
|
-// task = SpringContextHolder.getBean("opLogTask");
|
31
|
|
-// task.start();
|
32
|
|
-// task = SpringContextHolder.getBean("hospitalTask");
|
33
|
|
-// task.start();
|
34
|
|
-// task = SpringContextHolder.getBean("hospitalConfigTask");
|
35
|
|
-// task.start();
|
36
|
|
-// task = SpringContextHolder.getBean("groupTask");
|
37
|
|
-// task.start();
|
38
|
|
-// task = SpringContextHolder.getBean("departmentTask");
|
39
|
|
-// task.start();
|
40
|
|
-// task = SpringContextHolder.getBean("companyTask");
|
41
|
|
-// task.start();
|
42
|
|
-// task = SpringContextHolder.getBean("userTask");
|
43
|
|
-// task.start();
|
44
|
|
-// task = SpringContextHolder.getBean("userGroupTask");
|
45
|
|
-// task.start();
|
46
|
|
-// task = SpringContextHolder.getBean("roleUserTask");
|
47
|
|
-// task.start();
|
48
|
|
-// task = SpringContextHolder.getBean("areaTask");
|
49
|
|
-// task.start();
|
50
|
|
-// task = SpringContextHolder.getBean("placeTask");
|
51
|
|
-// task.start();
|
52
|
|
-// task = SpringContextHolder.getBean("incidentCategoryTask");
|
53
|
|
-// task.start();
|
54
|
|
-// task = SpringContextHolder.getBean("incidentCategoryConfigTask");
|
55
|
|
-// task.start();
|
56
|
|
-// task = SpringContextHolder.getBean("incidentTask");
|
57
|
|
-// task.start();
|
58
|
|
-// task = SpringContextHolder.getBean("incidentLogTask");
|
59
|
|
-// task.start();
|
60
|
|
-// task = SpringContextHolder.getBean("incidentSynergeticTask");
|
61
|
|
-// task.start();
|
62
|
|
-// task = SpringContextHolder.getBean("incidentAssignManagerTask");
|
63
|
|
-// task.start();
|
64
|
|
-// task = SpringContextHolder.getBean("workHourManagementTask");
|
65
|
|
-// task.start();
|
66
|
|
-// task = SpringContextHolder.getBean("solutionTask");
|
67
|
|
-// task.start();
|
68
|
|
-// task = SpringContextHolder.getBean("solutionIntroduceTask");
|
69
|
|
-// task.start();
|
70
|
|
-// task = SpringContextHolder.getBean("productTask");
|
71
|
|
-// task.start();
|
|
24
|
+ task = SpringContextHolder.getBean("dictionaryTask");
|
|
25
|
+ task.start();
|
|
26
|
+ task = SpringContextHolder.getBean("tokenTask");
|
|
27
|
+ task.start();
|
|
28
|
+ task = SpringContextHolder.getBean("attachmentTask");
|
|
29
|
+ task.start();
|
|
30
|
+ task = SpringContextHolder.getBean("opLogTask");
|
|
31
|
+ task.start();
|
|
32
|
+ task = SpringContextHolder.getBean("hospitalTask");
|
|
33
|
+ task.start();
|
|
34
|
+ task = SpringContextHolder.getBean("hospitalConfigTask");
|
|
35
|
+ task.start();
|
|
36
|
+ task = SpringContextHolder.getBean("areaTask");
|
|
37
|
+ task.start();
|
|
38
|
+ task = SpringContextHolder.getBean("placeTask");
|
|
39
|
+ task.start();
|
|
40
|
+ task = SpringContextHolder.getBean("groupTask");
|
|
41
|
+ task.start();
|
|
42
|
+ task = SpringContextHolder.getBean("departmentTask");
|
|
43
|
+ task.start();
|
|
44
|
+ task = SpringContextHolder.getBean("companyTask");
|
|
45
|
+ task.start();
|
|
46
|
+ task = SpringContextHolder.getBean("userTask");
|
|
47
|
+ task.start();
|
|
48
|
+ task = SpringContextHolder.getBean("userGroupTask");
|
|
49
|
+ task.start();
|
|
50
|
+ task = SpringContextHolder.getBean("roleUserTask");
|
|
51
|
+ task.start();
|
|
52
|
+ task = SpringContextHolder.getBean("incidentCategoryTask");
|
|
53
|
+ task.start();
|
|
54
|
+ task = SpringContextHolder.getBean("incidentCategoryConfigTask");
|
|
55
|
+ task.start();
|
|
56
|
+ task = SpringContextHolder.getBean("incidentTask");
|
|
57
|
+ task.start();
|
|
58
|
+ task = SpringContextHolder.getBean("incidentLogTask");
|
|
59
|
+ task.start();
|
|
60
|
+ task = SpringContextHolder.getBean("incidentSynergeticTask");
|
|
61
|
+ task.start();
|
|
62
|
+ task = SpringContextHolder.getBean("incidentAssignManagerTask");
|
|
63
|
+ task.start();
|
|
64
|
+ task = SpringContextHolder.getBean("workHourManagementTask");
|
|
65
|
+ task.start();
|
|
66
|
+ task = SpringContextHolder.getBean("solutionTask");
|
|
67
|
+ task.start();
|
|
68
|
+ task = SpringContextHolder.getBean("solutionIntroduceTask");
|
|
69
|
+ task.start();
|
|
70
|
+ task = SpringContextHolder.getBean("productTask");
|
|
71
|
+ task.start();
|
72
|
72
|
task = SpringContextHolder.getBean("consumableTask");
|
73
|
73
|
task.start();
|
74
|
|
-// task = SpringContextHolder.getBean("consumableHistoryTask");
|
75
|
|
-// task.start();
|
76
|
|
-// task = SpringContextHolder.getBean("repairSummaryTask");
|
77
|
|
-// task.start();
|
78
|
|
-// task = SpringContextHolder.getBean("summaryConsumableTask");
|
79
|
|
-// task.start();
|
80
|
|
-// task = SpringContextHolder.getBean("callLogTask");
|
81
|
|
-// task.start();
|
82
|
|
-// task = SpringContextHolder.getBean("hjzxRecordTask");
|
83
|
|
-// task.start();
|
|
74
|
+ task = SpringContextHolder.getBean("consumableHistoryTask");
|
|
75
|
+ task.start();
|
|
76
|
+ task = SpringContextHolder.getBean("repairSummaryTask");
|
|
77
|
+ task.start();
|
|
78
|
+ task = SpringContextHolder.getBean("summaryConsumableTask");
|
|
79
|
+ task.start();
|
|
80
|
+ task = SpringContextHolder.getBean("callLogTask");
|
|
81
|
+ task.start();
|
|
82
|
+ task = SpringContextHolder.getBean("hjzxRecordTask");
|
|
83
|
+ task.start();
|
84
|
84
|
|
85
|
85
|
|
86
|
86
|
log.info("########### 迁移任务完成!###########");
|
87
|
87
|
}
|
88
|
88
|
|
|
89
|
+ public void start(String taskName) {
|
|
90
|
+ try {
|
|
91
|
+ SqlTask sqlTask = SpringContextHolder.getBean(taskName);
|
|
92
|
+ log.info("########### 开始迁移指定"+taskName+"任务!###########");
|
|
93
|
+ sqlTask.start();
|
|
94
|
+ log.info("########### 迁移指定"+taskName+"任务完成!###########");
|
|
95
|
+ } catch (Exception e) {
|
|
96
|
+ log.error("指定任务" + taskName + "转换有误:" + e.getMessage());
|
|
97
|
+ e.printStackTrace();
|
|
98
|
+ }
|
|
99
|
+
|
|
100
|
+ }
|
|
101
|
+
|
89
|
102
|
|
90
|
103
|
}
|