|
@@ -427,15 +427,19 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<SceneEditInfoMapper, S
|
|
sceneInfo.getControls().setShowDollhouse(CommonStatus.NO.code());
|
|
sceneInfo.getControls().setShowDollhouse(CommonStatus.NO.code());
|
|
sceneInfo.getControls().setShowFloorplan(CommonStatus.NO.code());
|
|
sceneInfo.getControls().setShowFloorplan(CommonStatus.NO.code());
|
|
//
|
|
//
|
|
-// List<Scene> sceneList = sceneService.listByStationcode(sceneInfo.getStationCode());
|
|
|
|
-// List<Map<String, String>> roomList = new ArrayList<>();
|
|
|
|
-// for (Scene scene : sceneList) {
|
|
|
|
-// Map<String, String> item = new HashMap<>();
|
|
|
|
-// item.put("stationCode", scene.getStationcode());
|
|
|
|
-// item.put("roomEntityID", scene.getNum());
|
|
|
|
-// roomList.add(item);
|
|
|
|
-// }
|
|
|
|
-// sceneInfo.setEntityList(roomList);
|
|
|
|
|
|
+ List<Scene> sceneList = sceneService.listByStationcode(sceneInfo.getStationCode());
|
|
|
|
+ List<Map<String, String>> roomList = new ArrayList<>();
|
|
|
|
+ for (Scene scene : sceneList) {
|
|
|
|
+ if(scene.getNum().equals(sceneInfo.getNum())){
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ Map<String, String> item = new HashMap<>();
|
|
|
|
+ item.put("stationCode", scene.getStationcode());
|
|
|
|
+ item.put("roomEntityID", scene.getNum());
|
|
|
|
+ item.put("title", scene.getTitle());
|
|
|
|
+ roomList.add(item);
|
|
|
|
+ }
|
|
|
|
+ sceneInfo.setEntityList(roomList);
|
|
}
|
|
}
|
|
|
|
|
|
return sceneInfo;
|
|
return sceneInfo;
|
|
@@ -514,7 +518,8 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<SceneEditInfoMapper, S
|
|
// sceneInfoVO.setMosaicList(this.getMosaicList(num));
|
|
// sceneInfoVO.setMosaicList(this.getMosaicList(num));
|
|
|
|
|
|
sceneInfoVO.setSubgroup(scenePlus.getSubgroup());
|
|
sceneInfoVO.setSubgroup(scenePlus.getSubgroup());
|
|
-// sceneInfoVO.setStationCode(scenePlus.getStationcode());
|
|
|
|
|
|
+ sceneInfoVO.setStationCode(scenePlus.getStationcode());
|
|
|
|
+ sceneInfoVO.setExtinguisher(scenePlus.getExtinguisher());
|
|
long count = sceneService.count(new LambdaQueryWrapper<Scene>().eq(Scene::getNum, num).ne(Scene::getSubgroup, 0));
|
|
long count = sceneService.count(new LambdaQueryWrapper<Scene>().eq(Scene::getNum, num).ne(Scene::getSubgroup, 0));
|
|
if(count > 0){
|
|
if(count > 0){
|
|
sceneInfoVO.setHasHighAndLow(CommonStatus.YES.code());
|
|
sceneInfoVO.setHasHighAndLow(CommonStatus.YES.code());
|
|
@@ -537,9 +542,9 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<SceneEditInfoMapper, S
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-// sceneInfoVO.setShootTime(scenePlus.getShootTime());
|
|
|
|
-// sceneInfoVO.setUpTime(scenePlus.getUpTime());
|
|
|
|
-// sceneInfoVO.setAlgorithmTime(scenePlus.getAlgorithmTime());
|
|
|
|
|
|
+ sceneInfoVO.setShootTime(scenePlus.getShootTime());
|
|
|
|
+ sceneInfoVO.setUpTime(scenePlus.getUpTime());
|
|
|
|
+ sceneInfoVO.setAlgorithmTime(scenePlus.getAlgorithmTime());
|
|
|
|
|
|
return sceneInfoVO;
|
|
return sceneInfoVO;
|
|
}
|
|
}
|