1.暂降同步调整
This commit is contained in:
@@ -9,6 +9,7 @@ import org.springframework.data.redis.core.RedisTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -31,7 +32,7 @@ public class IdMappingCache {
|
||||
@Autowired
|
||||
private RedisUtil redisUtil;
|
||||
|
||||
|
||||
public static List<Integer> oracleIds = new ArrayList<>();
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
Map<String, String> DevIdMapping = new HashMap<>();
|
||||
@@ -40,6 +41,7 @@ public class IdMappingCache {
|
||||
for (PqLineBak row : resultList) {
|
||||
String id = row.getId();
|
||||
String lineId = row.getLineId();
|
||||
oracleIds.add(Integer.valueOf(lineId));
|
||||
LineIdMapping.put(lineId,id );
|
||||
}
|
||||
redisUtil.saveByKey("LineIdMapping",LineIdMapping);
|
||||
|
||||
Reference in New Issue
Block a user