|
|
@@ -29,6 +29,7 @@ import com.fdkankan.ucenter.common.constants.ResultCodeMsg;
|
|
|
import com.fdkankan.ucenter.config.UcenterConfig;
|
|
|
import com.fdkankan.ucenter.config.ThreadPoolConfig;
|
|
|
import com.fdkankan.ucenter.constant.CameraConstant;
|
|
|
+import com.fdkankan.ucenter.constant.CameraTypelEnum;
|
|
|
import com.fdkankan.ucenter.constant.LoginConstant;
|
|
|
import com.fdkankan.ucenter.entity.*;
|
|
|
import com.fdkankan.ucenter.httpClient.service.LaserService;
|
|
|
@@ -1402,13 +1403,26 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
Page<SceneVo> page = scenePlusService.domeSceneList(new Page<>(param.getPageNum(),param.getPageSize()),param);
|
|
|
if(param.getIsObj() == 0){ //点云列表
|
|
|
+
|
|
|
+ Set<Integer> laserSceneSource = page.getRecords().stream().map(SceneVo::getSceneSource).filter(CameraTypelEnum::isLaserSceneSource).collect(Collectors.toSet());
|
|
|
+ HashMap<String,JSONObject> laserMap = new HashMap<>();
|
|
|
+ for (Integer sceneSource : laserSceneSource) {
|
|
|
+ List<String> numList = page.getRecords().stream().filter(e -> Objects.equals(e.getSceneSource(), sceneSource)).map(SceneVo::getNum).collect(Collectors.toList());
|
|
|
+ HashMap<String,JSONObject> map = laserService.list(numList, sceneSource);
|
|
|
+ laserMap.putAll(map);
|
|
|
+ }
|
|
|
+
|
|
|
for (SceneVo record : page.getRecords()) {
|
|
|
- if(ucenterConfig.getActive().contains("prod")){
|
|
|
- record.setWebSite(ucenterConfig.getBasePath() +"/index.html?m="+record.getNum());
|
|
|
- }else {
|
|
|
- record.setWebSite(ucenterConfig.getBasePath() +"/uat/index.html?m="+record.getNum());
|
|
|
+ JSONObject ssObj = laserMap.get(record.getNum());
|
|
|
+ if(ssObj!=null){
|
|
|
+ record.setSceneName(ssObj.getString("title"));
|
|
|
+ record.setThumb(ssObj.getString("thumb"));
|
|
|
+ record.setWebSite(ssObj.getString("webSite"));
|
|
|
+ record.setViewCount(ssObj.getInteger("viewCount"));
|
|
|
+ }else{
|
|
|
+ record.setStatus(-1);
|
|
|
+ record.setWebSite(null);
|
|
|
}
|
|
|
- record.setSceneName(record.getLaserTitle());
|
|
|
record.setIsLaser(true);
|
|
|
}
|
|
|
}
|