获取车辆绑定的围栏对象Bean容器
parent
7c8b125043
commit
31d1a53f78
|
@ -35,6 +35,7 @@ public class CarFenceMonitor {
|
|||
@Autowired
|
||||
private RedisService redisService;
|
||||
|
||||
|
||||
@Bean
|
||||
public void getCarFencesList(){
|
||||
log.info("开始获取车辆围栏信息");
|
||||
|
@ -63,11 +64,11 @@ public class CarFenceMonitor {
|
|||
throw new RuntimeException("该车辆未绑定围栏");
|
||||
}
|
||||
|
||||
//容器
|
||||
List<String> locationList = new ArrayList<>();
|
||||
//围栏对象集合
|
||||
List<Fence> locationList = new ArrayList<>();
|
||||
|
||||
for (Fence row : rows) {
|
||||
locationList.add(row.getFenceLocation());
|
||||
locationList.add(row);
|
||||
}
|
||||
|
||||
//存储redis
|
||||
|
|
Loading…
Reference in New Issue