|
@@ -306,7 +306,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
String cadInfo = fileInfoJson.getString("cadInfo");
|
|
|
String floorJsonData = fileInfoJson.getString("floorJsonData");
|
|
|
String filePaths = fileInfoJson.getString("filePaths");
|
|
|
- Byte reSet = fileInfoJson.getByte("reSet");
|
|
|
+ Byte reSet = fileInfoJson.getByte("reset");
|
|
|
|
|
|
|
|
|
String filePathStr = null;
|
|
@@ -336,13 +336,15 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
}
|
|
|
}else{
|
|
|
//户型图文件路径
|
|
|
- cn.hutool.json.JSONArray filePathsArrs = JSONUtil.parseArray(filePaths);
|
|
|
- List<String> filePathsList = filePathsArrs.toList(String.class);
|
|
|
- StringBuilder filePathBuilder = new StringBuilder();
|
|
|
- filePathsList.parallelStream().forEach(path -> {
|
|
|
- filePathBuilder.append(",").append(path);
|
|
|
- });
|
|
|
- filePathStr = filePathBuilder.substring(1);
|
|
|
+ if(StrUtil.isNotEmpty(filePaths)){
|
|
|
+ cn.hutool.json.JSONArray filePathsArrs = JSONUtil.parseArray(filePaths);
|
|
|
+ List<String> filePathsList = filePathsArrs.toList(String.class);
|
|
|
+ StringBuilder filePathBuilder = new StringBuilder();
|
|
|
+ filePathsList.parallelStream().forEach(path -> {
|
|
|
+ filePathBuilder.append(",").append(path);
|
|
|
+ });
|
|
|
+ filePathStr = filePathBuilder.substring(1);
|
|
|
+ }
|
|
|
|
|
|
//上传houst_floor.json文件
|
|
|
FileUtils.writeFile(localDataPath + "floorplan_user.json", floorJsonData);
|