|
@@ -101,10 +101,12 @@ public class TmHouseServiceImpl extends ServiceImpl<TmHouseDao, TmHouse> impleme
|
|
|
resultPage.getRecords().get(i).setCountNum(tmAuditService.countAuditNum(vrId));
|
|
|
if(!CollectionUtils.isEmpty(treeMap)){
|
|
|
String path = (String) treeMap.get(vrId);
|
|
|
- String outerHost = outerSceneVrHost.substring(0 , outerSceneVrHost.length() - 1);
|
|
|
- String innerHost = innerSceneVrHost.substring(0 , innerSceneVrHost.length() - 1);
|
|
|
- resultPage.getRecords().get(i).setInnerVrLink(innerHost + path);
|
|
|
- resultPage.getRecords().get(i).setInnerVrLink(outerHost + path);
|
|
|
+ if(StringUtils.isNotBlank(path)){
|
|
|
+ String outerHost = outerSceneVrHost.substring(0 , outerSceneVrHost.length() - 1);
|
|
|
+ String innerHost = innerSceneVrHost.substring(0 , innerSceneVrHost.length() - 1);
|
|
|
+ resultPage.getRecords().get(i).setInnerVrLink(innerHost + path);
|
|
|
+ resultPage.getRecords().get(i).setVrLink(outerHost + path);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -163,10 +165,12 @@ public class TmHouseServiceImpl extends ServiceImpl<TmHouseDao, TmHouse> impleme
|
|
|
|
|
|
if(!CollectionUtils.isEmpty(treeMap)){
|
|
|
String path = (String) treeMap.get(vrId);
|
|
|
- String outerHost = outerSceneVrHost.substring(0 , outerSceneVrHost.length() - 1);
|
|
|
- String innerHost = innerSceneVrHost.substring(0 , innerSceneVrHost.length() - 1);
|
|
|
- resultPage.getRecords().get(i).setInnerVrLink(innerHost + path);
|
|
|
- resultPage.getRecords().get(i).setInnerVrLink(outerHost + path);
|
|
|
+ if(StringUtils.isNotBlank(path)){
|
|
|
+ String outerHost = outerSceneVrHost.substring(0 , outerSceneVrHost.length() - 1);
|
|
|
+ String innerHost = innerSceneVrHost.substring(0 , innerSceneVrHost.length() - 1);
|
|
|
+ resultPage.getRecords().get(i).setInnerVrLink(innerHost + path);
|
|
|
+ resultPage.getRecords().get(i).setVrLink(outerHost + path);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|