|
@@ -76,6 +76,7 @@ public class BenyunCoreInit {
|
|
|
List<String> three = new ArrayList<>();
|
|
|
List<String> four = new ArrayList<>();
|
|
|
List<String> five = new ArrayList<>();
|
|
|
+ List<String> newOne = new ArrayList<>();
|
|
|
|
|
|
BoundHashOperations boundHashOperations = redisTemplate.boundHashOps(RedisInitContant.INIT_CITY_TIER_MAP);
|
|
|
Set<String> keys = boundHashOperations.keys();
|
|
@@ -97,6 +98,9 @@ public class BenyunCoreInit {
|
|
|
case "五线":
|
|
|
five.add(s);
|
|
|
break;
|
|
|
+ case "新一线":
|
|
|
+ newOne.add(s);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
redisTemplate.boundHashOps(RedisInitContant.INIT_CITY_TIER_LIST_MAP).put("一线",one);
|
|
@@ -104,6 +108,7 @@ public class BenyunCoreInit {
|
|
|
redisTemplate.boundHashOps(RedisInitContant.INIT_CITY_TIER_LIST_MAP).put("三线",three);
|
|
|
redisTemplate.boundHashOps(RedisInitContant.INIT_CITY_TIER_LIST_MAP).put("四线",four);
|
|
|
redisTemplate.boundHashOps(RedisInitContant.INIT_CITY_TIER_LIST_MAP).put("五线",five);
|
|
|
+ redisTemplate.boundHashOps(RedisInitContant.INIT_CITY_TIER_LIST_MAP).put("新一线",newOne);
|
|
|
System.out.println("CityTierListMap已完成");
|
|
|
}
|
|
|
|