fix:1解决台站管理 车和船悬浮报错的问题

This commit is contained in:
orgin 2024-10-12 15:24:58 +08:00
parent a5f53e8d54
commit efc24076ab

View File

@ -133,7 +133,8 @@ public class StationOperationServiceImpl extends ServiceImpl<StationOperationMap
@Override
public Result findInfo(String stationId, String type) {
Result result = new Result();
if (type.equals("IMS STATION(P)") || type.equals("IMS STATION(G)") || type.equals("NRL")){
if (type.equals("IMS STATION(P)") || type.equals("IMS STATION(G)") || type.equals("NRL")
|| type.equals("Car")|| type.equals("Ship")){
HashMap<String, GardsStations> stationInfoMap = (HashMap<String, GardsStations>) redisUtil.get("stationInfoMap");
GardsStations stations = stationInfoMap.get(stationId);
if (Objects.nonNull(stations)){