Browse Source

分院区加载

song 5 months ago
parent
commit
3dc8ff526e
1 changed files with 16 additions and 2 deletions
  1. 16 2
      src/main/java/com/dashitech/migration/task/uc/DictionaryTask.java

+ 16 - 2
src/main/java/com/dashitech/migration/task/uc/DictionaryTask.java

@@ -5,7 +5,6 @@ import com.dashitech.migration.core.FieldMapper;
5
 import org.apache.commons.logging.Log;
5
 import org.apache.commons.logging.Log;
6
 import org.apache.commons.logging.LogFactory;
6
 import org.apache.commons.logging.LogFactory;
7
 import org.springframework.stereotype.Component;
7
 import org.springframework.stereotype.Component;
8
-import org.springframework.util.Assert;
9
 
8
 
10
 import java.util.HashMap;
9
 import java.util.HashMap;
11
 import java.util.Map;
10
 import java.util.Map;
@@ -26,7 +25,12 @@ public class DictionaryTask extends BaseTask {
26
 
25
 
27
     @Override
26
     @Override
28
     public FieldMapper loadCache() {
27
     public FieldMapper loadCache() {
29
-        log.info(" *** 加载字典缓存 *** ");
28
+        return null;
29
+    }
30
+
31
+
32
+    public FieldMapper loadXiangYangCache() {
33
+        log.info(" *** 加载襄阳字典缓存 *** ");
30
         FieldMapper mapper = new FieldMapper();
34
         FieldMapper mapper = new FieldMapper();
31
         Map<Long, Long> dicIdCache = new HashMap<>();
35
         Map<Long, Long> dicIdCache = new HashMap<>();
32
         mapper.setIdCache(dicIdCache);
36
         mapper.setIdCache(dicIdCache);
@@ -38,4 +42,14 @@ public class DictionaryTask extends BaseTask {
38
 
42
 
39
         return mapper;
43
         return mapper;
40
     }
44
     }
45
+
46
+    public FieldMapper loadNanJingCache() {
47
+        log.info(" *** 加载南京字典缓存 *** ");
48
+        FieldMapper mapper = new FieldMapper();
49
+        Map<Long, Long> dicIdCache = new HashMap<>();
50
+        mapper.setIdCache(dicIdCache);
51
+
52
+
53
+        return mapper;
54
+    }
41
 }
55
 }