Commit e30d35ec authored by 廖旭伟's avatar 廖旭伟

页面路由校验

parent d0eb3bec
...@@ -77,9 +77,11 @@ public class BuryPointController extends BaseJsonBodyController { ...@@ -77,9 +77,11 @@ public class BuryPointController extends BaseJsonBodyController {
if(CollectionUtils.isNotEmpty(pdu.getDepthArr())){ if(CollectionUtils.isNotEmpty(pdu.getDepthArr())){
List<PageRouteEntity> list = new ArrayList<>(); List<PageRouteEntity> list = new ArrayList<>();
Map<String,String> source = new HashMap<>(); Map<String,String> source = new HashMap<>();
Map<String,String> target = new HashMap<>();
for(PageRouteEntity item:pdu.getDepthArr()){ for(PageRouteEntity item:pdu.getDepthArr()){
source.put(item.getSourceCode(),item.getSourceName()); source.put(item.getSourceCode(),item.getSourceName());
if(!source.containsKey(item.getTargetCode())){ target.put(item.getTargetCode(),item.getTargetName());
if(!source.containsKey(item.getTargetCode()) && !target.containsKey(item.getSourceCode())){
list.add(item); list.add(item);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment