|
@@ -197,9 +197,6 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public PageInfo pageList(SceneParam param) {
|
|
public PageInfo pageList(SceneParam param) {
|
|
- if(param.getType() == 2 || param.getType() == 6){ //深时
|
|
|
|
- return laserService.pageList(param);
|
|
|
|
- }
|
|
|
|
if(param.getType() == 3){ //双目lite
|
|
if(param.getType() == 3){ //双目lite
|
|
return sceneService.pageList(param);
|
|
return sceneService.pageList(param);
|
|
}
|
|
}
|
|
@@ -237,6 +234,15 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
HashMap<Long, User> userMap = null;
|
|
HashMap<Long, User> userMap = null;
|
|
HashMap<Long, Camera> cameraMap = null;
|
|
HashMap<Long, Camera> cameraMap = null;
|
|
|
|
|
|
|
|
+ List<String> sceneNumList = page.getRecords().stream().map(SceneVo::getNum).collect(Collectors.toList());
|
|
|
|
+ HashMap<String,JSONObject> ssSceneMap = new HashMap<>();
|
|
|
|
+ if(param.getType() == 2 ){
|
|
|
|
+ ssSceneMap = laserService.list(sceneNumList,4);
|
|
|
|
+ }
|
|
|
|
+ if(param.getType() == 6){
|
|
|
|
+ ssSceneMap = laserService.list(sceneNumList,5);
|
|
|
|
+ }
|
|
|
|
+
|
|
if(!records.isEmpty()){
|
|
if(!records.isEmpty()){
|
|
List<String> numList = records.parallelStream().map(SceneVo::getNum).collect(Collectors.toList());
|
|
List<String> numList = records.parallelStream().map(SceneVo::getNum).collect(Collectors.toList());
|
|
map = copyLogService.getByNewNumList(numList);
|
|
map = copyLogService.getByNewNumList(numList);
|
|
@@ -250,6 +256,21 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
|
|
|
}
|
|
}
|
|
for (SceneVo record : page.getRecords()) {
|
|
for (SceneVo record : page.getRecords()) {
|
|
|
|
+ if(param.getType() == 2 || param.getType() == 6){
|
|
|
|
+ JSONObject ssObj = ssSceneMap.get(record.getNum());
|
|
|
|
+ if(ssObj!=null){
|
|
|
|
+ record.setSceneName(ssObj.getString("title"));
|
|
|
|
+ record.setThumb(ssObj.getString("thumb"));
|
|
|
|
+ record.setWebSite(ssObj.getString("webSite"));
|
|
|
|
+ record.setIsObj(ssObj.getInteger("buildObjStatus"));
|
|
|
|
+ record.setViewCount(ssObj.getInteger("viewCount"));
|
|
|
|
+ record.setStatus(toFdStatus(ssObj.getInteger("status")));
|
|
|
|
+ }else{
|
|
|
|
+ record.setStatus(-1);
|
|
|
|
+ record.setWebSite(null);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
record.setStatusString(SceneStatusUtil.getStatusString(record));
|
|
record.setStatusString(SceneStatusUtil.getStatusString(record));
|
|
if(userMap != null){
|
|
if(userMap != null){
|
|
User user = userMap.get(record.getUserId());
|
|
User user = userMap.get(record.getUserId());
|
|
@@ -289,6 +310,20 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
return PageInfo.PageInfo(page);
|
|
return PageInfo.PageInfo(page);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private Integer toFdStatus(Integer status) {
|
|
|
|
+ //深时状态,-1:场景被删 0:计算中 1计算失败 2计算成功 3封存 4生成OBJ中
|
|
|
|
+ switch (status) {
|
|
|
|
+ case 0:
|
|
|
|
+ case 4:
|
|
|
|
+ return 0;
|
|
|
|
+ case 2:
|
|
|
|
+ return -2;
|
|
|
|
+ case 3:
|
|
|
|
+ return -3;
|
|
|
|
+ default:
|
|
|
|
+ return -1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
@Override
|
|
@Override
|
|
public synchronized void move(SceneParam param) {
|
|
public synchronized void move(SceneParam param) {
|
|
Camera camera = cameraService.getBySnCode(param.getSnCode());
|
|
Camera camera = cameraService.getBySnCode(param.getSnCode());
|