地图数据处理接口增加对地图逻辑数据的处理

This commit is contained in:
joylink_zhangsai 2022-09-27 09:14:40 +08:00
parent ad8e8963c6
commit dce23dbff7

View File

@ -216,12 +216,15 @@ public class PublishMapDataHandler {
// 修改地图数据 // 修改地图数据
MapDataWithBLOBs mapData = getMapDataEntity(mapId); MapDataWithBLOBs mapData = getMapDataEntity(mapId);
String graphData = mapData.getGraphData(); String graphData = mapData.getGraphData();
String logicData = mapData.getLogicData();
for (Map.Entry<String, String> entry : nameMap.entrySet()) { for (Map.Entry<String, String> entry : nameMap.entrySet()) {
String k = entry.getKey(); String k = entry.getKey();
String v = entry.getValue(); String v = entry.getValue();
graphData = graphData.replace(k, v); graphData = graphData.replace(k, v);
logicData = logicData.replace(k, v);
} }
mapData.setGraphData(graphData); mapData.setGraphData(graphData);
mapData.setLogicData(logicData);
mapDataDAO.updateByPrimaryKeyWithBLOBs(mapData); mapDataDAO.updateByPrimaryKeyWithBLOBs(mapData);
// 修改ISCS数据 // 修改ISCS数据
IscsExample iscsExample = new IscsExample(); IscsExample iscsExample = new IscsExample();