从redis中读取参数来获取路由

This commit is contained in:
shan 2026-01-14 15:14:21 +08:00
parent 5c0bb3f3ba
commit 8e2215bc2f

View File

@ -1286,10 +1286,19 @@ public class DataProcessingService {
String time =(String) redisCache.getCacheMapValue(key, "time");
log.error("time是{}",time);
String inRunway = "35";
String outRunway = "34";
String contactCross = "F1";
String seat = "138";
// String inRunway = "35";
// String outRunway = "34";
// String contactCross = "F1";
// String seat = "138";
String inRunway = (String) redisCache.getCacheMapValue(key, "inRunway");
String outRunway = (String) redisCache.getCacheMapValue(key, "outRunway");
String contactCross = (String) redisCache.getCacheMapValue(key, "contactCross");
String seat = (String) redisCache.getCacheMapValue(key, "seat");
log.error("进港参数是{}",inRunway);
log.error("出港参数是{}",outRunway);
log.error("接触交叉参数是{}",contactCross);
log.error("座位参数是{}",seat);
// 获取DataCollectorDao进行路由数据查询
DataCollectorDao dataCollectorDao = applicationContext.getBean(DataCollectorDao.class);
@ -1320,9 +1329,17 @@ public class DataProcessingService {
String time =(String) redisCache.getCacheMapValue(key, "time");
log.error("time是{}",time);
String inRunway = "17";
String outRunway = "35";
String startSeat = "201";
// String inRunway = "17";
// String outRunway = "35";
// String startSeat = "201";
String inRunway = (String) redisCache.getCacheMapValue(key, "inRunway");
String outRunway = (String) redisCache.getCacheMapValue(key, "outRunway");
String startSeat = (String) redisCache.getCacheMapValue(key, "startSeat");
log.error("进港参数是{}",inRunway);
log.error("出港参数是{}",outRunway);
log.error("起始座位参数是{}",startSeat);
// 获取DataCollectorDao进行路由数据查询
DataCollectorDao dataCollectorDao = applicationContext.getBean(DataCollectorDao.class);