Przeglądaj źródła

分院区加载

song 5 miesięcy temu
rodzic
commit
3dc8ff526e

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

@@ -5,7 +5,6 @@ import com.dashitech.migration.core.FieldMapper;
5 5
 import org.apache.commons.logging.Log;
6 6
 import org.apache.commons.logging.LogFactory;
7 7
 import org.springframework.stereotype.Component;
8
-import org.springframework.util.Assert;
9 8
 
10 9
 import java.util.HashMap;
11 10
 import java.util.Map;
@@ -26,7 +25,12 @@ public class DictionaryTask extends BaseTask {
26 25
 
27 26
     @Override
28 27
     public FieldMapper loadCache() {
29
-        log.info(" *** 加载字典缓存 *** ");
28
+        return null;
29
+    }
30
+
31
+
32
+    public FieldMapper loadXiangYangCache() {
33
+        log.info(" *** 加载襄阳字典缓存 *** ");
30 34
         FieldMapper mapper = new FieldMapper();
31 35
         Map<Long, Long> dicIdCache = new HashMap<>();
32 36
         mapper.setIdCache(dicIdCache);
@@ -38,4 +42,14 @@ public class DictionaryTask extends BaseTask {
38 42
 
39 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
 }