|
@@ -43,13 +43,18 @@ public class ModelKindHandler {
|
|
|
|
|
|
List<ScenePlus> list = scenePlusService.list();
|
|
|
list.stream().forEach(plus->{
|
|
|
- String sceneJson = String.format(UploadFilePath.DATA_VIEW_PATH, plus.getNum()) + "scene.json";
|
|
|
- JSONObject jsonObject = JSON.parseObject(sceneJson);
|
|
|
- if(Objects.isNull(jsonObject) || Objects.isNull(jsonObject.getString("modelKind")) || !"3dtiles".equals(jsonObject.getString("modelKind"))){
|
|
|
- ScenePlusExt one = scenePlusExtService.getOne(new LambdaQueryWrapper<ScenePlusExt>().eq(ScenePlusExt::getPlusId, plus.getId()));
|
|
|
- one.setModelKind("dam");
|
|
|
- scenePlusExtService.updateById(one);
|
|
|
+ try {
|
|
|
+ String sceneJson = String.format(UploadFilePath.DATA_VIEW_PATH, plus.getNum()) + "scene.json";
|
|
|
+ JSONObject jsonObject = JSON.parseObject(sceneJson);
|
|
|
+ if(Objects.isNull(jsonObject) || Objects.isNull(jsonObject.getString("modelKind")) || !"3dtiles".equals(jsonObject.getString("modelKind"))){
|
|
|
+ ScenePlusExt one = scenePlusExtService.getOne(new LambdaQueryWrapper<ScenePlusExt>().eq(ScenePlusExt::getPlusId, plus.getId()));
|
|
|
+ one.setModelKind("dam");
|
|
|
+ scenePlusExtService.updateById(one);
|
|
|
+ }
|
|
|
+ }catch (Exception e){
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
});
|
|
|
XxlJobHelper.log("repairModelKind end.....");
|
|
|
}
|